<br>Hi Syrine,<br><br>Thanks for posting the error.<br><br>You will really benefit from following the tutorials first<br><a href="http://www.itk.org/ITK/help/tutorials.html">http://www.itk.org/ITK/help/tutorials.html</a><br>
<br>--<br><br>A) Please remove the regular expressions command <br> from your CMakeLists.txt file.<br><br> You only need:<br><br><br>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)<br>IF(COMMAND CMAKE_POLICY)<br> CMAKE_POLICY(SET CMP0003 NEW)<br>
ENDIF(COMMAND CMAKE_POLICY)<br><br>FIND_PACKAGE(ITK REQUIRED)<br>INCLUDE(${ITK_USE_FILE})<br><br>PROJECT(IOExamples)<br><br><div>ADD_EXECUTABLE(DicomImageReadWrite DicomImageReadWrite.cxx )<br>TARGET_LINK_LIBRARIES(DicomImageReadWrite ITKIO)</div>
<br><br>B) The error message that you posted as a screenshot<br> is clearly indicating that you selected an incorrect <br> compiler when you configured this example.<br><br> Please delete the binary directory where you are trying<br>
to build the example, and start from scratch. At this<br> point your CMake cache is corrupted.<br><br><br><br>Regards,<br><br><br> Luis<br><br><br><br><br>----------------------------------------------------------------------------<br>
<div class="gmail_quote">On Wed, Jun 17, 2009 at 6:47 AM, Syrine Sahmim <span dir="ltr"><<a href="mailto:syrine.sahmim@yahoo.fr">syrine.sahmim@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>ok<br>the error message i have is "DicomImageReadWrite.cxx<br>.\DicomImageReadWrite.cxx(8) : fatal error
C1083: Impossible d'ouvrir le fichier include :
'itkImageFileReader.h' : No such file or directory" and i<br>Now,i try to change cmake file now as follows:<br>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)<br>IF(COMMAND CMAKE_POLICY)<br> CMAKE_POLICY(SET CMP0003 NEW)<br>
ENDIF(COMMAND CMAKE_POLICY)<br># Find ITK.<br>FIND_PACKAGE(ITK REQUIRED)<br>INCLUDE(${ITK_USE_FILE})<br><br>PROJECT(IOExamples)<br>INCLUDE_REGULAR_EXPRESSION("^.*$")<br>ADD_EXECUTABLE(DicomImageReadWrite DicomImageReadWrite.cxx )<br>
TARGET_LINK_LIBRARIES(DicomImageReadWrite ITKIO)<br>but when i execute cmake i have this error (look at the joined file plz)<br><div class="hm"><br><br><img alt=""><br></div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div class="hm"><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div class="hm"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Luis Ibanez
<<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>><br><b><span style="font-weight: bold;">À :</span></b> Syrine Sahmim <<a href="mailto:syrine.sahmim@yahoo.fr" target="_blank">syrine.sahmim@yahoo.fr</a>><br>
<b><span style="font-weight: bold;">Cc :</span></b> <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br><b><span style="font-weight: bold;">Envoyé le :</span></b> Mercredi, 17 Juin 2009, 11h33mn 17s<br>
<b><span style="font-weight: bold;">Objet :</span></b> Re: [Insight-users] what's this error plz<br></font></div><div><div></div><div class="h5"><br><br>Hy Syrine,<br><br>The code looks ok.<br><br>You may be confused with the normal termination of the program.<br>
<br>If you run it in Debug mode, and walk line by line,<br>do you get up to the end of the program ?<br><br>
Please let us know,<br><br><br> Thanks,<br><br><br> Luis<br><br><br>----------------------------------------<br><div class="gmail_quote">On Wed, Jun 17, 2009 at 4:34 AM, Syrine Sahmim <span dir="ltr"><<a rel="nofollow" href="mailto:syrine.sahmim@yahoo.fr" target="_blank">syrine.sahmim@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>hi,<br>i try the program below but i have this error when i run it:"the program '[640] Image1.exe: Natif' is stopped with code 0 (0x0)."<br>what does mean this error?<br>#if defined(_MSC_VER)<br>#pragma warning ( disable : 4786 )<br>
#endif<br>#include "itkImage.h"<br>int main(int, char *[])<br>{ typedef itk::Image< unsigned short, 3 > ImageType;<br> ImageType::Pointer image = ImageType::New(); <br> ImageType::IndexType start;<br>
start[0] = 0; // first index on X<br> start[1] = 0; // first index on Y<br> start[2] = 0; // first index on Z<br> ImageType::SizeType size;<br> size[0] = 200; // size along
X<br> size[1] = 200; // size along Y<br> size[2] = 200; // size along Z<br> ImageType::RegionType region;<br> region.SetSize( size );<br> region.SetIndex( start );<br> image->SetRegions( region );<br> image->Allocate();<br>
system("pause");<br> return 0;<br></div></div><br>
</div><br>_____________________________________<br>
Powered by <a rel="nofollow" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a rel="nofollow" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a rel="nofollow" href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>
</div></div></div></div></div><br>
</div></blockquote></div><br>