[Insight-users] Problem linking InsightApplications libITKFltkImageViewer.so

Chris Turner cturnercomplex at googlemail.com
Tue Jul 20 18:11:33 EDT 2010


Hi Everyone,

I'm trying to compile InsightApplications v. 3.20, and I get the
following linking error when I try to compile the Curves2DExtractor:


Linking CXX shared library libITKFltkImageViewer.so
/usr/bin/ld: /itk/fltk-1.3.x-r7677/build/lib/libfltk.a(Fl.cxx.o):
relocation R_X86_64_32S against `.bss' can not be used when making a
shared object; recompile with -fPIC
/itk/fltk-1.3.x-r7677/build/lib/libfltk.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [Auxiliary/FltkImageViewer/libITKFltkImageViewer.so] Error 1
make[1]: *** [Auxiliary/FltkImageViewer/CMakeFiles/ITKFltkImageViewer.dir/all]
Error 2
make: *** [all] Error 2

I added the -fPIC to the cxx an c flag option with cmake but it didn't
make a difference.

g++:
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap
--enable-shared --enable-threads=posix --enable-checking=release
--with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic
--with-arch_32=i586 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)

What am I doing wrong?

Thanks,
Chris


More information about the Insight-users mailing list