[Insight-users] Problems building ITK-Snap outside the Insight Applications tree
Vries, J de
jurgen.de.vries at rad.umcg.nl
Mon May 5 06:10:04 EDT 2008
Hi Luis,
Thanks for the help!!
The replaced part in the CMakeList.txt really did the trick!
Afterwards there were still some linker errors but those were resolved.
The solution (in case other people have the same problem) to the linker
errors was to:
- add OpenGL package to CMakeList.txt
- add external libraries (ITKCommon, ITKAlgorithms, ITKNumerics,
ITKBasicFilters) to CMakeList.txt
- add in InsightSNAP project => Properties => Linker => Input =>
Additional Dependencies the following: fltkjpeg.lib, fltkpng.lib,
fltkz.lib
Regards,
Jurgen
-----Oorspronkelijk bericht-----
Van: Luis Ibanez [mailto:luis.ibanez at kitware.com]
Verzonden: donderdag 1 mei 2008 0:05
Aan: Vries, J de
CC: insight-users at itk.org
Onderwerp: Re: [Insight-users] Problems building ITK-Snap outside the
Insight Applications tree
Hi Jurgen,
Please find attached the modified CMakeLists.txt file that you should
use at the top level of SNAP, in order to build it outside of the
InsightApplications tree.
The most relevant change for your question is in lines (422-423) of the
original, where
SET(MY_SOURCE_DIR ${InsightApplications_SOURCE_DIR}/SNAP)
SET(MY_BINARY_DIR ${InsightApplications_BINARY_DIR}/SNAP)
must be replaced with
SET(MY_SOURCE_DIR ${SNAP_SOURCE_DIR})
SET(MY_BINARY_DIR ${SNAP_BINARY_DIR})
CMake generates for us the XX_SOURCE_DIR and XX_BINARY_DIR symbols for
any XX that is listed at the top of the CMakeLists.txt file as argument
of the PROJECT() command.
Regards,
Luis
----------------------
Vries, J de wrote:
> Hello,
>
> I was trying to build ITK-Snap outside Insight Applications but i ran
> into trouble. The problems occur when i try to configure Cmake.
>
> I get an error that says: Cmake error:
> /SNAP/ProgramData/SnapProgramDataDirectory.txt does not exist.
> This error pops up for all the files that are located in the
> /ProgramData directory.
> Some how i get the feeling it has to do with absolute and relative
> paths in CMakeList.txt, that something is wrong in there.
>
> Does anyone know what i am doing wrong? Any help is highly
appreciated!
>
> I use the following versions of used software:
> - Visual C++ 2008 Express Edition
> - Cmake 2.4.8
> - ITK 3.4.0
> - Insight Applications 3.4.0
> - VTK 5.0.4
> - FLTK 1.1.7
>
> Jurgen
>
> ----------------------------------------------------------------------
> -- De inhoud van dit bericht is vertrouwelijk en alleen bestemd voor
> de geadresseerde(n). Anderen dan de geadresseerde(n) mogen geen
> gebruik maken van dit bericht, het niet openbaar maken of op enige
> wijze verspreiden of vermenigvuldigen. Het UMCG kan niet aansprakelijk
> gesteld worden voor een incomplete aankomst of vertraging van dit
> verzonden bericht.
>
> The contents of this message are confidential and only intended for
> the eyes of the addressee(s). Others than the addressee(s) are not
> allowed to use this message, to make it public or to distribute or
> multiply this message in any way. The UMCG cannot be held responsible
> for incomplete reception or delay of this transferred message.
>
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
De inhoud van dit bericht is vertrouwelijk en alleen bestemd voor de geadresseerde(n). Anderen dan de geadresseerde(n) mogen geen gebruik maken van dit bericht, het niet openbaar maken of op enige wijze verspreiden of vermenigvuldigen. Het UMCG kan niet aansprakelijk gesteld worden voor een incomplete aankomst of vertraging van dit verzonden bericht.
The contents of this message are confidential and only intended for the eyes of the addressee(s). Others than the addressee(s) are not allowed to use this message, to make it public or to distribute or multiply this message in any way. The UMCG cannot be held responsible for incomplete reception or delay of this transferred message.
More information about the Insight-users
mailing list