From: Labour, M. (M. SF) <mat...@ml...> - 2005-12-07 16:56:27
|
Hi, I would like to use libxml++ I got the following problem with configure checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBXML_CFLAGS... checking for LIBXML_LIBS... Package libxml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libxml-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libxml-2.0' found configure: error: Package requirements (libxml-2.0 >=3D 2.6.1 glibmm-2.4 >=3D 2.4.0) were not met. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively you may set the LIBXML_CFLAGS and LIBXML_LIBS environment variables to avoid the need to call pkg-config. See the pkg-config man page for more details. Then I changed set LIBXML_CFLAGS & LIBXML_LIBS bash-2.05b$ export LIBXML_CFLAGS=3D/projects/xdirect/thirdparty/libxml2/include bash-2.05b$ export = LIBXML_LIBS=3D/projects/xdirect/thirdparty/libxml2/lib Then I reran configure but When I compiled, I got the following error : bash-2.05b$ make Making all in libxml++ make[1]: Entering directory `/home/mlabour/libxml++/libxml++2.12.0/build/libxml++-2.12.0/libxml++' Making all in parsers make[2]: Entering directory `/home/mlabour/libxml++/libxml++2.12.0/build/libxml++-2.12.0/libxml++/pa rsers' if /bin/sh ../../libtool --tag=3DCXX --mode=3Dcompile g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = -DPACKAGE=3D\"libxml++\" -DVERSION=3D\"2.12.0\" -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_DLFCN_H=3D1 = -DHAVE_STRING=3D1 -DHAVE_LIST=3D1 -DHAVE_MAP=3D1 -I. -I. -I../.. /projects/xdirect/thirdparty/libxml2/include -g -O2 -MT parser.lo -MD -MP -MF ".deps/parser.Tpo" -c -o parser.lo parser.cc; \ then mv -f ".deps/parser.Tpo" ".deps/parser.Plo"; else rm -f ".deps/parser.Tpo"; exit 1; fi mkdir .libs g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" = -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = -DPACKAGE=3D\"libxml++\" -DVERSION=3D\"2.12.0\" -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_DLFCN_H=3D1 = -DHAVE_STRING=3D1 -DHAVE_LIST=3D1 -DHAVE_MAP=3D1 -I. -I. -I../.. /projects/xdirect/thirdparty/libxml2/include -g -O2 -MT parser.lo -MD -MP -MF .deps/parser.Tpo -c parser.cc -fPIC -DPIC -o .libs/parser.o g++: cannot specify -o with -c or -S and multiple compilations make[2]: *** [parser.lo] Error 1 make[2]: Leaving directory `/home/mlabour/libxml++/libxml++2.12.0/build/libxml++-2.12.0/libxml++/pa rsers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mlabour/libxml++/libxml++2.12.0/build/libxml++-2.12.0/libxml++' make: *** [all-recursive] Error 1 I would appreciate any help My system: OS name : Linux OS release : 2.4.21-32.0.1.ELsmp OS version : #1 SMP Tue May 17 17:52:23 EDT 2005 Hardware platform : i686 Machine uptime : 269926 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr/share/info --enable-shared --enable-threads=3Dposix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=3Di386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-52) Thank you Matthieu -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the = sender, delete it and do not read, act upon, print, disclose, copy, = retain or redistribute it. Click here for important additional terms = relating to this e-mail. http://www.ml.com/email_terms/ -------------------------------------------------------- |