Raspberry Pi® 4 OpenGL Package Installation

You need the following Simdify® modules to complete all exercises involving the Raspberry Pi 4: Simdify® Free Edition, Simdify® Video Module, Simdify® Raspberry Pi 4 Export Module

This exercise teaches you how to install OpenGL® packages on your Raspberry Pi 4. These packages are required in order to compile and link the C++ source code (exported by the Layout application) on your Raspberry Pi 4 device. The section assumes you have completed the previous exercise.

Requirements

You'll need the following in order to complete this exercise:

Install Required Packages

  1. Connect to the Raspberry Pi® 4 using RealVNC and open the terminal program.

    You could also connect with Microsoft® PowerShell, or something else if you prefer.

  2. Execute the following command in the Raspberry Pi® 4 terminal program.

    Copy Text To Clipboard

    sudo apt-get install libgl1-mesa-dev

    You'll receive status information while this command executes.

  3. Execute the following command in your terminal.

    Copy Text To Clipboard

    sudo apt-get install libgles2-mesa-dev

    You'll receive status information while this command executes.

  4. Execute the following command in your terminal.

    Copy Text To Clipboard

    sudo apt-get install libegl-dev

    You'll receive status information while this command executes.

  5. Execute the following command in your terminal.

    Copy Text To Clipboard

    sudo apt install libdrm-dev libgbm-dev libegl-dev libgles2-mesa-dev

    You'll receive status information while this command executes.

    You should now have the correct packages installed to compile and link an OpenGL® application. This exercise is complete. Return to tutorials or proceed to the next exercise in this series.