<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Calibri size=3>Hi Roel,</FONT></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>When compiling<SPAN style="mso-spacerun: yes"> </SPAN>a C++<SPAN style="mso-spacerun: yes"> </SPAN>file built by Cmake (as in Hollow World example), the linkage is done implicitly (CMakeLists.txt informs compiler that it must search ITK files and the property ITK_DIR indicate the path to those ITK <SPAN style="mso-spacerun: yes"> </SPAN>files).<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>But if project is built without Cmake(written in visual studio C++ for example), here the linkage must be done explicitly : open project in Visual studio C++ → project→ settings →……..(we add <SPAN style="mso-spacerun: yes"> </SPAN>paths of include repertory and lib repertory that exist in your case in d:\ITK\InsightBin\ ).<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri size=3>I have the same configuration as you (visual C++ express edition 2008 ) . <SPAN style="mso-spacerun: yes"> </SPAN>I have followed your steps and </FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; mso-ansi-language: EN-US">HelloWorld example has built and run successively with cmake and </SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>visual C++ express edition.<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri size=3>I seems that your problem is in </FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; mso-ansi-language: EN-US">d:\ITK\Insight\</SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri size=3> <SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN>and<SPAN style="mso-spacerun: yes"> </SPAN>the setting of the property ITK_DIR . I followed the same steps as you (as in GettingStarted-I available in ITK home) but no as directory was built , however <SPAN style="mso-spacerun: yes"> </SPAN>C_MAKE_INSTALL_PREFIX<SPAN style="mso-spacerun: yes"> </SPAN>was set by default to its path (</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; mso-ansi-language:
EN-US">d:\ITK\Insight)</SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri> !!I had as directory in building VTK <SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN>where <SPAN style="mso-spacerun: yes"> </SPAN>the property ITK_DIR must be set <SPAN style="mso-spacerun: yes"> </SPAN>by the path of this directory.<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>I am searching why it exists in building VTK and there is not in building ITK!!<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>In <SPAN style="mso-spacerun: yes"> </SPAN>all cases, follow steps of GettingStarted-I <SPAN style="mso-spacerun: yes"> </SPAN>and verify the setting of ITK_DIR.<SPAN style="mso-spacerun: yes"> </SPAN>I am sure that will work with you.<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>Nora<o:p></o:p></FONT></FONT></SPAN></DIV><BR><BR>--- En date de : <B>Mer 19.11.08, Roel Kierkels <I><rkierkels@hotmail.com></I></B> a écrit :<BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">De: Roel Kierkels <rkierkels@hotmail.com><BR>Objet: [Insight-users] No linkage between header and ITK library: itkImage.h not found in helloworld<BR>À: insight-users@itk.org<BR>Date: Mercredi 19 Novembre 2008, 3h11<BR><BR>
<DIV id=yiv1036397972>
<STYLE>
#yiv1036397972 .hmmessage P
{
margin:0px;padding:0px;}
#yiv1036397972 {
font-size:10pt;font-family:Verdana;}
</STYLE>
Hello,<BR><BR>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.<BR>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. <BR>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: <BR><BR>fatal error C1083: Cannot open include file: 'itkImage.h': No such file or
directory d:\ITK\Installation\HelloWorld.cxx 10 HelloWorld<BR><BR>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<BR><BR>Roel.<BR><BR><BR><BR>
<HR>
Access your email online and on the go with Windows Live Hotmail. <A href="http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008" target=_blank rel=nofollow>Sign up today.</A> </DIV><PRE>_______________________________________________
Insight-users mailing list
Insight-users@itk.org
http://www.itk.org/mailman/listinfo/insight-users
</PRE></BLOCKQUOTE></td></tr></table><br>