Is it possible to build a version of xerces-c-3.1.dylib
that will work with multiple versions of OSX? Ideally, 10.4+, but 10.5+, or even 10.6+ would be OK. How?
I am working with an external (command-line) program (ie not one I control) that requires but does not include the dylib and the goal is to not have to rebuild it on every machine.
The Xerces-C++ project does not have pre-compiled binaries for OSX so I attempted to build one from source (under OSX 10.8.4) by:
Download the latest source code (I used xerces-c-3.1.1.tar.gz)
Run
./configure CFLAGS="-arch x86_64 -mmacosx-version-min=10.4" CXXFLAGS="-arch x86_64 -mmacosx-version-min=10.4"
Run
make
. Thelibxerces-c-3.1.dylib
file can be found in the hidden foldersrc/.lib
.Copy this file to /usr/local/lib
This dylab runs fine on 10.8.4 and 10.7.5 machines. Problem is does not work on 10.6.8 (and presumably older) machines. On 10.6.8 I get the following error:
dyld: Library not loaded: /usr/lib/libcurl.4.dylib
Referenced from: /usr/local/lib/libxerces-c-3.1.dylib
Reason: Incompatible library version: libxerces-c-3.1.dylib requires
version 7.0.0 or later, but libcurl.4.dylib provides version 6.0.0
Any ideas?