[Insight-users] Trouble building ITK Apps

Matt McCormick matt.mccormick at kitware.com
Wed Apr 3 18:27:32 EDT 2013


Hi Henry,

Please try adding -fPIC to CMAKE_CXX_FLAGS and CMAKE_C_FLAGS in your
CMake configuration.

Thanks,
Matt

On Wed, Apr 3, 2013 at 10:08 PM, Henry Mensch <henry.mensch at va.gov> wrote:
> 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/
>
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list