As per the 'Quick start guide', I'm having a stab at getting an OpenGL demo working - /opt/vc/src/hello_pi/hello_triangle.
I have compiled it (make) and run it... but it hangs. I gdb'ed it with -g and it is hanging on a swapbuffers...> gdb ./hello_triangle.bin
...Starting program: /home/me/opengltest/hello_pi/hello_triangle/hello_triangle.bin
[Thread debugging using libthread_db enabled]
[New Thread 0x40af2470 (LWP 8331)]
[New Thread 0x412f2470 (LWP 8332)]
[New Thread 0x41af2470 (LWP 8333)]
[New Thread 0x422f2470 (LWP 8334)]
^C
Program received signal SIGINT, Interrupt.
0x4021efc0 in sem_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
(gdb) where
#0 0x4021efc0 in sem_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
#1 0x40059254 in eglSwapBuffers () from /opt/vc/lib/libEGL.so
#2 0x00024ad8 in redraw_scene (state=0x31384) at triangle.c:381
#3 0x000252e0 in main () at triangle.c:539
(gdb) I'm running it through a VNC client with the pi running a tightvncserver, if that matters. Any ideas?
