Hi,
i have downloaded and installed the gtkglarea rpm (version 1.2.2). When i try and compile one of the example programs i get the following error.
Code:
make
gcc simple.c -o simple `pkg-config --cflags gtk+-2.0 --libs` -Wl,-rpath,/usr/lib -lgtkgl -lGLU -lGL
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libgtkgl.so: undefined reference to `gtk_type_is_a'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libgtkgl.so: undefined reference to `gtk_widget_pop_visual'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libgtkgl.so: undefined reference to `gdk_pixmap_ref'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libgtkgl.so: undefined reference to `gdk_pixmap_unref'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libgtkgl.so: undefined reference to `gdk_window_get_type'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libgtkgl.so: undefined reference to `gtk_type_check_object_cast'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libgtkgl.so: undefined reference to `gtk_type_check_class_cast'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libgtkgl.so: undefined reference to `gtk_widget_push_visual'
collect2: ld returned 1 exit status
make: *** [simple] Error 1
After viewing another thread,
http://mail.gnome.org/archives/gtk-a.../msg00296.html
my feeling is the problem could be solved by updating gtkglarea, however when i try and install the latest rpm it spits back that OpenGL isn't installed :S This can't be right since i can compile and run other opengl programs.
Could this be a linking problem? Anyone have any suggestions? I am running FC3 and the latest xorg drivers from ati if that helps...
I downloaded a precompiled version of the program i am trying to compile (simple.c - an example gtkglarea program ) and i ran "ldd simple" to determine what libraries it is linking to. Turns out that it is linking to "libgtkgl.so.5" whereas my problem seems to stem from "libgtkgl.so". Not sure if this helps any, but thought i'd add it anyways.
Many Thanks!