[Insight-users] question about itk install

Luis Ibanez luis.ibanez at kitware.com
Tue Feb 26 23:26:47 EST 2002


Hi Fang,

Welcome to ITK !

The error that you have now are related with FLTK.

FLTK is an independent toolkit that we use for the graphic interface of
some of our example applications in ITK.

FLTK is not required at all for using ITK but it is nicer to have
some examples with GUI as a complement of examples that run
in the command line.

You can download FLTK (free of charge) from http://www.fltk.org
We recomend version "1.0.11". It will run in most platforms.


It looks like you are using Windows, so when you get FLTK do:

1) look for a .dsw file in the "visualc" subdirectory.
2) open it, and select the project "demos" and build it
that will build the entire library and the FLTK demos
(it should be pretty fast, 10 to 20 minutes, sorry no time for coffee)


Then:


3) Run CMakeSetup again in order to indicate to the ITK configuration
where in your disk is installed FLTK

4) Select the check box in CMake that says: "Advanced"
and look for the fields:

a- FLTK_INCLUDE_PATH
b- FLTK_LIBRARY
c- FLTK_FLUID_EXE
d- FLTK_WRAP_GUI

for (a) go to the directory where you installed fltk (let's say
E:\src\fltk )
for (b) go to the "lib" directory and click on fltkd.lib
(that will be in E:\src\fltk\lib\fltkd.lib)
for( c) go to the "fluid" directory and click on fluid.exe
(that should be in E:\src\fltk\fluid\fluid.exe
for (d) just check "ON"


Click on the "Configure" button on CMake until no new options
appears (new options are colored in red in order to highlight them)
Once you don't have any red options, click on "OK".
Cmake will generate your new .dsw and .dsp's with the correct paths
and options for linking with FLTK.


After that you should be ready for building the library andthe examples.
and start enjoying ITK. :-)

The build will the some minutes.... this time you can get your coffee !


NOTE: you'll find web pages describing the examples in :

http://www.itk.org/HTML/Examples.htm


Please let us know if you encounter any further problems.


Luis


============================================



fj wrote:

> Hi itk users:
>
> I am a new user. I want to install itk .But when I compile itk.dsw ,I
> got 3 errors.
>
> The detail is :
>
> > > Configuration: IView - Win32 Debug--------------------
> > > Performing Custom Build Step on
> > >
> E:/TEMP/itk/itk/ITKSourceWin32/Insight/Unsupported/MetaImage/IView/CMakeLists.txt
> > > Compiling...
> > > IView.cxx
> > >
> E:\TEMP\itk\itk\ITKSourceWin32\Insight\Unsupported\MetaImage\IView\IView.cxx(11)
> > > : fatal error C1083: Cannot open include file: 'FL/Fl.H': No such file
> > > or directory
> > > IViewGUI.cxx
> > >
> E:\TEMP\itk\itk\ITKSourceWin32\Insight\Unsupported\MetaImage\IView\IViewGUI.h(5)
> > > : fatal error C1083: Cannot open include file: 'FL/Fl.H': No such file
> > > or directory
> > > IViewGUIBase.cxx
> > >
> E:\TEMP\itk\itk\ITKSourceWin32\Insight\Unsupported\MetaImage\IView\IViewGUIBase.h(5)
> > > : fatal error C1083: Cannot open include file: 'FL/Fl.H': No such file
> > > or directory
> > > Generating Code...
> > > Error executing cl.exe.
> > >
> > > ALL_BUILD - 3 error(s), 49 warning(s)
> And then one user told me that I must install the Fltk toolkit.So I
> want to know where can I get it ?
>
> download which edition????? Thanks for your help !!!!!
>
> Fang Jing
>






More information about the Insight-users mailing list