[vtkusers] Installation location on Mac
Michael Jackson
mike.jackson at bluequartz.net
Fri Nov 20 14:10:46 EST 2009
Go back into CMake-GUI and set the CMAKE_INSTALL_PREFIX to /usr/local
and rebuild and reinstall.
You can get around this by listing /usr/local/lib/vtk-5.4 in
DYLD_LIBRARY_PATH environment variable.
There is also an option to build vtk with the full path embedded in
the libraries. You will have to look for the CMAKE setting to set. I
can't remember it off the top of my head.
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
On Nov 20, 2009, at 1:59 PM, Darren Dale wrote:
> Hello,
>
> I am new to the mailing list, working on installing VTK on mac Snow
> Leopard, in order to use MayaVi. After running "make install", I got
> an error:
>
> ImportError: dlopen(/Library/Python/2.6/site-packages/VTK-5.4.2-
> py2.6.egg/vtk/libvtkCommonPython.so,
> 10): Library not loaded: libvtkCommonPythonD.5.4.dylib
> Referenced from:
> /Library/Python/2.6/site-packages/VTK-5.4.2-py2.6.egg/vtk/
> libvtkCommonPython.so
> Reason: image not found
>
> I think the reason for this is that /usr/local/lib/vtk-5.4 would need
> to be listed in . I didn't see this discussed in the vtk python
> installation documentation (I may have missed it). But I wanted to ask
> if it would be possible for future versions of vtk to simply install
> the .dylibs into /usr/local/lib instead of /usr/local/lib/vtk-5.4. It
> would simplify the installation process and make the python packages a
> little more accessible. In my case I just moved the the libs out of
> vtk-5.4 and into local/lib, instead of setting DYLD_LIBRARY_PATH, and
> am able to use the python package.
>
> Thanks,
> Darren
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK 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