[Insight-users] problem in watershedImageFilter

Luis Ibanez luis.ibanez at kitware.com
Wed Jun 16 15:34:57 EDT 2004


Hi Paulus,

The WatershedSegmentation1.cxx example is compiled and
run  every night in about 30 different platforms in the
Dashboard. It has two test for regression testing and
both tests are passing in all the platforms:

http://www.itk.org/Testing/Dashboard/20040615-0500-Nightly/TestDetail/__Examples_Segmentation_WatershedSegmentation1Test1.html
http://www.itk.org/Testing/Dashboard/20040615-0500-Nightly/TestDetail/__Examples_Segmentation_WatershedSegmentation1Test2.html

so... yes, this code has been tried     :-)

--

It looks like you simply missed to add the library
"ITKAlgorithms" to the list of libraries in your
CMakeLists.txt file.



The relevant lines should look like:


   ADD_EXECUTABLE(WatershedSegmentation1
     WatershedSegmentation1.cxx
     otherMFCStuff.cxx
     )

   TARGET_LINK_LIBRARIES(WatershedSegmentation1
     TKAlgorithms ITKNumerics ITKIO)




If you still find any difficulty, please
post your CMakeLists.txt file.



    Regards,


     Luis



----------------------------------------------------------

paulus joo wrote:

> Hi ITK user
>  
> Does anyone tried to WatershedSegmentation1.cxx?
> I build a MFC based module that integrate the conversion of 
> WatershedSegmentation1.cxx. The compilation was succeed, but it failed 
> on the code generation step. The message is "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 
> <mailto:?Execute at WatershedMiniPipelineProgressCommand@itk@@UAEXPAVObject at 2@ABVEventObject at 2@@Z>)"
>  
> I followed the procedures such as, run CMake to generate project file 
> and open it with VC 6.
>  
> Regards
> Paulus
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users





More information about the Insight-users mailing list