[vtkusers] VTK compilation error, Python and TK

jmerkow jmerkow at gmail.com
Wed Feb 5 19:45:35 EST 2014


I trying to compile VTK with python, Tcl and TK wrapping on.

I get this error

Linking CXX shared library ../../lib/libvtkRenderingPythonTkWidgets-6.1.so
/usr/bin/ld: ../../lib/libvtkRenderingCore-6.1.a(vtkRenderWindow.cxx.o):
relocation R_X86_64_32S against `.rodata' can not be used when making a
shared object; recompile with -fPIC
../../lib/libvtkRenderingCore-6.1.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libvtkRenderingPythonTkWidgets-6.1.so] Error 1
make[1]: *** [Rendering/Tk/CMakeFiles/vtkRenderingPythonTkWidgets.dir/all]
Error 2


I am running ubuntu 13.04, compiling with gcc-4.6.  I am compiling from tag
v6.1.0.

When I have python tk and tcl wrapping set to ON, I get the above error. 
Also, I am building static libraries (BUILD_SHARED_LIBS=OFF). When I turn
python off, everything compiles fine.

Any thoughts?

-Jameson



--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-compilation-error-Python-and-TK-tp5725774.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list