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 >= 2.6.1 glibmm-2.4 >= 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=/projects/xdirect/thirdparty/libxml2/include
bash-2.05b$ export LIBXML_LIBS=/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++/parsers'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\" -DVERSION=\"2.12.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1 -DHAVE_LIST=1 -DHAVE_MAP=1 -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=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\" -DVERSION=\"2.12.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1 -DHAVE_LIST=1 -DHAVE_MAP=1 -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++/parsers'
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=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)
Thank you
Matthieu