xn wrote:
I'm having problems building Xalan-C for Mac OS X Snow Leopard - I don't
think there are binaries available for this platform. I've got
Xerces-C-2_8_0 working (I think) and installed in
/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0/ but when I download, unzip and
untar Xalan-C_1_10-src.tar.gz to /Users/christian/temp/ and try to build it
from the resulting ~/temp/xml-xalan/c/ directory, it won't work.
I have set $XERCESCROOT to /usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0
and $XALANCROOT to /Users/christian/temp/xml-xalan/c
and added /usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0 to $PATH
and $DYLD_LIBRARY_PATH is /usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0/lib:
Then,
./runConfigure -p macosx -c gcc -x g++
seems to set up the configuration OK, but when I run 'make' I get problems
starting with:
ld: warning: in
/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0/lib/libxerces-c.dylib, file is
not of required architecture
This indicates the Xerces-C binary you built is for a different architecture than the Xalan-C binaries you're linking with it. When you way you "think" you've got Xerces-C working, can you provide more details, like the flags you provided to the Xerces-C runConfigure script? Also, it would be helpful if you could provide a dump of the header of the Xerces-C shared object, using otool:

otool -h libxerces-c.dylib

You can find more information about deciphering this output here:

http://0xfe.blogspot.com/2006/03/how-os-x-executes-applications.html

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org
For additional commands, e-mail: xalan-dev-h...@xml.apache.org

Reply via email to