[vtkusers] using Xcode for debugging VTK C++ examples?
Sean McBride
sean at rogue-research.com
Tue Oct 11 17:14:44 EDT 2011
On Tue, 11 Oct 2011 17:08:13 -0400, Michael Jackson said:
>That is because the generated libraries do not have their path encoded
>in the libraries so the executables do not know where to find them.
>Basically you need to set the "DYLD_LIBRARY_PATH" to the "bin" directory
>inside the binary directory. This is probably done through some property
>the executable in the Xcode project, or maybe on a global for all
>executables somewhere in the Xcode project.
> Maybe there is an option somewhere in the building of VTK to have
>those paths set in the generated libraries. Not sure. Probably something
>about BUILD_DIR or running from BUILD_DIR or something like that. It has
>been a very long time since I have built VTK, but that _is_ the problem.
One solution is to simply build VTK as static libs instead of dynamic libs.
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtkusers
mailing list