[vtkusers] How to set macOS RPATH or install_name (VTK 8.x)

David Gobbi david.gobbi at gmail.com
Fri Aug 25 08:36:31 EDT 2017


Hi Michael,

I always keep the VTK build tree, and import VTK from there into my
projects.

 - David


On Fri, Aug 25, 2017 at 6:01 AM, Michael Jackson <
mike.jackson at bluequartz.net> wrote:

> Hello,
>    Just getting back into the VTK scene after a LONG hiatus. I was able to
> compile VTK, and then import that into my project and successfully link my
> project to VTK. When I attempt to run my app (mac OS 10.10 .app package)
> the app crashes because it can not find the VTK libraries. After inspecting
> the VTK libraries that were built none have an RPATH or absolute path set
> after I installed them. I searched with CMake for a setting to enable the
> RPATH on install but I am coming up empty.
>
> What is the recommended way to work with VTK during development? I can run
> from the command line by export'ing DYLD_LIBRARY_PATH but I'm sure I should
> have to do this. Or is the recommended way of developing against VTK to
> have my project use the VTK build directory versus an install directory?
>
> Thanks for any help
> --
> Michael Jackson | Owner, President
>       BlueQuartz Software
> [e] mike.jackson at bluequartz.net
> [w] www.bluequartz.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170825/7df67535/attachment.html>


More information about the vtkusers mailing list