[Insight-users] Applications: installation troubles

Luis Ibanez luis.ibanez at kitware.com
Fri Oct 1 15:11:58 EDT 2004


Hi Alexandra,

      Please *do not* use FLTK 1.1.5

The recommended version of FLTK to use with
InsightApplications is FLTK 1.1.4.

The version 1.1.5, added png and jpeg libraries
and that produces a number of link conflicts.


   Regards,


      Luis


-----------------------
Alexandra Badea wrote:

> Dear Luis,
> 
> Thanks again for your help.
> I (re)read the GettingStarted-iV.pdf , reisntalled FLTK, deleted my  
> build directory and run ccmake again.
> 
> Shared libraries are off, build testing is off and I provided the paths  
> to the fltk libraries. I have tried to use the ccmake editor but it  
> does not appear to see the/usr/local/ files. It does however find most  
> of the fltk libraries by itself and I only have to specify the  
> FLK_CONFIG_SCRIPT and FLTK_FLUID_EXECUTABLE.
> 
> Now I get a different error when I try to build the applications:
> 
> Building executable  
> /Users/alex/software/itk1.8/InsightApplications-1.8.0/build/ 
> DistanceMapFilter/DistanceMapFilter...
> ld: table of contents for archive: /usr/local/lib/libfltk_jpeg.a is out  
> of date; rerun ranlib(1) (can't load from it)
> make[3]: ***  
> [/Users/alex/software/itk1.8/InsightApplications-1.8.0/build/ 
> DistanceMapFilter/DistanceMapFilter] Error 1
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_DistanceMapFilter] Error 2
> make: *** [default_target] Error 2
> 
> A similar error occurs if I run ccmake with the option shared libraries  
> on..but there the path to the library does not appear to be correct.
> 
> ld: table of contents for archive:  
> /usr/local/lib/libfltk_jpeg.a/usr/bin/libtool:  is out of date; rerun  
> ranlib(1) (can't load from it)
> internal link edit command failed
> make[5]: *** [libITKFltkImageViewer.dylib] Error 1
> make[4]: *** [default_target] Error 2
> make[3]: *** [default_target_FltkImageViewer] Error 2
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Auxiliary] Error 2
> make: *** [default_target] Error 2
> 
> The fltk version is fltk-1.1.5rc3 and I have installed it running  
> "make" (from the directory where I expanded it, in my home directory)  
> and then "make install". I did not have to specify any parameters.
> 
> Thanks again for your patience and help,
> 
> Alexandra
> 
> 
> 
> On Sep 30, 2004, at 4:16 PM, Luis Ibanez wrote:
> 
>>
>> Hi Alexandra,
>>
>> It looks like your FLTK libraries are not consistent.
>>
>> Maybe you have mixed shared libraries and static libraries ?
>> Maybe you have mixed two different versions of FLTK ?
>>
>> What the error is telling you is that the linker doesn't
>> find the symbol   _fl_display
>>
>> This symbol is probably declared in the basic library
>> "libfltk.a"
>>
>>
>> I will strongly suggest you to do the following:
>>
>> 0) Make sure that you are building FLTK out of a single
>>    version: fluid, the headers and all the libraries
>>    should be produced out of a single FLTK version.
>>
>> 1) Delete the entire binary directory where you are
>>    building InsightApplications.
>>
>> 2) Create the directory again.
>>
>> 3) Run "ccmake" again.
>>
>> 4) Fill in all the CMake variable from the ccmake editor
>>    NOT by editing the CMakeCache.txtl.  It is quite likely
>>    that during your edits of the CMakeCache.txt file, some
>>    other entries got corrupted.
>>
>>
>> You will also find detailed instructions on how to setup
>> FLTK for an ITK project, in the tutorial sessions:
>>
>>          http://www.itk.org/HTML/Tutorials.htm
>>
>> In particular, FLTK and QT are discussed in
>>
>> http://www.itk.org/CourseWare/Training/GettingStarted-IV.pdf
>>
>> You will save *a lot* of time if you read the tutorial
>> before you attempt to reconfigure InsightApplications.
>>
>>
>> Regards,
>>
>>
>>
>>    Luis
>>
> 
> 
> 






More information about the Insight-users mailing list