[Insight-users] Trouble building ITK Apps

Henry Mensch henry.mensch at va.gov
Wed Apr 3 18:08:36 EDT 2013


I'm having trouble building the ITK Apps. I'm working on a CentOS 5 system:

[vhasfcmensch at deneb ~]$ uname -a
Linux deneb 2.6.18-92.1.13.el5 #1 SMP Wed Sep 24 19:32:05 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

I've downloaded and expanded the InsightToolkit-4.3.1.tar.gz and InsightApplications-4.3.0.tar.gz.

The toolkit builds uneventfully. The Apps build fails like this:

[ 40%] Built target ImageGenerate
Linking CXX shared module bin/libvvITKAntiAlias.so
/usr/bin/ld: /home/vhasfcmensch/itk/ITKToolkit/lib/libitkvnl_algo-4.3.a(vnl_determinant+double-.cxx.o): relocation R_X86_64_32 against `__gxx_personality_v0' can not be used when making a shared object; recompile with -fPIC
/home/vhasfcmensch/itk/ITKToolkit/lib/libitkvnl_algo-4.3.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [VolviewPlugIns/bin/libvvITKAntiAlias.so] Error 1
make[1]: *** [VolviewPlugIns/CMakeFiles/vvITKAntiAlias.dir/all] Error 2
make: *** [all] Error 2
[vhasfcmensch at deneb ITKApps]$ 


Except that, since all the makefiles are auto generated by cmake, it's not clear where I make the change to rebuild that library with -fPIC … 

Help?!?

Thanks,
-- 
Henry Mensch / Systems and Storage Manager
Center for Imaging of Neurodegenerative Diseases
VA Medical Center, San Francisco CA  USA
a: +1.415.221.4810 x6466 / : +1.415.668.2864
:: henry.mensch at va.gov
w: http://www.cind.research.va.gov/







More information about the Insight-users mailing list