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

c++-classes: tips on building xerces

Hi all,
the c++ classes will run with xerces version 1.1.0 and 1.2.0. On my machine however (Linux) I was faced to some minor problems when compiling & installing xerces.

So here follows a short description on how I installed it.

Downloaded the file
unpacked it on $HOME with

tar xfvz Xerces-C-src_1_2_0.tar.gz

this would create the directory $HOME/xerces-c-src_1_2_0
now I set the XERCESCROOT environment variable to point to that directory (with bash):

export XERCESCROOT=$HOME/xerces-c-src_1_2_0
./runConfigure -plinux -cgcc -xg++ -minmem -nfileonly -tnative
./configure --prefix=/usr/local/xerces
make install
mkdir /usr/local/xerces/util/Platforms
mkdir /usr/local/xerces/util/Platforms/Linux
cp $XERCESCROOT/include/util/Platforms/Linux/LinuxDefs.hpp /usr/local/xerces/util/Platforms/Linux

The last three lines are there because the normal install procedure did miss a file in the installation.

You then need to edit /etc/ld.so.conf by adding the line
/usr/local/xerces/lib save it and run ldconfig
or if you don't want to do that, set LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=/usr/local/xerces/lib:$LD_LIBRARY_PATH


Michele Laghi
Av. Benavides 163 dpto. 301
tel. +51 1 4463956
e-mail: michele.laghi at attglobal.net