I tried this already with the instructions as per the website. When I run configure withe CXX and CC pointing to the cross-complier binaries I get errors. I tried with and without compiler flags -O3, -O2 etc.. Here is a snapshot of the error
configure:3741: checking for C++ compiler default output file name configure:3763: /usr/local/arm/cross-gcc-4.4.1-armv5te-soft/i686-pc-linux-gnu/arm-926ejs-linux-gnueabi/bin/g++ -O2 conftest.cpp >&5 In file included from conftest.cpp:11: /usr/local/arm/cross-gcc-4.4.1-armv5te-soft/i686-pc-linux-gnu/arm-926ejs-linux-gnueabi/sys-root/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory In file included from /usr/local/arm/cross-gcc-4.4.1-armv5te-soft/i686-pc-linux-gnu/arm-926ejs-linux-gnueabi/sys-root/usr/include/stdio.h:75, from conftest.cpp:11: /usr/local/arm/cross-gcc-4.4.1-armv5te-soft/i686-pc-linux-gnu/arm-926ejs-linux-gnueabi/sys-root/usr/include/libio.h:53:21: error: stdarg.h: No such file or directory In file included from /usr/local/arm/cross-gcc-4.4.1-armv5te-soft/i686-pc-linux-gnu/arm-926ejs-linux-gnueabi/sys-root/usr/include/stdio.h:75, from conftest.cpp:11: I have the above include files in the compile chain hierarchy. I tried to move it around and configure script gives me some new error each time I fix one . So I figured that is not the way to go. I was able to build Boost C++ with the same cross compile chain without any issues. So I can't suspect the cross-compiler either. If anyone has attempted this please let me know. Thanks ----- Original Message ---- From: Boris Kolpackov <[email protected]> To: [email protected] Sent: Mon, August 23, 2010 5:10:23 PM Subject: Re: ARM-Linux port Hi, diya das <[email protected]> writes: > Have someone been able to successfully build Xerces libraries using the gcc > cross-compiler tool chain for running on an ARM-Linux target. Xerces-C++ 3-series uses the standard autotools build system which supports cross-compilation. If your target has the necessary APIs (transcoding, threads, network, etc.), then I don't see any problems with (cross)compiling Xerces-C++ for it. Boris -- Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog Open-source XML data binding for C++ http://codesynthesis.com/products/xsd XML data binding for embedded systems http://codesynthesis.com/products/xsde Command line interface to C++ compiler http://codesynthesis.com/projects/cli
