Hi IIR! Thank you for your work. But i currently can't run this code. I use Ubuntu and Eclipse, and i follow your step-by-step instructions. But i get linker error in Eclipse console:
Quote:
Building target: GtkGLAppGStreamer
Invoking: GCC C Linker
gcc -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lxml2 -lgthread-2.0 -lrt -lglib-2.0 -rdynamic -o"GtkGLAppGStreamer" ./src/main.o -lxml2 -lGLU -lgtkglext-x11-1.0 -lGL -lgstapp-0.10 -lglut
/usr/bin/ld: ./src/main.o: undefined reference to symbol 'gdk_gl_context_new'
/usr/bin/ld: note: 'gdk_gl_context_new' is defined in DSO /usr/lib/libgdkglext-x11-1.0.so.0 so try adding it to the linker command line
/usr/lib/libgdkglext-x11-1.0.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [GtkGLAppGStreamer] Error 1
...but it already added to linker command line, as i see.
The same error raises when i try to run this command from command line, outside the Eclipse.
I'm too novice in C, and can't find solutions for similar problems on the web. I also see this file is exist:
Quote:
$ sudo find / -name "*gtkglext-x11-1.0*"
/usr/lib/libgtkglext-x11-1.0.so.0.0.0
/usr/lib/pkgconfig/gtkglext-x11-1.0.pc
/usr/lib/libgtkglext-x11-1.0.a
/usr/lib/libgtkglext-x11-1.0.so.0
/usr/lib/libgtkglext-x11-1.0.la
/usr/lib/libgtkglext-x11-1.0.so
Can you help me please? Thank you very much!