[Xfc-dev] Build probems on Arch Linux

Todd Musall tmusall at gmail.com
Sat Jun 18 17:57:11 CEST 2005


I'm having the same problem building xfcapp on arch linux.  The
problem seems to be pkg-config not including all required libraries
when invoked as:

$ pkg-config xfcui-4.3 --cflags --libs
-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread
-I/opt/xfce4/include/xfce4/xfc-4.3
-I/opt/xfce4/lib/xfce4/xfc-4.3/include -I/opt/xfce4/include/xfce4
-I/opt/xfce4/lib/xfce4/xfc/include -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include  -pthread -L/opt/xfce4/lib -lXFCui-4.3

If the --static flag is used you'll get all the required libs.  This
allows the application to build:

$ pkg-config xfcui-4.3 --cflags --libs --static
-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread
-I/opt/xfce4/include/xfce4/xfc-4.3
-I/opt/xfce4/lib/xfce4/xfc-4.3/include -I/opt/xfce4/include/xfce4
-I/opt/xfce4/lib/xfce4/xfc/include -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include  -pthread -L/opt/xfce4/lib -lXFCui-4.3
-lgtk-x11-2.0 -lXFCcore-4.3 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgmodule-2.0 -ldl
-lgobject-2.0 -lsigc-2.0 -lgthread-2.0 -lglib-2.0

Here's what the pkg-config variable has:

$ echo $PKG_CONFIG_PATH 
:/opt/gnome/lib/pkgconfig:/opt/kde/lib/pkgconfig:/opt/mozilla/lib/pkgconfig:/opt/qt/lib/pkgconfig:/opt/xfce4/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
$ pkg-config --version
0.17.2

and the xfcui libraries are installed in /opt/xfce4/lib/

Is there something in pkg-config version 0.17 that affects default behavior?

Another interesting thing is if you do:

$ pkg-config gnomeui --cflags --libs         
-DNEED_GNOMESUPPORT_H -I/usr/local/include/gnome-1.0
-I/usr/local/lib/gnome-libs/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
-rdynamic -L/usr/local/lib -L/usr/lib -L/usr/X11R6/lib -lgnomeui
-lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -ldl -lXi
-lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb -lglib

You can see all the required libs listed as expected.  I've searched
PKG_CONFIG_PATH and can't find a gnomeui.pc file.  I can only find a
libgnomeui.pc file.  So I'm not sure where pkg-config is finding
gnomeui.

$ pkg-config --list-all | grep gnomeui
libgnomeui-2.0              libgnomeui - libgnomeui

Any thoughts on what may be misconfigured here?

-Todd



More information about the Xfc-dev mailing list