[vtkusers] QVTKWidget linux link error "relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; "

Ashika Umanga Umagiliya aumanga at biggjapan.com
Sun Sep 5 21:38:36 EDT 2010


Greetings all,

I compiled VTK 5.6 with QT support in Debian 64bit.
But when I build my project ,during linking, I get the following error.

[ 98%] Building CXX object
src/dlplugins/vtkviewer/CMakeFiles/RzDLVTKView.dir/moc_RzPluginVTKViewerFactory.cxx.o
Linking CXX shared library ../../../dist/plugins/libRzDLVTKView.so
/usr/bin/ld: /usr/local/lib/vtk-5.6/libQVTK.a(QVTKWidget.cxx.o): relocation
R_X86_64_32S against `a local symbol' can not be used when making a shared
object; recompile with -fPIC
/usr/local/lib/vtk-5.6/libQVTK.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

Any tips ?
thanks in advance,
umanga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100906/96064e58/attachment.htm>


More information about the vtkusers mailing list