[ITK-users] Running an ITK program

Abdul Abdul abdul.sw84 at gmail.com
Wed Oct 29 11:06:52 EDT 2014


Yes, I now downloaded ItkVtkGlue, and configured and generated it using
CMake.

Now, when I try to configure the program mentioned, I get the following:

CMake Error at CMakeLists.txt:12 (include):
include could not find load file:

C:/Users/Abdul/Desktop/itk

I'm using the same CMakeLists.txt as in the example (attached).

Do you know why I'm getting this error?

Thanks.

On Wed, Oct 29, 2014 at 3:15 PM, Chr. Rossmanith <
cr at neuro.ma.uni-heidelberg.de> wrote:

>  Did you build ITK with Module_ITKVtkGlue=ON? (c.f.
> http://www.itk.org/Wiki/ITK/Examples/IO/ImageFileReader#ItkVtkGlue)
>
> Christina
>
>
>
> On 29.10.2014 15:10, Abdul Abdul wrote:
>
> I know how to use CMake already. But, seems something to do with the paths
> or libraries.
>
> On Wed, Oct 29, 2014 at 3:07 PM, John Drescher <drescherjm at gmail.com>
> wrote:
>
>> On Wed, Oct 29, 2014 at 10:03 AM, Abdul Abdul <abdul.sw84 at gmail.com>
>> wrote:
>> > Sorry I'm really new to that.
>> >
>> > The example I'm trying to run is here:
>> > http://www.itk.org/Wiki/ITK/Examples/IO/ImageFileReader
>> >
>> > What would a basic CMakeLists.txt for this example be?
>> >
>>
>> You have the correct CMakeLists.txt you do not have the correct
>> dependent librarys installed. You need to understand how to build and
>> install software with CMake.
>>
>> John
>>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:http://www.kitware.com/products/protraining.php
>
> 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://public.kitware.com/mailman/listinfo/insight-users
>
>
>
> _____________________________________
> 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.php
>
> 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://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20141029/92cd9763/attachment.html>
-------------- next part --------------
cmake_minimum_required(VERSION 2.8)
 
project(ImageFileReader)
 
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
if (ITKVtkGlue_LOADED)
  find_package(VTK REQUIRED)
  include(${VTK_USE_FILE})
else()
  find_package(ItkVtkGlue REQUIRED)
  include(${ItkVtkGlue_USE_FILE})
  set(Glue ItkVtkGlue)
endif()
 
add_executable(ImageFileReader MACOSX_BUNDLE ImageFileReader.cxx)
target_link_libraries(ImageFileReader
  ${Glue}  ${VTK_LIBRARIES} ${ITK_LIBRARIES})




More information about the Insight-users mailing list