<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi all,</div><div><br></div><div>I am using ccmake to compile my itk code. But the compilation problem occurs while building a specific target for object file. Here is the error message from the screen: </div><div><br></div><div>*******************Scanning dependencies of target VavSegment<br>[100%] Building CXX object CMakeFiles/VavSegment.dir/VavSegment.o<br>Linking CXX executable VavSegment<br>CMakeFiles/VavSegment.dir/VavSegment.o:(.rodata._ZTVN3itk38VavBoneSegmentationLevelSetImageFilterINS_5ImageIfLj3EEES2_fEE[vtable for itk::VavBoneSegmentationLevelSetImageFilter<itk::Image<float, 3u>, itk::Image<float, 3u>, float>]+0x458): undefined reference to `itk::VavBoneSegmentationLevelSetImageFilter<itk::Image<float, 3u>, itk::Image<float, 3u>,
float>::SetThirdAdvectionFunction(itk::Image<itk::FixedArray<float, 3u>, 3u>*)'<br>collect2: ld returned 1 exit status<br>make[2]: *** [VavSegment] Error 1<br>make[1]: *** [CMakeFiles/VavSegment.dir/all] Error 2<br>make: *** [all] Error 2<br>********************</div><div><br></div><div>My CMakeLists is as follows: </div><div><br></div><div>****************</div><div>cmake_minimum_required(VERSION 2.4)<br><br>PROJECT( VavSegment )<br><br>FIND_PACKAGE(ITK)<br> IF(ITK_FOUND)<br> INCLUDE(${ITK_USE_FILE})<br>ENDIF(ITK_FOUND)<br><br>SET(CMAKE_BUILD_TYPE "Release")<br><br>ADD_EXECUTABLE( VavSegment VavSegment.cxx<br>VavBoneSegmentationLevelSetFunction.h<br>VavBoneSegmentationLevelSetFunction.txx<br>VavBoneSegmentationLevelSetImageFilter.h<br>VavBoneSegmentationLevelSetImageFilter.txx<br> )<br><br>TARGET_LINK_LIBRARIES( VavSegment<br>
ITKIO ITKCommon ITKBasicFilters ITKStatistics ITKAlgorithms<br> )<br>***************************</div><div><br>
</div>
<div>What could be the problem? Many thanks in advance! </div>
<div>Regards,</div>
<div>Abayiz</div></div></body></html>