[vtkusers] Unsuccessful VTK/Python installation?

Asthmet asthmet at gmail.com
Fri Dec 16 11:12:43 EST 2011


Hi,

I'm new on the mailing list and VTK. I need help for I simply can't make
VTK 5.6.1 work properly.

Working on Linux x64 Ubuntu 10.10, I installed VTK-5.6.1 to use it with
Python.

Installation:
In the Cmake step, I enabled the following option :
ENABLE_SHARED_LIBRARIES, USE_WRAP_PYTHON (and for lab reasons
VTK_USE_BOOST, VTK_USE_GUISUPPORT, VTK_USE_QT). That's it. All the path
used seemed to look okay
At first, configuration and generation worked just fine. But at the "sudo
make" I always got an critical error that stopped the process during the
python libraries making phase.
As trying to remove the python modules from the build wasn't a solution, i
started again the configure/generate/make step without Python. It worked.
Then did it again with Python and it worked too (don't ask me why...).

Right after I installed VTK by following the "configure - generate - make -
make install" steps, i tried to run simple test files for the VTK folder
such as you can find in the VTK/Examples/Tutorials/Step*. For instance, I
used Step1/Python/Cone.py. I get this error message:

> Traceback (most recent call last):
>   File "Cone2.py", line 15, in <module>
>     import vtk
>   File "/usr/local/lib/python2.6/dist-packages/vtk/__init__.py", line 41,
in <module>
>     from common import *
>   File "/usr/local/lib/python2.6/dist-packages/vtk/common.py", line 7, in
<module>
>     from libvtkCommonPython import *
> ImportError: libvtkCommonPythonD.so.5.6: cannot open shared object file:
No such file or directory

After looking at that directory, I find that I only have the
libvtkCommonPythonD.so file with no version linking files like
libvtkCommonPythonD.so.5.6 and libvtkCommonPythonD.so.5.6.1. And it is the
same for all the other file in /usr/local/lib/python2.6/dist-packages/vtk/
I can't figure out where this problem comes from. Is there a or several
option in the configuration phase that I missed? Or something else?

Thanks in advance for your help or a redirection to a discussion about this
subject that plausibly already happened. If you need any other information,
don't hesitate.
Math
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111216/775bdb9f/attachment.htm>


More information about the vtkusers mailing list