David S. wrote:

David Bertoni wrote:
You'll have much better luck getting the head of the Subversion repository to compile cleanly on mingw.


I cross-compiled Xerces 2.8.0, checked out Xalan revision 759804, and
started the process with:

./runConfigure -p mingw-msys -c mingw32-gcc -x mingw32-g++ -r none -z
-mno-cygwin -C --host=i686-mingw32

However, the build stopped with the following message:

 ../../../bin/MsgCreator: ../../../bin/MsgCreator: cannot execute binary
file
Yes, there is no way currently to cross-compile Xalan-C, since the MsgCreator binary needs to run on the host platform to generate the message files. Xerces-C gets around this by pre-generating the message files and checking them into the repository.


The command which built MsgCreator was:

mingw32-g++ -DMINGW  -Wl,--allow-multiple-definition
-DXALAN_INMEM_MSG_LOADER   \
         -lm    -L/tmp/xerces-c-src_2_8_0/lib -lxerces-c
../../../../obj/MsgFileOutputStream.o ../../../../obj/ICUResHandler.o
../../../../obj/InMemHandler.o ../../../../obj/MsgCreator.o
../../../../obj/NLSHandler.o ../../../../obj/SAX2Handler.o -o
../../../../bin/MsgCreator -L/tmp/xerces-c-src_2_8_0/lib -lxerces-c

It seems that MsgCreator is being cross compiled rather the being compiled
for the host system. Any hints as to how to proceed with the build?
Since the message files are just text, you can copy them from any other platform. Take a look at the makefile for the exact set of files to copy, or post back if you can't figure it out.

Dave

Reply via email to