Using Xcode I included the frameworks that are generated by xalan and xerces. But I get following error at run time,

warning can't open dynamic library: ../../../../lib/libxalanMsg.dylib.17.0

When I looked for shared library dependency using oTool,

otool -L xalanc.framework/Versions/A/xalanc
/Users/ushah/Development/Analyzer_4.0/plugin/src/Frameworks/ xalanc.framework/Versions/A/xalanc:
../../lib/libxalan-c.dylib.17.0 (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.0.0)
libxerces-c.24.dylib (compatibility version 0.0.0, current version 0.0.0)
../../../../lib/libxalanMsg.dylib.17.0 (compatibility version 0.0.0, current version 0.0.0)


I am not sure as to how to configure Xcode to take libxalanMsg.dylib

It will be great if someone knows solution to this problem. Is there a way for me to create static libraries so that I won't have to depend on these dylibs in deployment.

Here are the details of the link process that is carried out by Xcode,

cd /Users/ushah/Development/Analyzer_4.0/plugin/src/WaAnAnalyzer
/usr/bin/g++-3.3 -o /Users/ushah/Development/Analyzer_4.0/plugin/src/WaAnAnalyzer/build/ WaAnAnalyzer.fmplugin/Contents/MacOS/WaAnAnalyzer -L/Users/ushah/Development/Analyzer_4.0/plugin/src/WaAnAnalyzer/build -F/Users/ushah/Development/Analyzer_4.0/plugin/src/WaAnAnalyzer/build -F/Users/ushah/Development/Analyzer_4.0/plugin/src/Frameworks -filelist /Users/ushah/Development/Analyzer_4.0/plugin/src/WaAnAnalyzer/build/ WaAnAnalyzer.build/WaAnAnalyzer.build/Objects-normal/ WaAnAnalyzer.LinkFileList -framework Carbon -framework xalanc -framework xercesc -framework FMWrapper -arch ppc -bundle
ld: warning can't open dynamic library: ../../../../lib/libxalanMsg.dylib.17.0 (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
xalanc_1_7::XalanMsgContainer::getMessage(unsigned) referenced from ../../lib/libxalan-c.dylib.17.0 expected to be defined in ../../../../lib/libxalanMsg.dylib.17.0
xalanc_1_7::XalanMsgContainer::getNumbOfMsgs() referenced from ../../lib/libxalan-c.dylib.17.0 expected to be defined in ../../../../lib/libxalanMsg.dylib.17.0
ld: warning can't open dynamic library: ../../../../lib/libxalanMsg.dylib.17.0 (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:



Similar post on following url, http://marc.theaimsgroup.com/?l=xalan-dev&m=107661053830199&w=2

I'd like to include the Xalan transformation engine in my Xcode application without requiring the installation of the libraries. Is it possible to build a statically
linked version of Xalan that can be included totally within the Xcode project?





Reply via email to