[vtkusers] VTK Python on Solaris-8

POUPONNOT Julien jpouponnot at yahoo.fr
Fri Oct 24 09:25:21 EDT 2003


Hello,

I'm trying to use vtk with python.
I have this message when I use an exemple:

    (/var/tmp/VTK/Examples/Modelling/Python) # python
hello.py
Traceback (most recent call last):
     File "hello.py", line 5, in ?
       import vtk
     File
"/logiciels/public/vtk-4.2/Wrapping/Python/vtk/__init__.py",
line 7, in ?
       from common import *
     File
"/logiciels/public/vtk-4.2/Wrapping/Python/vtk/common.py",
line 7, in ?
       from libvtkCommonPython import *
ImportError: ld.so.1: python: fatal: relocation error:
file
/logiciels/public/vtk-4.2/lib/libvtkCommonPython.so:
symbol cerr:
referenced symbol not found

And when I execute vtk:

(/logiciels/public/vtk-4.2/bin) # vtk
lancement de vtk
Application initialization failed: Can't find a usable
tk.tcl in the following directories:
       /logiciels/public/tcl-8.4.0/lib/tk8.4
/logiciels/public/vtk-4.2/lib/tk8.4
/logiciels/public/lib/tk8.4 /logiciels/
public/vtk-4.2/library /logiciels/public/library
/logiciels/public/tk8.4.0/library
/logiciels/tk8.4.0/library
This probably means that tk wasn't installed properly.

But I think tk has a good installation and the
LD_LIBRARY_PATH variable is good form find tk.tcl

Sources path /var/tmp/VTK/
Install path /logiciels/public/vtk-4.2/bin
/logiciels/public/vtk-4.2/lib
/logiciels/public/vtk-4.2/include

what I use:
- vtk 4.2
- Solaris 8 SPARC
- Python 2.2.2
- cmake 1.8.1
- gcc 3.2.1
- make 3.79.1


I have ever seen some similar messages in this forum
but the vtk version is older than mine and it speak to
turn to on the
VTK_BUILD_PYTHON_EXECUTABLE variable. In my version I
can't find this variable.

I am a new user of vtk and I realy need of it.
Thanks a lot for your help and sorry for my bad
english.

Julien

PS:while the compilation I had a lot of message like
the next, I hope it's not very important :
warning: #warning This file includes at least one
deprecated or antiquated header. Please consider using
one of the 32  headers found in section 17.4.1.2 of
the C++ standard. Examples include substituting the
<X> header for the <X.h> header for  C++ includes, or
<sstream> instead of the deprecated header
<strstream.h>. To disable this warning use
-Wno-deprecated.
and
/usr/include/sys/feature_tests.h:96:1: warning: this
is the location of the previous definition
Building object file vtkStreamPointsPython.o...


