<HTML>
<HEAD>
<TITLE>Setting install_name on Mac OSX 10.5</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello all,<BR>
I’m trying to use swig (SWIG_ADD_MODULE, SWIG_LINK_LIBRARIES) to generate java bindings for a library (contains a couple of sub libraries, similar to VTK’s setup). I haven’t been able to load the generated shared libraries.<BR>
There were a couple of issues:<BR>
</SPAN></FONT><OL><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>My jvm won’t load shared libraries unless they are named “lib{libName}.dylib”. Default creates {libName}.so. I was able to modify the properties of my of my targets to change the prefix to “lib” and the suffix to “.dylib” and the libs began to load but
</SPAN></FONT><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>My jvm won’t load the generated shared libraries because the install_name is set to “../../lib{libName}.dylib. If I manually change them to simply be lib{libName}.dylib, the shared libs load.<BR>
</SPAN></FONT></OL><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
I looked at this link:<BR>
<a href="http://www.cmake.org/pipermail/cmake/2006-October/011530.html">http://www.cmake.org/pipermail/cmake/2006-October/011530.html</a><BR>
<BR>
And tried setting the “INSTALL_NAME_DIR” property to “”, but this didn’t work.<BR>
Any suggestions? I’m trying to simply create the shared libraries, not bundles or frameworks. <BR>
I’m using cmake 2.6.2 on Mac OSX 10.5.<BR>
Gerrick<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>