Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable OpenGL, for failed to add service error
#4
A reader has contacted me to let me know that the Triangle code now does not work at all on Rpi4 Buster.. I've checked and yes sadly this is true so we need a new Hello Triangle system.
Sadly the book is becoming quite outdated now as the Rpi3 is not being used so much. And I am not 100% sure what changes Buster OS makes to it. but I will burn Buster on to a Pi3b and check soon.

The Rpi4 is asserting itself as the dominant system, and rightly so, it is a far more powerful graphics system. But I'm not going to abandon you.. it will take a bit of effort but we can get things going again, but typing in the hello triangle code is now a bit pointless as the set up for Rpi4 is quite different and much of the triangle setup code is now redundant..

The changes are a little more than just entered content, you will need to install mesa graphic libs as well as libRandR to set up resolutions in X11,
these libs are installed by opening a terminal (while the RPi4 is connected to the internet) and entering

sudo apt-get install libgles2-mesa-dev -y
then
sudo apt-get install libxrandr-dev -y

You also need to make sure you have default or legacy GPU drivers, (in terminal enter sudo raspi-config then go to advanced then gl drivers)
And in preferences from the desktop don't set the GPU memory to more than 100M (I have mine at 76) The Pi4 automatically uses what memory it has, but the preferences reserve some memory for the Os which reduces the memory the GPU can play with. The Pi3 however does require you to allocate as much as you can.

Now your Rpi is ready to work as a fully featured X11 OpenGLES2/3 system. I'm working on a new hello triangle project for you to download now, it will be ready in a few hours.
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's 



Reply


Messages In This Thread
RE: Disable OpenGL, for failed to add service error - by Brian Beuken - 11-07-2021, 04:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)