[Insight-users] Re: ITK make error

Luis Ibanez luis.ibanez at kitware.com
Thu Aug 16 11:34:53 EDT 2007


Hi Vidya,

Yes, the error message suggests that you should build FLTK on your own.

Please note that FLTK is also distributed with a CMakeLists.txt file,
so you can use CMake to configure your build of FLTK and make it
compatible with your builds of ITK and VTK.


   Regards,


       Luis


-------------------------
Vidya Rajagopalan wrote:
> Hello All,
> 
> I am trying to build ITK applications on a RHEL 4 machine,
> 
> I have ITK3.2.0, VTK5.0.3 and FLTK 1.1.3 already installed.
> 
> I am able to successfully create Makefiles for Insight Applications
> using CMAke but running the make command generates the following error:
> 
> /usr/bin/ld: /usr/local/lib/libfltk.a(Fl.o): relocation R_X86_64_32 against `a
> local symbol' can not be used when making a shared[ 12%]  object; recompile
> with -fPIC
> /usr/local/lib/libfltk.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [Auxiliary/ITKFlFileWriter/libITKFlFileWriter.so] Error 1
> Built target ConvertBetweenFileFormats
> make[1]: *** [Auxiliary/ITKFlFileWriter/CMakeFiles/ITKFlFileWriter.dir/all]
> Error 2
> make[1]: *** Waiting for unfinished jobs....
> Linking CXX shared library libITKFltkImageViewer.so
> /usr/bin/ld: /usr/local/lib/libfltk.a(Fl.o): relocation R_X86_64_32 against `a
> local symbol' can not be used when making a shared object; recompile with -fPIC
> /usr/local/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
> 
> 
> Does the error in libfltk have something to do with how FLTK has been installed?
> I figured that there is a conflict between a s/w version for 32 but machines and
> one for 64 bit machines.
> How do I locate and resolve this conflict?
> 
> Is my comprehension of the error message wrong?
> 
> 
> Vidya Rajagopalan
> 


More information about the Insight-users mailing list