Re: gnome and pthreads



On Fri, 30 Apr 2004, Frank W. Miller wrote:

I'm not sure what you mean by this, does that go in my LDFLAGS or
something?  When I execute the command standalone, I get the following
output:

[fwmiller localhost gnome]$ pkg-config gthread-2.0 --cflags --libs
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable

Like it says: if you in fact have glib 2 installed, with its gthread
stuff, then add the directory containing gthread-2.0.pc to your
PKG_CONFIG_PATH.  If not, then install it.

Here:

myrtle:~$ echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:\
/opt/gtk2/lib/pkgconfig:/opt/gnome/lib/pkgconfig:\
/usr/X11R6/lib/pkgconfig

myrtle:~$ locate gthread-2.0.pc
/opt/gtk2/lib/pkgconfig/gthread-2.0.pc

myrtle:~$ pkg-config gthread-2.0 --libs
-pthread -L/opt/gtk2/lib -lgthread-2.0 -lglib-2.0

Allin Cottrell



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