[Insight-users] Using Headers from Code/Review

Bill Lorensen bill.lorensen at gmail.com
Sun Feb 7 13:45:01 EST 2010


When you configure with cmake, you must
ITK_USE_REVIEW:BOOL=ON

On Sun, Feb 7, 2010 at 1:20 PM, Christian Werner
<christian.werner at rwth-aachen.de> wrote:
> Hi there!
>
> I am trying out Gaetan's labeling code but can't get it compiled:
>
> .../binary_shape_opening.cxx:5:46: error:
> itkBinaryShapeOpeningImageFilter.h: No such file or directory
>
> I located this header in my .../ITK/Code/Review which seems to be a good
> place. Certainly, the environment variable ITK_DIR holds the right location
> to my ITK installation in /opt/ITK - other basic programs using common
> filters compile and work just fine.
> I added the Target Link Library ITKReview to one of my working CMakeLists
> from other projects and edited it accordingly, this is what seemed the most
> plausible. This is how my Makefile looks now:
>
>
> cmake_minimum_required(VERSION 2.4)
>
> PROJECT(binary_shape_opening)
>
> FIND_PACKAGE(ITK REQUIRED)
> IF(ITK_FOUND)
>       INCLUDE(${ITK_USE_FILE})
> ENDIF(ITK_FOUND)
>
> ADD_EXECUTABLE(binary_shape_opening binary_shape_opening.cxx)
>
> TARGET_LINK_LIBRARIES(binary_shape_opening ITKCommon ITKIO ITKReview)
>
>
> Any ideas?
>
> Best regards,
> Christian
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list