[vtkusers] Compiling VTK in a user path

David Doria daviddoria at gmail.com
Sun May 8 19:58:24 EDT 2011


On Sun, May 8, 2011 at 7:52 PM, Luca Penasa <luca.penasa at gmail.com> wrote:

> I am trying to get vtk working without a system installation. So i have
> configured and compiled vtk from source. I put all executables
> in /home/luca/apps/ and installation process finished without any error
> but trying to import vtk from python raises this error:
>
> ImportError: libvtkCommonPythonD.so.5.9: cannot open shared object file:
> No such file or directory
>
> The vtk librariy, not in a system path, cannot be found. Should i add
> the directory /home/luca/apps/lib64 to the system path? i think it is
> not a great idea, couse i have another vtk version compiled and running
> on my system (as system-wide installation).
>
> Any idea??
>
> Thank you
>

 I've always done it by setting LD_LIBRARY_PATH as shown here:
http://www.cmake.org/Wiki/VTK/Tutorials/PythonEnvironmentSetup

However, I guess I've never wanted to different versions at the same time so
I don't know the ramifications of doing that.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110508/f0934be8/attachment.htm>


More information about the vtkusers mailing list