Firstly, the directions for building the sample programs say to go to the root directory of the source package and do a make <program-name> from there. That didn't work. I had to run the make from the c/samples directory below the source root.
After building, I discovered the program in the c/bin directory below the source root.
Running from there I got more linking errors:
Mark-Goldsteins-Computer:~/Documents/XALAN/xml-xalan/c/bin mark$ ./XalanTransform
dyld: ./XalanTransform can't open library: ../../lib/libxalan-c.dylib.17.0 (No such file or directory, errno = 2)
This because the XALAN libraries are in c/lib
So I created the higher level lib folder and put links down to the actual libraries in it.
Now I can't link to the xerces libraries:
Mark-Goldsteins-Computer:~/Documents/XALAN/xml-xalan/c/bin mark$ ./XalanTransform
dyld: ./XalanTransform can't open library: libxerces-c.24.dylib (No such file or directory, errno = 2)
Can someone tell me if there is a blessed location for all these libraries, and/or what links are required?
After verifying XalanTransform, I'd like to build a statically linked version of XALAN for inclusion in an Xcode project. I do not want to have to link the code to external libraries at runtime. Is this possible?
Thanks, -Mark
On Feb 11, 2004, at 9:47 AM, Matthew Hoyt wrote:
Hi Mark,
The libxerces aliases under /Users/mark/Documents/XALAN/XERCES/xerces-c-src2_4_0/lib Should both be pointing to the libxerces-c.24.0.dylib library.
-Matt
Mark Goldstein
<[EMAIL PROTECTED]>
To
02/11/2004 12:40 [email protected]
PM cc
Subject
Please respond to Problem building XALAN on Mac OS-X
xalan-c-users Panther
I'm trying to build XALAN/XERCES under Panther and I'm getting compile errors during the make. I have a hunch that I did not do everything necessary to install XERCES. The installation as described on the main page (http://xml.apache.org/xerces-c/build-winunix.html#UNIX) didn't work, but when I used the extra runConfig parameters described on the list (http://xml.apache.org/xerces-c/build-other.html#Mac) I was able to do the make. I stopped there. But now, when I try to build XALAN on top of it, I am getting compile errors.
I *think* I have successfullly built XERCES, I see the library libxerces-c.24.0.dylib in XERCESCROOT/lib but I also see two aliases (libxerces-c.24.dylib and libxerces-c.dylib) that point at nothing. Is that a problem?
To build XALAN I set the two environment variables: declare -x XALANCROOT="/Users/mark/Documents/XALAN/xml-xalan/c" declare -x XERCESCROOT="/Users/mark/Documents/XALAN/XERCES/xerces-c-src2_4_0"
and ran the make file like this: Mark-Goldsteins-Computer:~/Documents/XALAN/xml-xalan/c mark$ ./runConfigure -p macosx -c gcc -x c++
The compile runs for a while, then I get this:
c++ -O -DNDEBUG -fno-elide-constructors -Wall -fno-elide-constructors -DMACOSX -D_REENTRANT -DXALAN_USE_XERCES_LOCAL_CODEPAGE_TRANSCODERS -DXALAN_INMEM_MSG_LOADER \ -lm -lpthread -L/usr/lib -L/usr/local/lib -L/Users/mark/Documents/XALAN/XERCES/xerces-c-src2_4_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 ld: warning -L: directory name (/usr/local/lib) does not exist ld: can't locate file for: -lxerces-c gnumake[3]: *** [../../../../bin/MsgCreator] Error 1 gnumake[2]: *** [../../../bin/MsgCreator] Error 2 gnumake[1]: *** [locale] Error 2 gnumake: *** [all] Error 2
Have I missed a step in building/installing XERCES or is there a problem configuring the XALAN build? I have written about this to all three lists (xalan-c-users, xerces-c-dev, and xalan-dev), sorry for any duplications.
Thanks for you help. -Mark
