<div dir="ltr"><div><div><div><div>Hi,<br>I am using vtk on my Ubuntu 32 bit machine for quite some time. I wanted to compile vtk for another computer using Ubuntu 64 bit and I can&#39;t get it to fly.<br>I deleted CMakeCache.txt so as to start over but that doesn&#39;t help. After 1/2 hour of compilation it stops at:<br>
<br>[ 19%] Building CXX object Common/CMakeFiles/vtkCommonJava.dir/vtkArrayJava.cxx.o<br>[ 19%] Building CXX object Common/CMakeFiles/vtkCommonJava.dir/vtkJavaUtil.cxx.o<br>Linking CXX shared library ../bin/libvtkCommonJava.so<br>
/usr/bin/ld: ../bin/libvtkCommon.a(vtkAbstractArray.cxx.o): relocation R_X86_64_32 against `.bss&#39; can not be used when making a shared object; recompile with -fPIC<br>../bin/libvtkCommon.a: could not read symbols: Bad value<br>
collect2: error: ld returned 1 exit status<br>make[2]: *** [bin/libvtkCommonJava.so.5.10.1] Error 1<br>make[1]: *** [Common/CMakeFiles/vtkCommonJava.dir/all] Error 2<br>make: *** [all] Error 2<br><br></div>I am compiling with wrap Java but I have no idea what the -fPIC is all about. I recompiled the 32 bit version with no problems (3 or 4 times just to be sure).<br>
<br></div>Does anyone have vtk compiled for linux64? Any suggestions on what I can try? I am really stuck.<br><br></div>Thanks,<br></div>Ilan<br><br><div><div><div><div><br></div></div></div></div></div>