<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hello!<br><br>Well, i wanted to work through the "GettingStarted-II.pdf" from the itk.org website, to check out the VTK, but i have the following problem.<br><br>Visual Studio C++ 9 is compiling my project without any error. But i cant find any executable file in the bin directory.<br><br><br>CMakeLists.txt contains:<br><br>PROJECT(myProject)<br>FIND_PACKAGE ( ITK)<br>IF ( ITK_FOUND)<br>&nbsp;&nbsp;&nbsp; INCLUDE( ${USE_ITK_FILE} )<br>ENDIF( ITK_FOUND)<br><br>FIND_PACKAGE ( VTK)<br>IF ( VTK_FOUND)<br>INCLUDE( ${USE_VTK_FILE} )<br>ENDIF( VTK_FOUND)<br><br>INCLUDE_DIRECTORIES(<br>${myProject_SOURCE_DIR}<br>)<br>ADD_EXECUTABLE( myProject myProject.cxx)<br>TARGET_LINK_LIBRARIES ( myProject<br>ITKBasicFiltersITKCommonITKIO<br>vtkRenderingvtkGraphicsvtkHybrid<br>vtkImagingvtkIOvtkFilteringvtkCommon<br>)<br><br><br><br><br>and myProject.cxx contains:<br><br>#include "itkImage.h"<br>#include "itkImageFileReader.h"<br>#include "itkImageToVTKImageFilter.h"<br>#include "vtkImageViewer.h"<br>#include "vtkRenderWindowInteractor.h"<br><br>intmain( intargc, char **argv) {<br>&nbsp;&nbsp;&nbsp; typedef itk::Image&lt;unsigned short,2&gt; ImageType;<br>&nbsp;&nbsp;&nbsp; typedef itk::ImageFileReader&lt;ImageType&gt; ReaderType;<br>&nbsp;&nbsp;&nbsp; typedef itk::ImageToVTKImageFilter&lt;ImageType&gt; ConnectorType;<br>&nbsp;&nbsp;&nbsp; ReaderType::Pointerreader= ReaderType::New();<br>&nbsp;&nbsp;&nbsp; ConnectorType::Pointerconnector= ConnectorType::New();<br>&nbsp;&nbsp;&nbsp; reader-&gt;SetFileName( argv[1]);<br>&nbsp;&nbsp;&nbsp; connector-&gt;SetInput( reader-&gt;GetOutput() );<br>&nbsp;&nbsp;&nbsp; vtkImageViewer* viewer= vtkImageViewer::New();<br>&nbsp;&nbsp;&nbsp; vtkRenderWindowInteractor* renderWindowInteractor=<br>&nbsp;&nbsp;&nbsp; vtkRenderWindowInteractor::New();<br>&nbsp;&nbsp;&nbsp; viewer-&gt;SetupInteractor( renderWindowInteractor);<br>&nbsp;&nbsp;&nbsp; viewer-&gt;SetInput( connector-&gt;GetOutput() );<br>&nbsp;&nbsp;&nbsp; viewer-&gt;Render();<br>&nbsp;&nbsp;&nbsp; viewer-&gt;SetColorWindow( 255);<br>&nbsp;&nbsp;&nbsp; viewer-&gt;SetColorLevel( 128);<br>&nbsp;&nbsp;&nbsp; renderWindowInteractor-&gt;Start();<br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br><br><br>Creating an only ITK project works without any problem.<br><br><br>Someone has an idea??<br><br>Thanks for your help.<br><br><br><br><br /><hr />Trete mit Deinem inneren Athleten in Verbindung. <a href='http://redirect.gimas.net/?cat=hmtl&n=M0808IMPAni2&d=http://messenger.live.de/mein/mein-messenger-animoticons.aspx' target='_new'>Beantworte die Fragen!</a></body>
</html>