<div class="gmail_quote">Hi, All!<br><br>I try to compile the example from /Insight/Examples/DataRepresentation/Image directory.<br><br>At first, I use cmake. This is my command line:<br>nikolay@semiliranda:~> cd ~/bin/Insight/Examples/DataRepresentation/Image/<br>
nikolay@semiliranda:~/bin/Insight/Examples/DataRepresentation/Image> ccmake ~/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/<br><br>I type 'c' and 'g' to configure and generate Makefile.<br>
<br>Then I run "make":<br>nikolay@semiliranda:~/bin/Insight/Examples/DataRepresentation/Image> make<br><br>But error message appeared:<br>Scanning dependencies of target Image1 <br>
[ 6%] Building CXX object CMakeFiles/Image1.dir/Image1.cxx.o <br>/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:36:22: error: itkImage.h: No such file or directory <br>
/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx: In function ‘int main(int, char**)’: <br>/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:53: error: ‘itk’ has not been declared <br>
/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:53: error: expected initializer before ‘<’ token<br>/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:69: error: ‘ImageType’ has not been declared<br>
/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:69: error: expected `;' before ‘image’<br>/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:111: error: ‘ImageType’ has not been declared<br>
/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:111: error: expected `;' before ‘start’<br>/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:113: error: ‘start’ was not declared in this scope<br>
/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:131: error: ‘ImageType’ has not been declared<br>/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:131: error: expected `;' before ‘size’<br>
/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:133: error: ‘size’ was not declared in thisscope<br>/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:151: error: ‘ImageType’ has not been declared<br>
/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:151: error: expected `;' before ‘region’<br>/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:153: error: ‘region’ was not declared in this scope<br>
/home/nikolay/src/InsightToolkit-3.12.0/Examples/DataRepresentation/Image/Image1.cxx:174: error: ‘image’ was not declared in this scope<br>make[2]: *** [CMakeFiles/Image1.dir/Image1.cxx.o] Error 1<br>make[1]: *** [CMakeFiles/Image1.dir/all] Error 2<br>
make: *** [all] Error 2<br><br>Please, advise. What is wrong with my activities?<br><br>Thank you.<br clear="all"><font color="#888888"><br>-- <br>Kind regards,<br><br>Nikolay Shelakhaev<br>Biomedical Engineer<br>Polyomed/Didimed<br>
</font></div><br>