My CMakeCache.txt :
BUILD_DOCUMENTATION:BOOL=OFF
BUILD_EXAMPLES:BOOL=ON
BUILD_SHARED_LIBS:BOOL=ON
BUILD_TESTING:BOOL=ON
CMAKE_AR:FILEPATH=/logiciels/public/bin/ar
CMAKE_BACKWARDS_COMPATIBILITY:STRING=1.8
CMAKE_BUILD_TYPE:STRING=
CMAKE_CTEST_COMMAND:FILEPATH=/logiciels/public/cmake-1.8.1/bin/ctest
CMAKE_CXX_COMPILER:STRING=c++
CMAKE_CXX_FLAGS:STRING=
CMAKE_CXX_FLAGS_DEBUG:STRING=
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=
CMAKE_CXX_FLAGS_RELEASE:STRING=
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_C_COMPILER:STRING=gcc
CMAKE_C_FLAGS:STRING=
CMAKE_C_FLAGS_DEBUG:STRING=
CMAKE_C_FLAGS_MINSIZEREL:STRING=
CMAKE_C_FLAGS_RELEASE:STRING=
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_EXE_LINKER_FLAGS:STRING=
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_HP_PTHREADS:BOOL=
CMAKE_INSTALL_PREFIX:PATH=/logiciels/public/vtk-4.2
CMAKE_MAKE_PROGRAM:FILEPATH=/logiciels/public/bin/make
CMAKE_MODULE_LINKER_FLAGS:STRING=
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_RANLIB:FILEPATH=/logiciels/public/bin/ranlib
CMAKE_SHARED_LINKER_FLAGS:STRING=
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_SKIP_RPATH:BOOL=NO
CMAKE_THREAD_LIBS:STRING=-lthread
CMAKE_USE_PTHREADS:BOOL=1
CMAKE_USE_SPROC:BOOL=
CMAKE_USE_WIN32_THREADS:BOOL=
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
CMAKE_X_CFLAGS:STRING=-I/usr/openwin/share/include
CMAKE_X_LIBS:STRING=-lSM;-lICE;/usr/openwin/lib/libX11.so;/usr/openwin/lib/libXext.so;-lsocket;-lnsl
COMPRESSIONCOMMAND:FILEPATH=/usr/bin/gzip
CVSCOMMAND:FILEPATH=/logiciels/public/bin/cvs
CVS_UPDATE_OPTIONS:STRING=-d -A -P
DART_BUILD_ERROR_REPORT_LIMIT:BOOL=OFF
DART_BUILD_WARNING_REPORT_LIMIT:BOOL=OFF
DART_ROOT:PATH=DART_ROOT-NOTFOUND
DART_TESTING_TIMEOUT:STRING=1500
DART_VERBOSE_BUILD:BOOL=OFF
DELIVER_CONTINUOUS_EMAIL:BOOL=Off
EXECUTABLE_OUTPUT_PATH:PATH=/logiciels/public/vtk-4.2/bin
GUNZIPCOMMAND:FILEPATH=/usr/bin/gunzip
JAVACOMMAND:FILEPATH=/usr/bin/java
LIBRARY_OUTPUT_PATH:PATH=/logiciels/public/vtk-4.2/lib
MAKECOMMAND:STRING=/logiciels/public/bin/make -i
OPENGL_INCLUDE_DIR:PATH=/usr/include
OPENGL_gl_LIBRARY:FILEPATH=/usr/lib/libGL.so
OPENGL_glu_LIBRARY:FILEPATH=/usr/lib/libGLU.so
OPENGL_xmesa_INCLUDE_DIR:PATH=OPENGL_xmesa_INCLUDE_DIR-NOTFOUND
PURIFYCOMMAND:FILEPATH=PURIFYCOMMAND-NOTFOUND
PYTHON_EXECUTABLE:FILEPATH=/logiciels/public/Python-2.2.2/bin/python2.2
PYTHON_INCLUDE_PATH:PATH=/logiciels/public/Python-2.2.2/include/python2.2
PYTHON_LIBRARY:FILEPATH=/logiciels/public/Python-2.2.2/lib/python2.2/config/libpython2.2.a
PYTHON_UTIL_LIBRARY:FILEPATH=PYTHON_UTIL_LIBRARY-NOTFOUND
SCPCOMMAND:FILEPATH=/logiciels/public/bin/scp
SITE:STRING=clp50at.der.edf.fr
TCL_INCLUDE_PATH:PATH=/logiciels/public/tcl-8.4.0/include
TCL_LIBRARY:FILEPATH=/logiciels/public/tcl-8.4.0/lib/libtcl8.4.so
TCL_TCLSH:FILEPATH=/logiciels/public/bin/tclsh
TK_INCLUDE_PATH:PATH=/logiciels/public/tk-8.4.0/include
TK_LIBRARY:FILEPATH=/logiciels/public/tk-8.4.0/lib/libtk8.4.so
VTKEXPAT_BINARY_DIR:STATIC=/var/tmp/VTK/Utilities/expat
VTKEXPAT_SOURCE_DIR:STATIC=/var/tmp/VTK/Utilities/expat
VTKFREETYPE_BINARY_DIR:STATIC=/var/tmp/VTK/Utilities/freetype
VTKFREETYPE_SOURCE_DIR:STATIC=/var/tmp/VTK/Utilities/freetype
VTKFTGL_BINARY_DIR:STATIC=/var/tmp/VTK/Utilities/ftgl
VTKFTGL_SOURCE_DIR:STATIC=/var/tmp/VTK/Utilities/ftgl
VTKJPEG_BINARY_DIR:STATIC=/var/tmp/VTK/Utilities/jpeg
VTKJPEG_SOURCE_DIR:STATIC=/var/tmp/VTK/Utilities/jpeg
VTKPNG_BINARY_DIR:STATIC=/var/tmp/VTK/Utilities/png
VTKPNG_SOURCE_DIR:STATIC=/var/tmp/VTK/Utilities/png
VTKTIFF_BINARY_DIR:STATIC=/var/tmp/VTK/Utilities/tiff
VTKTIFF_SOURCE_DIR:STATIC=/var/tmp/VTK/Utilities/tiff
VTKZLIB_BINARY_DIR:STATIC=/var/tmp/VTK/Utilities/zlib
VTKZLIB_SOURCE_DIR:STATIC=/var/tmp/VTK/Utilities/zlib
VTK_BINARY_DIR:STATIC=/var/tmp/VTK
VTK_DATA_ROOT:PATH=/logiciels/public/vtkData-4.2
VTK_DEBUG_LEAKS:BOOL=OFF
VTK_DISABLE_TK_INIT:BOOL=
VTK_OPENGL_HAS_OSMESA:BOOL=OFF
VTK_SOURCE_DIR:STATIC=/var/tmp/VTK
VTK_USE_64BIT_IDS:BOOL=OFF
VTK_USE_ANSI_STDLIB:BOOL=ON
VTK_USE_HYBRID:BOOL=ON
VTK_USE_MANGLED_MESA:BOOL=OFF
VTK_USE_MPI:BOOL=
VTK_USE_PARALLEL:BOOL=ON
VTK_USE_PATENTED:BOOL=ON
VTK_USE_RENDERING:BOOL=ON
VTK_USE_SYSTEM_EXPAT:BOOL=OFF
VTK_USE_SYSTEM_JPEG:BOOL=OFF
VTK_USE_SYSTEM_PNG:BOOL=OFF
VTK_USE_SYSTEM_TIFF:BOOL=OFF
VTK_USE_SYSTEM_ZLIB:BOOL=OFF
VTK_USE_VOLUMEPRO:BOOL=OFF
VTK_WRAP_HINTS:FILEPATH=/var/tmp/VTK/Wrapping/hints
VTK_WRAP_JAVA:BOOL=OFF
VTK_WRAP_PYTHON:BOOL=ON
VTK_WRAP_PYTHON_EXE:FILEPATH=/logiciels/public/vtk-4.2/bin/vtkWrapPython
VTK_WRAP_TCL:BOOL=ON
VTK_WRAP_TCL_EXE:FILEPATH=/logiciels/public/vtk-4.2/bin/vtkWrapTcl
X11_X11_INCLUDE_PATH:PATH=/usr/openwin/share/include
X11_X11_LIB:FILEPATH=/usr/openwin/lib/libX11.so
X11_Xext_LIB:FILEPATH=/usr/openwin/lib/libXext.so
X11_Xlib_INCLUDE_PATH:PATH=/usr/openwin/share/include
X11_Xutil_INCLUDE_PATH:PATH=/usr/openwin/share/include
BUILD_DOCUMENTATION-ADVANCED:INTERNAL=1
BUILD_TESTING-ADVANCED:INTERNAL=1
CMAKE_ANSI_FOR_SCOPE:INTERNAL=TRUE
CMAKE_ANSI_STREAM_HEADERS:INTERNAL=1
CMAKE_AR-ADVANCED:INTERNAL=1
CMAKE_BUILD_TOOL:INTERNAL=/logiciels/public/bin/make
CMAKE_CACHEFILE_DIR:INTERNAL=/var/tmp/VTK
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=1
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
CMAKE_CACHE_RELEASE_VERSION:INTERNAL=patch 1
CMAKE_COMMAND:INTERNAL=/logiciels/public/cmake-1.8.1/bin/cmake
CMAKE_CTEST_COMMAND-ADVANCED:INTERNAL=1
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
CMAKE_CXX_COMPILER_FULLPATH:INTERNAL=/logiciels/public/gcc-2.95.3/bin/c++
CMAKE_CXX_COMPILER_WORKS:INTERNAL=TRUE
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
CMAKE_C_COMPILER_FULLPATH:INTERNAL=/logiciels/public/gcc-2.95.3/bin/gcc
CMAKE_C_COMPILER_WORKS:INTERNAL=TRUE
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
CMAKE_EDIT_COMMAND:INTERNAL=/logiciels/public/cmake-1.8.1/bin/ccmake
...


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



More information about the vtkusers mailing list