Please keep replies on the list...<br><br>Did you build your own ITK?<br><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 2:49 PM, Tanweer Rashid <span dir="ltr">&lt;<a href="mailto:trash001@odu.edu" target="_blank">trash001@odu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bill,<div>I am using the following for CMakeLists.txt</div><div><br></div><div><div># Project Client Server</div><div>
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)</div><div><br></div><div>PROJECT( main)</div><div><br></div><div>
FIND_PACKAGE ( ITK )</div><div>IF (  ITK_FOUND  )</div><div>         INCLUDE(  ${USE_ITK_FILE}  )</div><div>ENDIF(   ITK_FOUND   )</div><div><br></div><div>FIND_PACKAGE ( VTK )</div><div>IF (   VTK_FOUND   )</div><div>         INCLUDE(  ${USE_VTK_FILE}  )</div>

<div>ENDIF(   VTK_FOUND   )</div><div><br></div><div>INCLUDE_DIRECTORIES(${main_SOURCE_DIR})</div><div><br></div><div>ADD_EXECUTABLE( main   main.cxx )</div><div><br></div><div>TARGET_LINK_LIBRARIES ( main ${ITK_LIBRARIES} ${VTK_LIBRARIES})</div>

<div><br></div><div><br></div><div>- - - Tanweer Rashid</div><div><br></div><br><div class="gmail_quote"><div><div class="h5">On Fri, Sep 28, 2012 at 2:33 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">What is your CMakeLists.txt file?<br><br><div class="gmail_quote"><div><div>On Fri, Sep 28, 2012 at 2:10 PM, Tanweer Rashid <span dir="ltr">&lt;<a href="mailto:trash001@odu.edu" target="_blank">trash001@odu.edu</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi,<div><br></div><div>I am  trying to read an image with ITK and display it with VTK using ITKVtkGlue. The program compiles and builds without any errors, but when it executes, it gives the following message: <br clear="all">



<div><div><br></div><div>ERROR: In D:\ProgramFiles\VTK-5.10-src\Imaging\vtkImageImport.cxx, line 337</div><div>vtkImageImport (0050B648): Calling UpdateInformationCallback: d:\programfiles\itk\include\itk-4.2\itkimagefilereader.hxx:143:</div>



<div> Could not create IO object for file D:\AAA.png</div><div>  Tried to create one of the following:</div><div>  You probably failed to set a file suffix, or</div><div>    set the suffix to an unsupported type.</div><div>



<br></div><div>I am compiling on VS2010 on Windows 7 (64 bit). My VTK and ITK libraries and my program are all compiled in 32 bit. </div><div><br></div></div><div>Thanks,</div><span><font color="#888888">-- <br>
Tanweer Rashid<br>MSVE Dept.<br><div>Old Dominion University</div>
<br>
</font></span></div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a 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 href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div></div></div><span><font color="#888888"><div><div class="h5"><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>



</div></div><div><span style="font-style:normal;font-size:medium;display:inline;font-weight:normal">
<hr>
<br>
<a href="https://www.spamtrap.odu.edu/b.php?i=705587510&amp;m=617a3d71874b&amp;t=20120928&amp;c=s" target="_blank">Spam</a><br>
<a href="https://www.spamtrap.odu.edu/b.php?i=705587510&amp;m=617a3d71874b&amp;t=20120928&amp;c=n" target="_blank">Not spam</a><br>
<a href="https://www.spamtrap.odu.edu/b.php?i=705587510&amp;m=617a3d71874b&amp;t=20120928&amp;c=f" target="_blank">Forget previous vote</a><br></span></div>


</font></span></blockquote></div><div class="im"><br><br clear="all"><div><br></div>-- <br>Tanweer Rashid<br>MSVE Dept.<br><div>Old Dominion University</div><br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>