Add something along the following lines to your CMakeLists.txt just before the compiling the RzDLVTKView library below :<br><br><br>if(UNIX AND NOT WIN32)<br>  find_program(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )<br>
  if(CMAKE_UNAME)<br>    exec_program(uname ARGS -m OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR)<br>    set(CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR} CACHE INTERNAL &quot;processor type (i386 and x86_64)&quot;)<br>    if(CMAKE_SYSTEM_PROCESSOR MATCHES &quot;x86_64&quot;)<br>
      add_definitions(-fPIC)<br>    endif(CMAKE_SYSTEM_PROCESSOR MATCHES &quot;x86_64&quot;)<br>  endif(CMAKE_UNAME)<br>endif(UNIX AND NOT WIN32)<br><br><br><br><br><br><div class="gmail_quote">On Mon, Sep 6, 2010 at 7:08 AM, Ashika Umanga Umagiliya <span dir="ltr">&lt;<a href="mailto:aumanga@biggjapan.com">aumanga@biggjapan.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Greetings all,<br><br>I compiled VTK 5.6 with QT support in Debian 64bit.<br>But when I build my project ,during linking, I get the following error.<br>
<br>[ 98%] Building CXX object src/dlplugins/vtkviewer/CMakeFiles/RzDLVTKView.dir/moc_RzPluginVTKViewerFactory.cxx.o<br>
Linking CXX shared library ../../../dist/plugins/libRzDLVTKView.so<br>/usr/bin/ld: /usr/local/lib/vtk-5.6/libQVTK.a(QVTKWidget.cxx.o): relocation R_X86_64_32S against `a local symbol&#39; can not be used when making a shared object; recompile with -fPIC<br>

/usr/local/lib/vtk-5.6/libQVTK.a: could not read symbols: Bad value<br>collect2: ld returned 1 exit status<br><br>Any tips ?<br>thanks in advance,<br><font color="#888888">umanga<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>