RE: Compoilation error



On Tue, 28 Jan 2003, Joaquin Henriquez Alzola (REE) wrote:

> I have this for:
> # gtk-config --libs --cflags
> -I/opt/sfw/include/gtk-1.2 -I/opt/sfw/include/glib-1.2 -I/opt/sfw/lib/glib/include -I/usr/openwin/include
> -L/opt/sfw/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm
> #    
> 
> I think that from here I can see that -lgmodule is not specifiued in the path and when I do a serach for the *.pc
> # find / -name "*.pc"
> /var/glib-2.2.0/glib-2.0.pc
> /var/glib-2.2.0/glib-2.0-uninstalled.pc
> /var/glib-2.2.0/gmodule-2.0.pc
> /var/glib-2.2.0/gmodule-2.0-uninstalled.pc
> /var/glib-2.2.0/gthread-2.0.pc
> /var/glib-2.2.0/gthread-2.0-uninstalled.pc
> /var/glib-2.2.0/gobject-2.0.pc
> /var/glib-2.2.0/gobject-2.0-uninstalled.pc
> /usr/local/lib/pkgconfig/glib-2.0.pc
> /usr/local/lib/pkgconfig/gobject-2.0.pc
> /usr/local/lib/pkgconfig/gmodule-2.0.pc
> /usr/local/lib/pkgconfig/gthread-2.0.pc
> /opt/sfw/lib/pkgconfig/gdk.pc
> /opt/sfw/lib/pkgconfig/gtk+.pc

It looks like you have more than one version on your system. gtk-config is
reporting glib-1.2 and yet your find is reporting glib-2.2.0.

Perhaps you are using the wrong version of gtk-config? Do a "which
gtk-config" and make sure it corresponds with the one you want to use.

My guess would be that glib-1.2 is installed in /opt/sfw and glib-2.2 is
installed in /usr/local, so you would want to use
/usr/local/bin/gtk-config instead of /opt/sfw/bin/gtk-config.

Hope this helps,
Chris





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