[Insight-users] Re: MetaImageViewer : ITKFltkKImageViewer library

Luis Ibanez luis.ibanez@kitware.com
Sat, 11 Jan 2003 19:11:51 -0500


Hi Xia,


The library

      ITKFltkImageViewer.lib

Should be built when USE_FLTK is enabled and
all the FLTK components have been found by CMake.

The sources for the library are under

   Insight/Auxiliary/FltkImageViewer

The library should be written in your ITK
binary directory under "bin" along with all
the other libraries and executable.

If the library is missing there, it is likely
that CMAke has not found some of the FLTK
components.


Please do the following:

1) first go to the ITK Binary directory that
    you provided to CMake and look for a
    "Debug" or "Release" subdir (it looks like
    you are doing this on windows).

2) Check if there is any .o file in any of those
    subdirectories.

If you find some, this means that the code is
being compiled. If they are missing this means
that CMake has not found all the FLTK components.

In the second case, you will have to double check
that all the paths provided for FLTK really correspond
to the places where the components are.

The best way to verify is by looking at the CMakeCache.txt
file generated by CMake in your binary directory.


It is surprising however tha MetaImageViewer has
been compiled while FltkImageViewer has not. Both
of them rely on the FLTK components being found
by CMake.


Please let us know what you find.


BTW: What CMake version are you using ?


Thanks


    Luis



----------------------------

yanxia wrote:

> Hello Luis,
> 
> Thank you very much!
> 
> I rerun CMake and provide the path for the FLTK variables.
> 
>  BUILD_EXAMPLES		ON
>  BUILD_TESTING		ON
>  CMAKE_CXX_FALGS		/nologo /W3 /Zm1000 /GX /GR
>  DART_ROOT			NOTFOUND
>  FLTK_BASE_LIBRARY	D:\ITK\fltk\lib\fltkd.lib
>  FLTK_FLUID_EXE		D:\ITK\fltk\fluid\fluidd.exe               //  added
>  FLTK_FORMS_LIBRARY	D:\ITK\fltk\lib\fltkformsd.lib
>  FLTK_GL_LIBRARY		D:\ITK|fltk|lib\fltkgld.lib
>  FLTK_IMAGES_LIBRARY	D:\ITK\fltk\lib\fltkimagesd.lib
>  FLTK_INCLUDE_PATH	D:\ITK\fltk                               // changed
>  ITK_WRAP_TCL		OFF
>  ITK_DATA_ROOT		D:\ITK\InsightToolkit\Testing\Data
>  USE_FLTK			ON
>  USE_FLTK_VERSION_1.0.11	OFF
>  USE_FLTK_VERSION_1.1	ON
>  USE_VTK			OFF
>  VW_RAW_DATA_PATH		NOTFOUND
> 
> And re-compiled the program. Unfortunately, MetaImageViewer passes the
> compiling, but fails when linking beacuse of "ITKFltkImageViewer.lib"
> missed. Where is it?
> 
> Best Regards,
> Xia Yan
> 
>