[Xfc-dev] Build probems on Arch Linux

Jeff Franks jcfranks at tpg.com.au
Mon May 30 04:22:53 CEST 2005


Desmont Underhill wrote:

>I'm having some strange problems with building the examples myself.
>The tutorial says that to build the project some lines in the Makefile
>should look like this:
>
>xfcapp: xfcapp.cc xfcapp.hh 
>    $(CC) xfcapp.cc -o xfcapp $(CFLAGS) `pkg-config xfcui-4.3 --cflags --libs`
>
>However this doesn't work for me. I get lots of errors:
>
>g++ xfcapp.cc -o xfcapp -Wall -O2 `pkg-config xfcui-4.3 --cflags --libs`
>/tmp/ccaeSDUn.o(.text+0xcf): In function `XfcApp::XfcApp()':
>: undefined reference to `Xfc::Trackable::Trackable()'
>/tmp/ccaeSDUn.o(.text+0xe0): In function `XfcApp::XfcApp()':
>: undefined reference to `Xfc::G::TypeInstance::TypeInstance()'
>/tmp/ccaeSDUn.o(.text+0xf7): In function `XfcApp::XfcApp()':
>: undefined reference to `Xfc::G::TypeInterface::TypeInterface()'
>
>But when I change the lines to:
>
>xfcapp: xfcapp.cc xfcapp.hh
>		$(CC) xfcapp.cc -o xfcapp $(CFLAGS) `pkg-config xfcui-4.3
>xfccore-4.3 --cflags --libs`
>
>..the program builds without any errors.
>Am I doing something horribly wrong?
>_______________________________________________
>  
>
This shouldn't happen. Specifying xfcui-4.3 should automatically include 
the cflags and libs for xfccore-4.3 because the xfcui-4.3.pc file 
specifies xfccore-4.3 is required. Do you have pkg-config installed 
properly. If you have XFC installed in your home directory do you have a 
line like this in your shell file:

PKG_CONFIG_PATH=$HOME/lib/pkgconfig

export PKG_CONFIG_PATH

Jeff




More information about the Xfc-dev mailing list