Open mjungnickel18 opened 2 years ago
The problem is somehow caused by the newest Pi Image with Debian Bullseye...
The legacy image with Debian Buster works!
No idea. I haven't updated to another image so far. If anyone figures this out, please share the info with the others.
Hey, I know it is over one year old but last week I experienced this issue as well, so maybe it will help others reading this.
I also had an old RPIs and as this seems to be fine with a RPI2, I decided to go with the RPI2 as well. I set up the project as Sebastian did, only with the most recent Raspbian. Of course it failed as I was not even close to be able to compile it properly due to missing libraries and the like and while not having used C++ for many years, I started investigating if I can make OpenGL without X running at all. In the end I opened an issue here: https://github.com/matusnovak/rpi-opengl-without-x/issues/14 In fact someone answered really fast with telling me I need to install RPI userland:
git clone https://github.com/raspberrypi/userland.git cd userland sudo ./buildme
Doing so, I had /opt/vc available and OpenGL worked. I was able to compile this as well then and currently I am running the program using
sudo LD_LIBRARY_PATH=/opt/vc/lib ./cpu-stats-gl
Thank you Sebastian for all the work.
Thanks, for the info. I think I will leave the issue open just because others might easily find it this way and the issue tracker is not exactly overflowing right now.
Hi,
I tried to recreate your project. I also used an old rpi2 with a raspberry pi os lite installation (no gui).
I had to manually copy the header and libs for open gl because the opt/vc folder was non existent and activate opengl in raspi config.
The triangle example worked. Your program showed the first gray image for 5 seconds on the 3 panels. . But there was no animation. I tried fiddling around, but nothing worked.
Do you have any ideas?