[vtkusers] VTK and Mac OS X 10.5 (Leopard)

Mike Jackson imikejackson at gmail.com
Thu Nov 1 09:48:23 EDT 2007


The libvtkCommon.5.1.dylib was most likely built _without_ any  
"install_name" encoded into the library. You have a few choices.

1) You can copy all the vtk libraries into /Users/chris/Developer/ 
Space/mesh2vtk/mesh2vtk.app/Contents/MacOS

2) You can rebuild vtk using an "rpath"

3) You can use "install_name_tool" to add the path to the library  
into the libvtkCommon.5.1.dylib library.

I highly suggest #2 above.

If this application is something that you are going to pass around to  
others in your group then you will want to investigate how to put an  
install_name of "@executable_path/../libs/" onto _each_ vtk library,  
then copy those libraries into your application package.

-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On Nov 1, 2007, at 4:17 AM, Christophe Peyret wrote:

>
>
> it seems possible to build vtk on mac os X Leopard with  
> CMAKE_OSX_SYSROOT
> set to:
>
> /Developer/SDKs/MacOSX10.4u.sdk
>
> or:
>
> /Developer/SDKs/MacOSX10.5.sdk
>
> however, when after building my own application and linking it with  
> vtk a
> problem occur whe I launch the program and I have this error message
>
> dyld: Library not loaded: libvtkCommon.5.1.dylib
>   Referenced from:
> /Users/chris/Developer/Space/mesh2vtk/mesh2vtk.app/Contents/MacOS/ 
> mesh2vtk
>   Reason: image not found
> Trace/BPT trap
>
> _______________________________________________
> 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




More information about the vtkusers mailing list