Difference between revisions of "Xalan-C++"

From CBLFS
Jump to navigationJump to search
(Fixes that may be needed for x86_64 multilib)
(If you're going to fix something fix it, dont litter)
Line 51: Line 51:
  
 
  make install
 
  make install
 
''If the build fails, please try the following:
 
''
 
 
Compile the package:
 
 
cd c &&
 
export XALANCROOT=$PWD &&
 
export XERCESCROOT=</path/to/xerces-c-32bit-build-directory> &&
 
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH32} &&
 
sed -i "s/(int)m_/(long)m_/" src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp &&
 
sed -i 1i"#include <cstring>" src/xalanc/XalanDOM/XalanDOMString.cpp &&
 
sed -i 1i"#include <cstring>" src/xalanc/XMLSupport/FormatterToHTML.cpp &&
 
sed -i 1i"#include <cstring>" src/xalanc/XSLT/ElemNumber.cpp &&
 
sed -i 1i"#include <cstring>" src/xalanc/TestXPath/TestXPath.cpp &&
 
sed -i 1i"#include <cstring>" src/xalanc/XalanExe/XalanExe.cpp &&
 
./runConfigure -p linux -c gcc -x g++ -b 32 \
 
    -z "${BUILD32}" -l "${BUILD32}" -m nls \
 
    -l -lpthread -P /usr \
 
    -C --build=${CLFS_TARGET32} &&
 
make
 
 
Install the package:
 
 
make install &&
 
unset PKG_CONFIG_PATH &&
 
unset XALANCROOT &&
 
unset XERCESCROOT &&
 
cd ..
 
  
 
=== N32 ===
 
=== N32 ===
Line 100: Line 71:
  
 
  make install
 
  make install
 
''If the build fails, please try the following:
 
''
 
 
Compile the package:
 
 
cd c &&
 
export XALANCROOT=$PWD &&
 
export XERCESCROOT=</path/to/xerces-c-64bit-build-directory> &&
 
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH64} &&
 
sed -i "s/(int)m_/(long)m_/" src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp &&
 
sed -i 1i"#include <cstring>" src/xalanc/XalanDOM/XalanDOMString.cpp &&
 
sed -i 1i"#include <cstring>" src/xalanc/XMLSupport/FormatterToHTML.cpp &&
 
sed -i 1i"#include <cstring>" src/xalanc/XSLT/ElemNumber.cpp &&
 
sed -i 1i"#include <cstring>" src/xalanc/TestXPath/TestXPath.cpp &&
 
sed -i 1i"#include <cstring>" src/xalanc/XalanExe/XalanExe.cpp &&
 
./runConfigure -p linux -c gcc -x g++ -b 64 \
 
    -z "${BUILD64}" -l "${BUILD64}" -m nls \
 
    -l -lpthread -P /usr -C --libdir=/usr/lib64 &&
 
make
 
 
Install the package:
 
 
make install &&
 
unset PKG_CONFIG_PATH &&
 
unset XALANCROOT &&
 
unset XERCESCROOT &&
 
cd ..
 
 
{{Note|To combine this alternative build procedure with the original, #include <cstring> should be inside an #ifndef XALAN_STRICT_ANSI_HEADERS directive. This procedure was found necessary by at least one user on an x86_64 multilib system.}}
 
  
 
[[Category:General Libs]]
 
[[Category:General Libs]]

Revision as of 05:41, 27 April 2009

Download Source: http://apache.edgescape.com/xml/xalan-c/Xalan-C_1_10_0-src.tar.gz
Download Source: http://www.apache.org/dist/xml/xalan-c/source/Xalan-C_1_10_0-src.tar.gz

Introduction to Xalan-C++

Project Homepage: Unknown

Dependencies

Required

Non-Multilib

Caution.png

Note

On Pure64 system add "-b 64" to the runConfigure line.

Compile the package:

cd c &&
export XALANCROOT=$PWD &&
sed -i "s/(int)m_/(long)m_/" src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp &&
./runConfigure -p linux -c gcc -x g++ -m nls \
   -l -lpthread -P /usr &&
make

Install the package:

make install

Multilib

32bit

Compile the package:

cd c &&
export XALANCROOT=$PWD &&
sed -i "s/(int)m_/(long)m_/" src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp &&
./runConfigure -p linux -c gcc -x g++ -b 32 \
   -z "${BUILD32}" -l "${BUILD32}" -m nls \
   -l -lpthread -P /usr &&
make

Install the package:

make install

N32

ToDo

64Bit

Compile the package:

cd c &&
export XALANCROOT=$PWD &&
sed -i "s/(int)m_/(long)m_/" src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp &&
./runConfigure -p linux -c gcc -x g++ -b 64 \
   -z "${BUILD64}" -l "${BUILD64}" -m nls \
   -l -lpthread -P /usr -C --libdir=/usr/lib64 &&
make

Install the package:

make install