[Insight-users] building insight applications for release

Luis Ibanez luis . ibanez at kitware . com
Sat, 07 Jun 2003 10:58:20 -0400


Hi Zein,

1) Yes, in order to build InsightApplications for "Release"
    you must build Insight for "Release",... and not only
    Insight, any other library used by the applications
    must also be built for "Release, for example FLTK and VTK.

    Any attempt to mix "Debug" and "Release" libraries will
    result in linkage problems and runtime instability.

2) The option for building "Release" on Windows is not
    selected from CMake. You simply go to your VC++
    build menu option and select the build configuration.

    ( FYI In Unix it is possible to select the build mode
      from CMake).

3) for USE_FLTK and USE_VTK, you should give "ON" if
    you want to build the applications having graphical
    user interface. The following extract of the CMakeLists.txt
    file shows you what applications require FLTK and which
    ones require VTK. If you set FLTK to OFF, these applications
    will not be built.


    # Applications requiring MetaImages and Fltk GUI
   IF(FLTK_FOUND)
   SUBDIRS(DistanceMapFilter)
   SUBDIRS(DicomImageViewer)
   SUBDIRS(GaussianFilter)
   SUBDIRS(Curves2DExtractor)
   SUBDIRS(Morphogenesis)
   SUBDIRS(MutualInformationEuler2DRegistration)
   SUBDIRS(ImageRegistration)
   SUBDIRS(ImageRegistration2D)
   SUBDIRS(RawImageReaderViewer)
   SUBDIRS(VoronoiSegmentation)
   SUBDIRS(SimpleFuzzyConnectedness)
   IF(VTK_FOUND)
     SUBDIRS(RegionGrowingSegmentation)
     SUBDIRS(ThresholdSegmentationLevelSet)
     SUBDIRS(FastMarchingLevelSet)
     SUBDIRS(ShapeDetectionLevelSet)
     SUBDIRS(GeodesicActiveContour)
     SUBDIRS(SegmentationEditorFltkGui)
   ENDIF(VTK_FOUND)
   SUBDIRS(ImageViewer)
   SUBDIRS(ImageColorViewer)
   ENDIF(FLTK_FOUND)



4) Yes, you must rebuild FLTK and VTK
    for "Release".

    It looks like you will have some time for
    reading papers and having coffee while your
    compiler works hard   :-)


NOTE that the FLTK installation gives different
names to the libraries dependingon whether they
are build for debug or release. The add a "d"
at the end of the library filename. Due to this,
after you build FLTK for release you must rerun
CMake in InsightApplications and update the
names to the four FLTK libraries in order to
use the newly created files without "d".




Regards,


    Luis



-----------------------
salah wrote:
> Hi all,
> 
> I would like to build InsightApplications for "Release" 
> and "Debug". I have some questions:
> 
> 1. Should ITK also be rebuild for "Release" ?? It is 
> already build for "Debug".
> 
> 2. I tried However to build InsightApplication 1.2 for
> "Release". Cmake did not show the option to choose
> this mode. I did not see the CMAKE_CONFIGURATION_TYPES!!!
> 
> 3. What value should I give for the USE_FLTK and USE_VTK
> fields? 
> 
> 4. Should the fltk and vtk be also rebuild ? I mean for "Release"?
> 
> 
> Thanks,
> Zein
> 
> 
> 
> 
> 
> ->8<------------->8<------------->8<------------->8<------------->8<------------->8<-
> Zein I. Salah 
> University of Tübingen, WSI-GRIS, Sand 14, 72076 Tübingen 
> Email: salah at gris . uni-tuebingen . de
> Tel.: (07071) 29 75465 (GRIS),           Fax: (07071) 29 54 66
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at public . kitware . com
> http://public . kitware . com/mailman/listinfo/insight-users
>