gtkglext comes with a makefile to compile the example code and it works fine. I am able to compile and run all of the examples fine, which tells me I have everything set up ok.
BUT, I cannot figure out how to manually compile. I made a small change (just press space on an empty line) in one of the example source files (button.c) so I could run make again and send the output to a file named my.test.
Here is the contents of that file:
make[1]: Entering directory `/root/Desktop/Downloads/GTK2/gtkglext-1.0.6/examples'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gdk -I../gtk -DG_DISABLE_CAST_CHECKS -I/usr/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0 -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -g -O2 -Wall -MT button.o -MD -MP -MF ".deps/button.Tpo" -c -o button.o `test -f 'button.c' || echo './'`button.c; then mv -f ".deps/button.Tpo" ".deps/button.Po"; else rm -f ".deps/button.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o button button.o ../gdk/libgdkglext-x11-1.0.la ../gtk/libgtkglext-x11-1.0.la -lGLU -lGL -L/usr/X11R6/lib -lXmu -lXt -lSM -lICE -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lm
gcc -g -O2 -Wall -o .libs/button button.o -Wl,--export-dynamic ../gdk/.libs/libgdkglext-x11-1.0.so -L/usr/X11R6/lib ../gtk/.libs/libgtkglext-x11-1.0.so /root/Desktop/Downloads/GTK2/gtkglext-1.0.6/gdk/.libs/libgdkglext-x11-1.0.so -lGLU -lGL -lXmu -lXt -lSM -lICE /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lm
creating button
make[1]: Leaving directory `/root/Desktop/Downloads/GTK2/gtkglext-1.0.6/examples'
I have been trying to figure out how this is compiling the sources but nothing I try seems to work!
And one more thing, gtk-config is still pointing my my old version and I'm not sure how to fix this. What I want to do is have two gtk-config files (one named gtk-config, and one named gtk-config.old), but I'm confused as to how to make the nescesary changes! Please please help!
- Stephen
edit: added source tags
edit 2: added jpeg of output