[Insight-users] Applications: installation troubles
Luis Ibanez
luis.ibanez at kitware.com
Thu Sep 30 16:16:49 EDT 2004
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
-----------------------
Alexandra Badea wrote:
> Hi!
>
> Thank you for correctly pointing one of my errors.
> I should have selected the paths using (c)cmake and not type them in
> the CMakeCache.txt. I could have avoided this type of error.
>
> I realize I have FLTK in the "default" location as well so I set in my
> CMakeCache.txt:
>
> //Where can one of the fltk or fltkd libraries be found
> FLTK_BASE_LIBRARY:FILEPATH=/usr/local/lib/libfltk.a
>
> //Path to a program.
> FLTK_CONFIG_SCRIPT:FILEPATH=/usr/local/bin/fltk-config
>
> //Path to a program.
> FLTK_FLUID_EXECUTABLE:FILEPATH=/usr/local/bin/fluid
>
> //Where can one of the fltkforms, fltkformsd or fltk_forms libraries
> // be found
> FLTK_FORMS_LIBRARY:FILEPATH=/usr/local/lib/libfltk_forms.a
>
> //Where can one of the fltkgl, fltkgld or fltk_gl libraries be
> // found
> FLTK_GL_LIBRARY:FILEPATH=/usr/local/lib/libfltk_gl.a
>
> //Where can one of the fltkimages, fltkimagesd or fltk_images libraries
> // be found
> FLTK_IMAGES_LIBRARY:FILEPATH=/usr/local/lib/libfltk_images.a
>
> //What is the path where the file FL/Fl.h can be found
> FLTK_INCLUDE_DIR:PATH=/usr/local/include
>
>
> Still I get the following errors:
>
>> ld: Undefined symbols:
>> _fl_display
>> make[5]: ***
>> [/Users/alex/software/itk1.8/InsightApplications-1.8.0/build/
>> SegmentationEditorFltkGui/EditorFltkGui/EditorFltkGui] Error 1
>> make[4]: *** [default_target] Error 2
>> make[3]: *** [default_target_EditorFltkGui] Error 2
>> make[2]: *** [default_target] Error 2
>> make[1]: *** [default_target_SegmentationEditorFltkGui] Error 2
>> make: *** [default_target] Error 2
>> [ithaka:itk1.8/InsightApplications-1.8.0/build] alex%
>
>
>
>
> I used the FAQ as a guide.
>
> Many thanks,
> Alexandra
>
>
>
More information about the Insight-users
mailing list