[Insight-users] InsightApplications link error with ITK
Julien Jomier
jjomier at cs . unc . edu
Sun, 7 Dec 2003 15:10:20 -0500
Hi Arnaud,
Are you compiling InsightApplications in the same mode as ITK
(RelWithDebInfo)?
Julien
> -----Original Message-----
> From: insight-users-admin at itk . org
> [mailto:insight-users-admin at itk . org] On Behalf Of Arnaud
> Sent: Sunday, December 07, 2003 2:59 PM
> To: Insight-users at itk . org
> Subject: [Insight-users] InsightApplications link error with ITK
>
>
> hello,
>
> I try to build on WinXP, InsightApplications + ITK + VTK +
> FLTK. for ITK, VTK, and FLTK no problem, but when I try to
> build InsightApplications I always have a link error with
> ITK. I spent all my week end to try to find it, because I
> sure it is just a line in the CMake file .... please help, thanks
>
>
>
> *this is the error:
>
> LINK : fatal error LNK1104: cannot open file
> "ITKAlgorithms.lib" Error executing link.exe.
>
> *ITK was build in : C:\projet\InsightToolkit-1.4.0\output, it
> were you have "ITKConfig.cmake" the target for VS 6.0 was:
> RelWithDebInfo
>
>
> *InsightApplications CMakeCache.txt
>
>
> ...
> ...
>
> //Build source documentation using doxygen BUILD_DOXYGEN:BOOL=OFF
>
> //Build the testing tree.
> BUILD_TESTING:BOOL=ON
>
> //Path to a program.
> CMAKE_AR:FILEPATH=CMAKE_AR-NOTFOUND
>
> //For backwards compatibility, what version of CMake commands
> and // syntax should this version of CMake allow.
> CMAKE_BACKWARDS_COMPATIBILITY:STRING=1.8
>
> //Path to a program.
> CMAKE_CTEST_COMMAND:FILEPATH=C:/PROGRA~1/CMake/bin/ctest.exe
>
> //C++ compiler
> CMAKE_CXX_COMPILER:STRING=cl
>
> //Flags used by the compiler during all build types.
> CMAKE_CXX_FLAGS:STRING= /W3 /Zm1000 /GX /GR
>
> //Flags used by the compiler during debug builds.
> CMAKE_CXX_FLAGS_DEBUG:STRING=/MDd /Zi /Od /GZ
>
> //Flags used by the compiler during release minsize builds.
> CMAKE_CXX_FLAGS_MINSIZEREL:STRING=/MD /O1
>
> //Flags used by the compiler during release builds (/MD /Ob1
> /Oi // /Ot /Oy /Gs will produce slightly less optimized but
> smaller // files). CMAKE_CXX_FLAGS_RELEASE:STRING=/MD /O2
>
> //Flags used by the compiler during Release with Debug Info
> builds. // CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2
>
> //C compiler
> CMAKE_C_COMPILER:STRING=cl
>
> //Flags for C compiler.
> CMAKE_C_FLAGS:STRING= /W3 /Zm1000
>
> //Flags used by the compiler during debug builds.
> CMAKE_C_FLAGS_DEBUG:STRING=/MDd /Zi /Od /GZ
>
> //Flags used by the compiler during release minsize builds.
> CMAKE_C_FLAGS_MINSIZEREL:STRING=/MD /O1
>
> //Flags used by the compiler during release builds (/MD /Ob1
> /Oi // /Ot /Oy /Gs will produce slightly less optimized but
> smaller // files). CMAKE_C_FLAGS_RELEASE:STRING=/MD /O2
>
> //Flags used by the compiler during Release with Debug Info
> builds. // CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2
>
> //Flags used by the linker.
> CMAKE_EXE_LINKER_FLAGS:STRING=/STACK:10000000 /machine:I386
> /INCREMENTAL:YES
>
> //Flags used by the linker during debug builds.
> CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=/debug /pdbtype:sept
>
> //Flags used by the linker during release minsize builds.
> CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
>
> //Flags used by the linker during release builds.
> CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
>
> //Flags used by the linker during Release with Debug Info
> builds. //
> CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /pdbtype:sept
>
> //Install path prefix, prepended onto install directories.
> CMAKE_INSTALL_PREFIX:PATH=/usr/local
>
> //make program
> CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~1/MICROS~3/Common/MSDev9
> 8/Bin/msdev.co
> m
>
> //Flags used by the linker during the creation of modules.
> CMAKE_MODULE_LINKER_FLAGS:STRING=/STACK:10000000
> /machine:I386 /INCREMENTAL:YES
>
> //Flags used by the linker during debug builds.
> CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=/debug /pdbtype:sept
>
> //Flags used by the linker during release minsize builds.
> CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
>
> //Flags used by the linker during release builds.
> CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
>
> //Flags used by the linker during Release with Debug Info
> builds. //
> CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /pdbtype:sept
>
> //Flags used by the linker during the creation of dll's.
> CMAKE_SHARED_LINKER_FLAGS:STRING=/STACK:10000000
> /machine:I386 /INCREMENTAL:YES
>
> //Flags used by the linker during debug builds.
> CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=/debug /pdbtype:sept
>
> //Flags used by the linker during release minsize builds.
> CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
>
> //Flags used by the linker during release builds.
> CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
>
> //Flags used by the linker during Release with Debug Info
> builds. //
> CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /pdbtype:sept
>
> //If set, runtime paths are not added when using shared
> libraries. // CMAKE_SKIP_RPATH:BOOL=OFF
>
> //Libraries linked by defalut with all applications.
> CMAKE_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib
> gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
> ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
> kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
> advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
> odbc32.lib odbccp32.lib
>
> //If this value is on, makefiles will be generated without
> the // .SILENT directive, and all commands will be echoed to
> the console // during the make. This is useful for debugging
> only. CMAKE_VERBOSE_MAKEFILE:BOOL=OFF
>
> //Path to program used to compress files for transfer to the
> dart // server
> COMPRESSIONCOMMAND:FILEPATH=c:/matlab6p5/bin/win32/zip.exe
>
> //Path to a program.
> CVSCOMMAND:FILEPATH=CVSCOMMAND-NOTFOUND
>
> //Options passed to the cvs update command.
> CVS_UPDATE_OPTIONS:STRING=-d -A -P
>
> //Dependencies for the target
> Curves2DExtractorLib_LIB_DEPENDS:STATIC=ITKAlgorithms;ITKCommo
> n;ITKBasicFilt
> ers;ITKBasicFilters;ITKIO;ITKFltkImageViewer;
>
> //Limit of reported errors, -1 reports all.
> DART_BUILD_ERROR_REPORT_LIMIT:BOOL=OFF
>
> //Limit of reported warnings, -1 reports all.
> DART_BUILD_WARNING_REPORT_LIMIT:BOOL=OFF
>
> //If you have Dart installed, where is it located?
> DART_ROOT:PATH=DART_ROOT-NOTFOUND
>
> //Time alloted for a test before Dart will kill the test.
> DART_TESTING_TIMEOUT:STRING=1500
>
> //Show the actual output of the build, or if off show a . for
> each // 1024 bytes. DART_VERBOSE_BUILD:BOOL=OFF
>
> //Should Dart server send email when build errors are found
> in // Continuous builds? DELIVER_CONTINUOUS_EMAIL:BOOL=OFF
>
> //Value Computed by CMake
> DicomImageViewer_BINARY_DIR:STATIC=C:/cvswork/InsightApplicati
> ons/output/Dic
> omImageViewer
>
> //Value Computed by CMake
> DicomImageViewer_SOURCE_DIR:STATIC=C:/cvswork/InsightApplicati
> ons/DicomImage
> Viewer
>
> //Value Computed by CMake
> DistanceMapFilter_BINARY_DIR:STATIC=C:/cvswork/InsightApplicat
> ions/output/Di
> stanceMapFilter
>
> //Value Computed by CMake
> DistanceMapFilter_SOURCE_DIR:STATIC=C:/cvswork/InsightApplicat
> ions/DistanceM
> apFilter
>
> //Single output directory for building all executables.
> EXECUTABLE_OUTPUT_PATH:PATH=
>
> //Value Computed by CMake
> EditorFltkGui_BINARY_DIR:STATIC=C:/cvswork/InsightApplications
> /output/Segmen
> tationEditorFltkGui/EditorFltkGui
>
> //Value Computed by CMake
> EditorFltkGui_SOURCE_DIR:STATIC=C:/cvswork/InsightApplications
> /SegmentationE
> ditorFltkGui/EditorFltkGui
>
> //Value Computed by CMake
> EllipsoidInteriorExteriorSpatialFunction_BINARY_DIR:STATIC=C:/
> cvswork/Insigh
> tApplications/output/EllipsoidInteriorExteriorSpatialFunction
>
> //Value Computed by CMake
> EllipsoidInteriorExteriorSpatialFunction_SOURCE_DIR:STATIC=C:/
> cvswork/Insigh
> tApplications/EllipsoidInteriorExteriorSpatialFunction
>
> //Dependencies for the target
> Example_ITKFilterLib_LIB_DEPENDS:STATIC=ITKAlgorithms;ITKCommo
> n;ITKBasicFilt
> ers;ITKNumerics;ITKCommon;ITKIO;ITKBasicFilters;ITKCommon;ITKN
> umerics;ITKIO;
> ITKBasicFilters;
>
> //Dependencies for the target
> Example_ITKRegistrationLib_LIB_DEPENDS:STATIC=ITKAlgorithms;IT
> KCommon;ITKBas
> icFilters;ITKNumerics;ITKIO;ITKBasicFilters;ITKCommon;
>
> //Value Computed by CMake
> FEMAtlasSegmentation_BINARY_DIR:STATIC=C:/cvswork/InsightAppli
> cations/output
> /IBSRValidation/FEMAtlasSegmentation
>
> //Value Computed by CMake
> FEMAtlasSegmentation_SOURCE_DIR:STATIC=C:/cvswork/InsightAppli
> cations/IBSRVa
> lidation/FEMAtlasSegmentation
>
> //Where can one of the fltk or fltkd libraries be found
> FLTK_BASE_LIBRARY:FILEPATH=C:/projet/fltk-1.1.4/lib/fltk.lib
>
> //Path to a program.
> FLTK_FLUID_EXECUTABLE:FILEPATH=C:/projet/fltk-1.1.4/fluid/fluid.exe
>
> //Where can one of the fltkforms, fltkformsd or fltk_forms
> libraries // be found
> FLTK_FORMS_LIBRARY:FILEPATH=C:/projet/fltk-1.1.4/lib/fltkforms.lib
>
> //Where can one of the fltkgl, fltkgld or fltk_gl libraries
> be // found
> FLTK_GL_LIBRARY:FILEPATH=C:/projet/fltk-1.1.4/lib/fltkgld.lib
>
> //Where can one of the fltkimages, fltkimagesd or fltk_images
> libraries // be found
> FLTK_IMAGES_LIBRARY:FILEPATH=C:/projet/fltk-1.1.4/lib/fltkimages.lib
>
> //What is the path where the file FL/Fl.h can be found
> FLTK_INCLUDE_DIR:PATH=C:/projet/fltk-1.1.4
>
> //Value Computed by CMake
> FloodFilledSpatialFunction_BINARY_DIR:STATIC=C:/cvswork/Insigh
> tApplications/
> output/FloodFilledSpatialFunction
>
> //Value Computed by CMake
> FloodFilledSpatialFunction_SOURCE_DIR:STATIC=C:/cvswork/Insigh
> tApplications/
> FloodFilledSpatialFunction
>
> //Path to gunzip executable
> GUNZIPCOMMAND:FILEPATH=GUNZIPCOMMAND-NOTFOUND
>
> //Value Computed by CMake
> GaussianMinimumErrorClassifier_BINARY_DIR:STATIC=C:/cvswork/In
> sightApplicati
> ons/output/GaussianMinimumErrorClassifier
>
> //Value Computed by CMake
> GaussianMinimumErrorClassifier_SOURCE_DIR:STATIC=C:/cvswork/In
> sightApplicati
> ons/GaussianMinimumErrorClassifier
>
> //Value Computed by CMake
> IBSRClassification_BINARY_DIR:STATIC=C:/cvswork/InsightApplica
> tions/output/I
> BSRValidation/IBSRClassification
>
> //Value Computed by CMake
> IBSRClassification_SOURCE_DIR:STATIC=C:/cvswork/InsightApplica
> tions/IBSRVali
> dation/IBSRClassification
>
> //Dependencies for the target
> ITKFltkImageViewer_LIB_DEPENDS:STATIC=ITKAlgorithms;ITKCommon;
> ITKBasicFilter
> s;C:/projet/fltk-1.1.4/lib/fltk.lib;C:/projet/fltk-1.1.4/lib/f
ltkgld.lib;C:/
> projet/fltk-1.1.4/lib/fltkforms.lib;C:/projet/fltk-1.1.4/lib/f
> ltkimages.lib;
> wsock32;comctl32;glu32;glu32;opengl32;
>
> //Value Computed by CMake
> ITKRegistrationLib_BINARY_DIR:STATIC=C:/cvswork/InsightApplica
> tions/output/I
> TKRegistrationLib
>
> //Value Computed by CMake
> ITKRegistrationLib_SOURCE_DIR:STATIC=C:/cvswork/InsightApplica
> tions/ITKRegis
> trationLib
>
> //Dependencies for the target
> ITKVtkFltk_LIB_DEPENDS:STATIC=ITKAlgorithms;ITKCommon;ITKBasic
> Filters;vtkRen
> dering;C:/projet/fltk-1.1.4/lib/fltk.lib;C:/projet/fltk-1.1.4/
lib/fltkgld.li
> b;C:/projet/fltk-1.1.4/lib/fltkforms.lib;C:/projet/fltk-1.1.4/
lib/fltkimages
> .lib;wsock32;comctl32;glu32;
>
> //The directory containing ITKConfig.cmake. This is either
> the // root of the build tree, or PREFIX/lib/InsightToolkit
> for an // installation.
> ITK_DIR:PATH=C:/projet/InsightToolkit-1.4.0/output
>
> //Value Computed by CMake
> ImageRegistration_BINARY_DIR:STATIC=C:/cvswork/InsightApplicat
> ions/output/Im
> ageRegistration
>
> //Value Computed by CMake
> ImageRegistration_SOURCE_DIR:STATIC=C:/cvswork/InsightApplicat
> ions/ImageRegi
> stration
>
> //Value Computed by CMake
> InsightApplications_BINARY_DIR:STATIC=C:/cvswork/InsightApplic
> ations/output
>
> //Value Computed by CMake
> InsightApplications_SOURCE_DIR:STATIC=C:/cvswork/InsightApplications
>
> //Path to java command, used by the Dart server to create
> html. // JAVACOMMAND:FILEPATH=C:/WINDOWS/system32/java.exe
>
> //Single output directory for building all libraries.
> LIBRARY_OUTPUT_PATH:PATH=
>
> //Command used to build entire project from the command line.
> MAKECOMMAND:STRING='"C:/Program Files/Microsoft Visual
> Studio/Common/MSDev98/Bin/msdev.com" InsightApplications.dsw
> /MAKE "ALL_BUILD - Release" '
>
> //Value Computed by CMake
> MIValidation_BINARY_DIR:STATIC=C:/cvswork/InsightApplications/
> output/MIValid
> ation
>
> //Value Computed by CMake
> MIValidation_SOURCE_DIR:STATIC=C:/cvswork/InsightApplications/
> MIValidation
>
> //Value Computed by CMake
> MultiResMIRegistration_BINARY_DIR:STATIC=C:/cvswork/InsightApp
> lications/outp
> ut/MultiResMIRegistration
>
> //Value Computed by CMake
> MultiResMIRegistration_SOURCE_DIR:STATIC=C:/cvswork/InsightApp
> lications/Mult
> iResMIRegistration
>
> //Value Computed by CMake
> MutualInformationEuler2DRegistration_BINARY_DIR:STATIC=C:/cvsw
> ork/InsightApp
> lications/output/MutualInformationEuler2DRegistration
>
> //Value Computed by CMake
> MutualInformationEuler2DRegistration_SOURCE_DIR:STATIC=C:/cvsw
> ork/InsightApp
> lications/MutualInformationEuler2DRegistration
>
> //OpenGL library for win32
> OPENGL_gl_LIBRARY:STRING=opengl32
>
> //GLU library for win32
> OPENGL_glu_LIBRARY:STRING=glu32
>
> //Path to Rational purify command, used for memory error
> detection. // PURIFYCOMMAND:FILEPATH=PURIFYCOMMAND-NOTFOUND
>
> //Value Computed by CMake
> RawImageReaderViewer_BINARY_DIR:STATIC=C:/cvswo
>
>
> ....
> ...
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-> users
>