[Insight-users] No linkage between header and ITK library: itkImage.h not found in helloworld

Roel Kierkels rkierkels at hotmail.com
Tue Nov 18 22:11:42 EST 2008


Hello,

I'm a new ITK user and installed the ITK Toolbox into a new directory d:\ITK\Insight\ following the ITKSoftwareguide.pdf. The version of the CMake is 2.6 -patch 2 and the version of the ITK is 3.10.
Then I build the ITK Toolbox successfully (with CMake and the microsoft visual studio 9.0 compiler) which created the InsightBin directory (d:\ITK\InsightBin\) in which the ITKConfig.cmake is located. 
Then I created a new directory "D:\ITK\Installation" and copied the CMakeLists.txt and HelloWorld.cxx file from the examples directory in it. Using CMake I compiled a microsoft visual solution file with the selected "microsoft visual studio 9.0" compiler and set the property ITK_DIR to d:\ITK\InsightBin\. Then I opened the project into microsoft visual studio and selected ALL_BUILD and Build --> Build solution. After a second the message: 

fatal error C1083: Cannot open include file: 'itkImage.h': No such file or directory    d:\ITK\Installation\HelloWorld.cxx    10    HelloWorld

When I copy the itkImage.h file inside the d:\ITK\Installation directory and compile it, again another *.h file is missing. So far as I understand is CMake for the creation of the project file and to link the ITK header files and the course *.cxx code and is it not nessecarily to copy all header files in the project directory. I cannot find in any help or on the internet how to solve this problem. Probably I make a beginners mistake, hopefully someone can help me to continuing using ITK! Thanks

Roel.



_________________________________________________________________
Access your email online and on the go with Windows Live Hotmail.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081119/f4b6f27b/attachment-0001.htm>


More information about the Insight-users mailing list