[Insight-users] problems compiling InsightApplications

Luis Ibanez luis . ibanez at kitware . com
Thu, 06 Nov 2003 14:50:05 -0500


Hi Lucas,

InsightApplications must be build as a *single* piece,
not as isolated projects.

Please run CMake and provide as source directory
the *top* directory of InsightApplications. Then
select another directory as the "binary" directory
where all the projects will be built.

Once you have configured InsightApplications,
look in the Binary directory for a file named:

  "InsightApplications.dsw" (if you are using VC++ 6 )
  "InsightApplications.sln" (if you are using VC++ 7 )

When you load this workspace you will get the
projects of all the individual applications.

Do *not* try to load individual .dsp or .vcproj files.
The .dsw and .sln files provide global configuration
parameters that will not be available in the subproject.

---

The error that you get about "ADD_GUI_EXECUTABLE"
is produced because you haven't provided all the
elements for the FLTK library.  Please look at
the tutorial document below for instructions on
how to provide the FLTK headers and libraries.

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

    FLTK configuration is described in
    http://www . itk . org/CourseWare/Training/GettingStarted-IV . pdf



Please let us know if you have further problems,


   Thanks


      Luis


------------------------------------
Lucas Lorenzo wrote:
> Hi all,
> 
> I'm trying to compile InsightApplications.
> After running "ccmake ." from the "InsightApplications-1.4.0" directory 
> I run make with the following warnings:
> 
> Building object file 
> itkEllipsoidInteriorExteriorSpatialFunctionExample.o...
> Building executable 
> /private/var/netboot/Users/lucas/InsightApplications-1.4.0/EllipsoidInteriorExteriorSpatialFunction/itkEllipsoidInteriorExteriorSpatialFunctionExample... 
> 
> ld: warning -L: directory name (/Code/Common) does not exist
> ld: warning -L: directory name (/Code/IO) does not exist
> ld: warning -L: directory name (/Code/BasicFilters) does not exist
> /private/var/netboot/Users/lucas/InsightApplications-1.4.0/SymmetricEllipsoidInteriorExteriorSpatialFunction: 
> building default_target
> Building dependencies. cmake.depends...
> Building object file 
> itkSymmetricEllipsoidInteriorExteriorSpatialFunctionExample.o...
> Building executable 
> /private/var/netboot/Users/lucas/InsightApplications-1.4.0/SymmetricEllipsoidInteriorExteriorSpatialFunction/itkSymmetricEllipsoidInteriorExteriorSpatialFunctionExample... 
> 
> ld: warning -L: directory name (/Code/Common) does not exist
> ld: warning -L: directory name (/Code/IO) does not exist
> ld: warning -L: directory name (/Code/BasicFilters) does not exist
> 
> So then, from the ImageViewer directory i type "ccmake ." but the 
> following error messages are shown:
> 
> CMake Error: Error in cmake code at
> 
> /private/var/netboot/Users/lucas/InsightApplications-1.4.0/ShapeDetectionLevelSet/CMakeLists.txt:39: 
> 
> Unknown CMake command "ADD_GUI_EXECUTABLE".
> 
> CMake Error: Error in cmake code at
> 
> /private/var/netboot/Users/lucas/InsightApplications-1.4.0/ShapeDetectionLevelSet/CMakeLists.txt:40: 
> 
> FLTK_WRAP_UI called with FLTK_WRAP_UI undefined
> 
> CMake Error: Error in cmake code at
> 
> /private/var/netboot/Users/lucas/InsightApplications-1.4.0/ShapeDetectionLevelSet/CMakeLists.txt:41: 
> 
> Unknown CMake command "ITK_DISABLE_FLTK_GENERATED_WARNINGS".
> 
> Could anyone please give me some help with this ?
> 
> Thanks a lot,
> 
> Lucas Lorenzo
> 
>