[vtkusers] Local kit on MacOS X gets wrong install names for VTK libraries

Mike Jackson mike.jackson at imts.us
Wed Jan 31 12:12:56 EST 2007


Turn ON "Use RPATH" in ccmake. This will put the full install path in  
the libraries.
-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On Jan 31, 2007, at 11:47 AM, Kalle Pahajoki wrote:

> Hi
>
> First of all, this is my second day using a Mac so excuse any wrong  
> terminology (I hope I have the concepts correct).
>
> I'm building a local kit (modeled on the vtkMy example) on OSX and  
> am having some problems with getting the correct install_names on  
> the produced libraries.
>
> When I execute code that attempts to load the local kit, the  
> following error occurs:
> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/ 
> 2.5/lib/python2.5/site-packages/vtkbxd/ 
> libvtkBXDProcessingPython.so, 2): Library not loaded:  
> libvtkWidgetsPythonD.5.1.dylib
>   Referenced from: /Library/Frameworks/Python.framework/Versions/ 
> 2.5/lib/python2.5/site-packages/vtkbxd/libvtkBXDProcessingPython.so
>   Reason: image not found
>
> Now, If I go and change the install names with install_name_tool,  
> to include the full path then the error disappears. Looking at the  
> cmake_install.cmake after building VTK, this is done automatically  
> for the
>
> Also, I set the INSTALL_NAME_DIR property so the libraries we build  
> ourselves have the correct (full path) install names. The question  
> is, how to get the dependencies included with the  
> TARGET_LINK_LIBRARIES to include the full path in the install name?
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ 
> Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070131/92fc5dbf/attachment.htm>


More information about the vtkusers mailing list