<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&#8217;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&#8217;s setup). I haven&#8217;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&#8217;t load shared libraries unless they are named &#8220;lib{libName}.dylib&#8221;. Default creates {libName}.so. I was able to modify the properties of my of my targets to change the prefix to &#8220;lib&#8221; and the suffix to &#8220;.dylib&#8221; and the libs began to load but
</SPAN></FONT><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>My jvm won&#8217;t load the generated shared libraries because the install_name &nbsp;is set to &#8220;../../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>
&nbsp;And tried setting the &#8220;INSTALL_NAME_DIR&#8221; property to &#8220;&#8221;, but this didn&#8217;t work.<BR>
Any suggestions? I&#8217;m trying to simply create the shared libraries, not bundles or &nbsp;frameworks. <BR>
I&#8217;m using cmake 2.6.2 on Mac OSX 10.5.<BR>
Gerrick<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>