[Insight-developers] fltk frustrations

Luis Ibanez luis . ibanez at kitware . com
Fri, 02 Aug 2002 13:03:40 -0400


Hi Bill,

There seem to be a conflicting entry in the cache file.

The main difference between the FLTK version 1.0.11 and
FLTK version 1.1 is the addition of two libraries.

For FLTK 1.0.11 there is only:

    - libfltk.a

while for FLTK 1.1 there is:

    - libfltk.a
    - libfltk_gl.a
    - libfltk_forms.a


Originaly FindFLTK.cmake only had a "FLTK_LIBRARY" variable
but in order to adapt to the 1.1 version, this was expanded
to three variables, one for each library:

     FLTK_BASE_LIBRARY  = libfltk.a
     FLTK_GL_LIBRARY    = libfltk_gl.a
     FLTK_FORMS_LIBRARY = libfltk_forms.a

which are then concatenated in the original FLTK_LIBRARY
variable using the following CMake line:

     SET( FLTK_LIBRARY ${FLTK_BASE_LIBRARY} ${FLTK_GL_LIBRARY}
                       ${FLTK_FORMS_LIBRARY} )


The CMakeCache.txt file in pragmatic has the following value
for FLTK_BASE_LIBRARY:

      FLTK_BASE_LIBRARY:FILEPATH=/usr/local/lib/libfltk.a

Which is inconsistent with the configuration for the values
of FLTK_INCLUDE_PATH and FLTK_FLUID_EXE:

FLTK_FLUID_EXE:FILEPATH=/projects/quality/itkQuality/fltk-linux/fluid/fluid
FLTK_INCLUDE_PATH:PATH=/projects/quality/itkQuality/fltk-linux


FLTK_BASE_LIBRARY should probably point to:

FLTK_BASE_LIBRARY:FILEPATH=/projects/quality/itkQuality/fltk-linux/lib/libfltk.a





Luis