Open GL Setup for the Cube Example Program

The Cube example program requires that OpenGL be enabled. Follow the procedure below to complete this process.
cd /opt/vc/src/hello_pi
Run ./rebuild.sh this runs through all of the hello_example programs building each example.
cd hello_triangle
Run ./hello_triangle.bin This confirms open GL has been installed correctly
Run sudo raspi-config and select advanced options

Select memory split.

Set GPU memory to 128MB.

Reboot and then you should then be able to run the Cube example.
 

Home

Back

© The BlackBoxCameraTM Company Limited 2019