[Xastir] OSX Build - long

Jeremy McDermond mcdermj at xenotropic.com
Thu Dec 15 14:49:01 EST 2011


On Dec 15, 2011, at 11:03 AM, Tom Russo wrote:
> FWIW, on my systems, "ldd" on the libXm.so shared library reports that it 
> depends on libXft, and the dynamic linker takes care of that.  I don't know
> why the dylib you've build doesn't carry that same information, but you
> can double check the dependencies with "/usr/bin/otool," so I read.  

otool -L is the rough equivalent of ldd on other systems.  Note that MacOS doesn't really look for shared libraries around the file system with the equivalent of /etc/ld.so.conf or LD_LIBRARY_PATH, rather having paths to the shared libraries contained within the binaries themselves.  You can change these paths with install_name_tool.

One also needs to be careful with fat binaries.  If the appropriate architecture isn't in the .dylib file linkages can easily fail.  The file command will show the different architectures continued within a shared library.

--
Jeremy McDermond (NH6Z)
Xenotropic Systems
mcdermj at xenotropic.com





More information about the Xastir mailing list