<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Dear all,<br><br>Im trying to learn to use ITK by running some samples under Centos 5. I run a read image code from<br><br>Examples/DataRepresentation/Image/<br><br>When I configue -> generate, the error suggests me to add the following line, then I add it, the command cmake is happy. I found most of examples dont include this line.<br><br>cmake_minimum_required(VERSION 2.8)<br><br>When I run the generated Makefile >make, it gives me the error of the follwoing:<br>[ 6%] Building CXX object CMakeFiles/Image1.dir/Image1.cxx.o<br>/home/fsl/ITK/Workspace/test/ReadImage/Image1.cxx:36:22: error: itkImage.h: No such file or directory<br>/home/fsl/ITK/Workspace/test/ReadImage/Image1.cxx: In function ¡®int main(int, char**)¡¯:<br>/home/fsl/ITK/Workspace/test/ReadImage/Image1.cxx:51: error: ¡®itk¡¯ has not been declared<br><br>I assume this is because some package or lib is not included properly, then I added the following lines, then >make works fine.<br># Find ITK.<br>FIND_PACKAGE(ITK REQUIRED)<br>INCLUDE(${ITK_USE_FILE})<br><br>I guess I didnt compile or include something property, and I shouldnt need to manually add those lines.<br><br>--------------------------------<br>Xi Liang<br><br>ÁºÜç<br>--------------------------------<br><br><br>                                            <br /><hr />Windows Live: Keep your friends up to date <a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010' target='_new'>with what you do online.</a></body>
</html>