[Insight-users] Wathershed error
Gaetan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Apr 18 04:21:14 EDT 2006
Hi,
Have you linked your code with the ITKAlgorithms lib ?
Gaetan
On Mon, 17 Apr 2006 10:31:17 +0200, <mariusz_smch at poczta.fm> wrote:
>
> Hi all
>
> I wan to run segmentation of CT image.
> I try compile wathershed segmentation filter example and I got this
> error:
>
> error LNK2001: unresolved external symbol "public: virtual void
> __thiscall itk::WatershedMiniPipelineProgressCommand::Execute(class
> itk::Object *,class itk::EventObject const &)"
> (?Execute at WatershedMiniPipelineProgressCommand@itk@@UAEXPAVObject at 2@ABVEventObject at 2@@Z)
> WatershedSegmentation1.obj :
> error LNK2001: unresolved external symbol "public: virtual void
> __thiscall itk::WatershedMiniPipelineProgressCommand::Execute(class
> itk::Object const *,class itk::EventObject const &)"
> (?Execute at WatershedMiniPipelineProgressCommand@itk@@UAEXPBVObject at 2@ABVEventObject at 2@@Z)
> Release\WatershedSegmentation1.exe :
> fatal error LNK1120: 2 unresolved externals
>
>
> Can anyone tell me what I'm doing wrong?
> Below I include my: CMakeList and Build Log
>
>
> Thank You
> Mariusz
>
> //-----------------------------------------------------
> CMakeList.txt
>
> PROJECT(WatershedSegmentation1)
>
> FIND_PACKAGE(ITK)
> IF(ITK_FOUND)
> INCLUDE(${USE_ITK_FILE})
> ENDIF(ITK_FOUND)
>
> FIND_PACKAGE(FLTK)
> IF(FLTK_FOUND)
> INCLUDE_DIRECTORIES(${FLTK_ICLUDE_DIR})
> ENDIF(FLTK_FOUND)
>
> ADD_EXECUTABLE(WatershedSegmentation1 WatershedSegmentation1.cxx)
>
> #IF(FLTK_FOUND)
> # FLTK_WRAP_UI(myFltk myFltkGUI.fl)
> #ENDIF(FLTK_FOUND)
>
> TARGET_LINK_LIBRARIES(WatershedSegmentation1 ITKIO ITKBasicFilters
> ITKNumerics ITKCommon ${FLTK_LIBRARIES})
>
> //-----------------------------------------------------
> WathershedSegmentation1-building log
>
>
> Build Log ------- Build started: Project: WatershedSegmentation1,
> Configuration: Release|Win32 -------
>
> Command Lines Creating temporary file "d:\dicom\aktualne
> prace\watershed\bin\Release\BAT000001.bat" with contents
> [
> @echo off
> "C:\Program Files\CMake20\bin\cmake.exe" "D:\dicom\aktualne
> prace\watershed\CMakeLists.txt" -H"D:\dicom\aktualne prace\watershed"
> -B"D:\dicom\aktualne prace\watershed\bin"
>
>
> if errorlevel 1 goto VCReportError
> goto VCEnd
> :VCReportError
> echo Project : error PRJ0019: A tool returned an error code from
> "Building Custom Rule WatershedSegmentation1.vcproj.cmake"
> exit 1
> :VCEnd
> ]
> Creating command line ""d:\dicom\aktualne
> prace\watershed\bin\Release\BAT000001.bat""
> Creating temporary file "d:\dicom\aktualne
> prace\watershed\bin\Release\RSP000002.rsp" with contents
> [
> /O2 /I "C:\dicom\itk\bin\Utilities\vxl\core" /I
> "C:\dicom\itk\bin\Utilities\vxl\vcl" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Utilities\vxl\core" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Utilities\vxl\vcl" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Utilities" /I
> "C:\dicom\itk\bin\Utilities" /I "C:\dicom\itk\bin\Utilities\gdcm" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Utilities\nifti\znzlib" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Utilities\nifti\niftilib" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Utilities\expat" /I
> "C:\dicom\itk\bin\Utilities\expat" /I
> "C:\dicom\itk\bin\Utilities\DICOMParser" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Utilities\DICOMParser" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Utilities\NrrdIO" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Utilities\MetaIO" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Code\SpatialObject" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Code\Numerics\NeuralNetworks" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Code\Numerics\Statistics" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Code\Numerics\FEM" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Code\IO" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Code\Numerics" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Code\Common" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Code\BasicFilters" /I
> "C:\dicom\itk\InsightToolkit-2.2.0\Code\Algorithms" /I
> "C:\dicom\itk\bin" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /FD /EHsc /MD /GR
> /Fo"Release\\" /Fd".\Release/vc70.pdb" /W3 /c /TP /TP /Zm1000
> -DNOMINMAX /D NDEBUG /D NDEBUG -DCMAKE_INTDIR=\"Release\"
> "\dicom\aktualne prace\watershed\WatershedSegmentation1.cxx"
> ]
> Creating command line "cl.exe @"d:\dicom\aktualne
> prace\watershed\bin\Release\RSP000002.rsp" /nologo"
> Creating temporary file "d:\dicom\aktualne
> prace\watershed\bin\Release\RSP000003.rsp" with contents
> [
> /OUT:"Release\WatershedSegmentation1.exe" /INCREMENTAL:NO /NOLOGO
> /LIBPATH:"C:\dicom\itk\bin\bin\.\Release"
> /LIBPATH:"C:\dicom\itk\bin\bin\\"
> /PDB:"Release\WatershedSegmentation1.pdb" /SUBSYSTEM:CONSOLE
> /STACK:10000000 /MACHINE:I386 /STACK:10000000 /machine:I386
> /INCREMENTAL:YES 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 ITKIO.lib ITKBasicFilters.lib ITKNumerics.lib
> ITKCommon.lib ITKNrrdIO.lib itkgdcm.lib itkjpeg12.lib itkjpeg16.lib
> wsock32.lib snmpapi.lib itkpng.lib itktiff.lib itkjpeg8.lib
> ITKSpatialObject.lib ITKNumerics.lib ITKCommon.lib ITKMetaIO.lib
> ITKDICOMParser.lib ITKEXPAT.lib ITKniftiio.lib ITKznz.lib itkzlib.lib
> itkvnl_inst.lib itkvnl_algo.lib itkvnl.lib itkvcl.lib itknetlib.lib
> itksys.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
> ".\Release\WatershedSegmentation1.obj"
> ]
> Creating command line "link.exe @"d:\dicom\aktualne
> prace\watershed\bin\Release\RSP000003.rsp""
> Output Window Building Custom Rule
> WatershedSegmentation1.vcproj.cmake
> -- Check for working C compiler: cl -- works
> -- Check for working CXX compiler: cl -- works
> Warning: CMake is forcing CMAKE_C_FLAGS_RELEASE to "/MD /O2" to match
> that imported from ITK. If this message appears for more than one
> imported project, you have conflicting options and will have to re-build
> one of those projects.
> Warning: CMake is forcing CMAKE_C_FLAGS_MINSIZEREL to "/MD /O1" to match
> that imported from ITK. If this message appears for more than one
> imported project, you have conflicting options and will have to re-build
> one of those projects.
> Warning: CMake is forcing CMAKE_C_FLAGS_RELWITHDEBINFO to "/MD /Zi /O2"
> to match that imported from ITK. If this message appears for more than
> one imported project, you have conflicting options and will have to
> re-build one of those projects.
> Warning: CMake is forcing CMAKE_CXX_FLAGS_RELEASE to "/MD /O2" to match
> that imported from ITK. If this message appears for more than one
> imported project, you have conflicting options and will have to re-build
> one of those projects.
> Warning: CMake is forcing CMAKE_CXX_FLAGS_MINSIZEREL to "/MD /O1" to
> match that imported from ITK. If this message appears for more than one
> imported project, you have conflicting options and will have to re-build
> one of those projects.
> Warning: CMake is forcing CMAKE_CXX_FLAGS_RELWITHDEBINFO to "/MD /Zi
> /O2" to match that imported from ITK. If this message appears for more
> than one imported project, you have conflicting options and will have to
> re-build one of those projects.
> -- Configuring done
> -- Generating done
> -- Build files have been written to: D:/dicom/aktualne
> prace/watershed/bin
> Compiling...
> WatershedSegmentation1.cxx
> Linking...
> Creating library Release\WatershedSegmentation1.lib and object
> Release\WatershedSegmentation1.exp
> WatershedSegmentation1.obj : error LNK2001: unresolved external symbol
> "public: virtual void __thiscall
> itk::WatershedMiniPipelineProgressCommand::Execute(class itk::Object
> *,class itk::EventObject const &)"
> (?Execute at WatershedMiniPipelineProgressCommand@itk@@UAEXPAVObject at 2@ABVEventObject at 2@@Z)
> WatershedSegmentation1.obj : error LNK2001: unresolved external symbol
> "public: virtual void __thiscall
> itk::WatershedMiniPipelineProgressCommand::Execute(class itk::Object
> const *,class itk::EventObject const &)"
> (?Execute at WatershedMiniPipelineProgressCommand@itk@@UAEXPBVObject at 2@ABVEventObject at 2@@Z)
> Release\WatershedSegmentation1.exe : fatal error LNK1120: 2 unresolved
> externals
> Results Build log was saved at "file://d:\dicom\aktualne
> prace\watershed\bin\Release\BuildLog.htm"
> WatershedSegmentation1 - 3 error(s), 0 warning(s)
>
>
>
> ----------------------------------------------------------------------
> Poznaj Stefana! Zmien komunikator! >>> http://link.interia.pl/f1924
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
More information about the Insight-users
mailing list