Re: gtk+ compile problems...



On Thu, 18 May 2000, Nils Barth wrote:

> Hi-
> 
> Sorry to bother, but I'm having trouble building gtk+.
> I checked out the latest glib and gtk+, and glib compiles fine, while
> gtk+ dies with error:
> ----------------------------------------------------------------------
> gcc -g -O2 -g -Wall -o .libs/testgtk testgtk.o .libs/libgtk.so
> -L/usr/X11R6/lib -lXext -lX11 -lm ../gdk/.libs/libgdk.so -lXext -lX11
> -lm -L/usr/X11R6/lib -lXext -lX11 ../../glib/.libs/libglib.so
> ../../glib/gmodule/.libs/libgmodule.so -ldl -lm -Wl,--rpath
> -Wl,/usr/local/lib
> testgtk.o: In function `build_option_menu':
> /home/nbarth/work/software/gtk+/gtk/testgtk.c:111: undefined reference
> to `g_type_check_instance_cast'
> 
> ...many more g_type_check_instance_cast undefineds...
> 
> testgtk.o:/home/nbarth/work/software/gtk+/gtk/testgtk.c:5522:
> more undefined references to `g_type_check_instance_cast' follow
> .libs/libgtk.so: undefined reference to `g_enum_get_value_by_name'
> .libs/libgtk.so: undefined reference to `g_type_register_fundamental'
> 
> ...etc...
> collect2: ld returned 1 exit status
> make[2]: *** [testgtk] Error 1
> ----------------------------------------------------------------------
> 
> So. . .I'd like to hack on gtk menus (add long menus? fix submenu
> navigation?).
> What should I do?

odd, your gtk is obviously not linking against libgobject.so.
does this work for you:
$ glib-config --version
1.3.1
$ glib-config --libs gmodule gobject
-L/usr/local/lib -rdynamic -lgmodule -lgobject -lglib -ldl

if yes, then we have to figure why gtk's configure.in is partying
out on your system...

> 
> -- 
>   -nils
> Public key: http://www.fas.harvard.edu/~nbarth/pub-key.txt
> 

---
ciaoTJ





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]