[Insight-users] Re: MetaImageViewer
Luis Ibanez
luis.ibanez@kitware.com
Thu, 09 Jan 2003 22:33:34 -0500
Hi Xia,
The problem is that CMake requires you to
explicitly provide paths for the libraries
and executables of FLTK. There is no other
way for CMake to know where they are since
you can install FLTK anywhere in your disk.
Please rerun CMake and provide the path
for the FLTK variables.
For example, FLTK_FLUID_EXECUTABLE
is missing,..
Note also that the path for FLTK includes
should not include the last "FL". This
is because all the "#includes" for FLTK
are done like "#include <Fl/Fl.h>".
the same that OpenGl does with "Gl"
FLTK based applications will only be
compiled after CMake find all the FLTK
components.
About itkImageViewer.h:
This file was added after the release of
version 1.0. you don't need this file
anyways. This is totally independent of
the MetaImageViewer.
Please let us know if you have any problem,
Thanks
Luis
--------------------------[
yanxia wrote:
> Hello Luis,
>
> Thank you very much!
>
> It, MetaImageViewer, can not be compiled successfully. Maybe there are some
> problems in my steps.
>
> I am doing it on Windows. Firstly I download following source code:
>
> InsightToolkit-1.0.0.zip
> fltk-1.1.0rc4-source.zip
>
> And then, unzip them into following directories:
>
> d:\ITK\InsightToolkit
> d:\ITK\fltk
>
> I compiled the FLTK under MSVC environment not changing anything. And then I
> added:
>
> # Build the MetaImageViewer example
> SUBDIRS(MetaImageViewer)
>
> into CMakeLists.txt file under d:\ITK\InsightToolkit\Examples because I want
> to compile the MetaImageViewer example.
>
> Next step is running CMake so as to generate the ITK.dsw.
>
> 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 NOTFOUND
> 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\FL
> 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
>
> Unfortunately, MetaImageViewer can not be compiled successfully. Where am I
> wrong? Also, I cannot find the itkImageViewer.h in
>
> InsigthToolkit/Code/IO
>
> Best Regards,
> Xia Yan
>