Difference between revisions of "Xerces-C++"

From CBLFS
Jump to navigationJump to search
(the package has c++ in it's name for christs sake, forget cxx? get your head out of your ass and look at what you're doing, libraries are not going to the right place, etc.)
 
(14 intermediate revisions by 5 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://www.apache.org/dist/xml/xerces-c/source/xerces-c-src_2_7_0.tar.gz
+
| http://www.apache.org/dist/xerces/c/sources/xerces-c-src_{{Xerces-C++-Version}}.tar.gz
 
|}
 
|}
  
 
----
 
----
  
{{Blank-Package-Introduction}}
+
{{Package-Introduction|Xerces-C++ is a validating XML parser written in a portable subset of C++. Xerces-C++ makes it easy to give your application the ability to read and write XML data. A shared library is provided for parsing, generating, manipulating, and validating XML documents using the DOM, SAX, and SAX2 APIs.|http://xerces.apache.org/xerces-c/}}
  
 
== Dependencies ==
 
== Dependencies ==
 +
  
 
== Non-Multilib ==
 
== Non-Multilib ==
 +
 +
{{Note|On Pure64 systems add "-b64" to the runConfigure line.}}
  
 
Compile the package:
 
Compile the package:
Line 17: Line 20:
 
  export XERCESCROOT=$PWD &&
 
  export XERCESCROOT=$PWD &&
 
  cd src/xercesc &&
 
  cd src/xercesc &&
  ./configure --prefix=/usr &&
+
  ./runConfigure -plinux -cgcc -xg++ -P/usr \
 +
    -minmem -nsocket -tnative -rpthread &&
 
  make
 
  make
  
Line 32: Line 36:
 
  export XERCESCROOT=$PWD &&
 
  export XERCESCROOT=$PWD &&
 
  cd src/xercesc &&
 
  cd src/xercesc &&
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 \
+
  ./runConfigure -plinux -cgcc -xg++ -b32 -P/usr \
./configure --prefix=/usr &&
+
    -minmem -nsocket -tnative -rpthread \
 +
    -z "${BUILD32}" -l "${BUILD32}" &&
 
  make
 
  make
  
Line 52: Line 57:
 
  export XERCESCROOT=$PWD &&
 
  export XERCESCROOT=$PWD &&
 
  sed -i "s:/lib:&64:g" obj/Makefile.in &&
 
  sed -i "s:/lib:&64:g" obj/Makefile.in &&
 +
sed -i "s:{XERCESCROOT}/lib64:{XERCESCROOT}/lib:g"
 
  cd src/xercesc &&
 
  cd src/xercesc &&
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 \
+
  ./runConfigure -plinux -cgcc -xg++ -b64 -P/usr \
./configure --prefix=/usr --libdir=/usr/lib64 &&
+
    -minmem -nsocket -tnative -rpthread \
 +
    -z "${BUILD64}" -l "${BUILD64}" &&
 
  make
 
  make
  
Line 61: Line 68:
 
  make install &&
 
  make install &&
 
  unset XERCESCROOT
 
  unset XERCESCROOT
 +
 +
[[Category:General Libs]]

Latest revision as of 10:28, 20 September 2009

Download Source: http://www.apache.org/dist/xerces/c/sources/xerces-c-src_2_8_0.tar.gz

Introduction to Xerces-C++

Xerces-C++ is a validating XML parser written in a portable subset of C++. Xerces-C++ makes it easy to give your application the ability to read and write XML data. A shared library is provided for parsing, generating, manipulating, and validating XML documents using the DOM, SAX, and SAX2 APIs.

Project Homepage: http://xerces.apache.org/xerces-c/

Dependencies

Non-Multilib

Caution.png

Note

On Pure64 systems add "-b64" to the runConfigure line.

Compile the package:

export XERCESCROOT=$PWD &&
cd src/xercesc &&
./runConfigure -plinux -cgcc -xg++ -P/usr \
    -minmem -nsocket -tnative -rpthread &&
make

Install the package:

make install

Multilib

32bit

Compile the package:

export XERCESCROOT=$PWD &&
cd src/xercesc &&
./runConfigure -plinux -cgcc -xg++ -b32 -P/usr \
    -minmem -nsocket -tnative -rpthread \
    -z "${BUILD32}" -l "${BUILD32}" &&
make

Install the package:

make install &&
unset XERCESCROOT

N32

ToDo

64Bit

Compile the package:

export XERCESCROOT=$PWD &&
sed -i "s:/lib:&64:g" obj/Makefile.in &&
sed -i "s:{XERCESCROOT}/lib64:{XERCESCROOT}/lib:g"
cd src/xercesc &&
./runConfigure -plinux -cgcc -xg++ -b64 -P/usr \
    -minmem -nsocket -tnative -rpthread \
    -z "${BUILD64}" -l "${BUILD64}" &&
make

Install the package:

make install &&
unset XERCESCROOT