The thirdparty packages that would need to be installed as prerequisites are:
$ yum search expat
$ sudo apt-get install automake autoconf libtool
$ sudo apt-get install xsltproc
$ sudo apt-get install libexpat libexpat-dev
$ sudo yum install automake autoconf libtool
$ sudo yum install xsltproc
$ sudo yum install expat expat-devel
$ sudo port install automake autoconf libtool
$ sudo port install xsltproc
$ sudo port install expat expat-devel
autotools
configure
autogen.sh
Makfile.in
$ ./autogen.sh
$ ./autogen.sh --prefix=/path/of/installation
$ ./autogen.sh --prefix=$HOME/xplusbuild
$ make && make install
$ ./configure
$ ./configure --prefix=/path/of/installation
$ ./configure --prefix=$HOME/xplusbuild
$ export PATH=$PATH:/path/of/installation/bin $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/of/installation/lib
$ export PATH=$PATH:$HOME/xplusbuild/bin $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/xplusbuild/lib
$ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/path/of/installation/lib
Once you have installed the XmlPlus tool, the libraries and the binaries must be in LD_LIBRARY_PATH and PATH respectively. Assuming that you have installed the build in the path $HOME/xplusbuild/, let us peek into the installation.
[~/xplusbuild] $ ls -1 bin include lib
[~/xplusbuild] $ ls -1 bin/ domParser xsd2cpp
[~/xplusbuild] $ ls -1 include/ DOM Poco XPlus XSD
$ ls -1 lib/ | grep "so.*" libxsdall.so libxsdall.so.0 libxsdall.so.0.0.0
$ ls -1 lib/ | grep "\.a$" libxsdall.a
$ xsd2cpp Usage: 1. xsd2cpp xsd-file [outdir] outdir: directory to output the generated source to (if unspecified, defaults to xsd-file-name) 2. xsd2cpp -v prints verion 3. xsd2cpp -h prints help