[Insight-users] problem in Compiling ITK examples
Luis Ibanez
luis.ibanez at kitware.com
Mon Apr 16 08:29:36 EDT 2007
Hi Saira,
Welcome to ITK !
From the error messages that you posted, it seems that
you are using an incorrect CMake configuration. This is
a very basic issue that you can easily solve by getting
more familiar with the infrastructure of ITK.
Please take the time of reading the tutorials
http://www.itk.org/HTML/Tutorials.htm
In particular, the session:
http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/index.htm
In this tutorial session you will find instructions
on how to write your CMakeLists.txt files.
You should also read the first three chapters
of the ITK Software Guide
http://www.itk.org/ItkSoftwareGuide.pdf
It seems that you are missing the FIND_PACKAGE(ITK) command
in your CMakeLists.txt file.
Regards,
Luis
----------------------------------
Engr. Saira Saleem Pathan wrote:
> hi all
> I'm a new user of ITK and i want to run ITk sample Example but after
> Configuring when I;m running
> make --------produing following error
>
> [ 6%] Building CXX object CMakeFiles/Image1.dir/Image1.o
> /usr/not-backed-up/test/Image1.cxx:36:69: error:
> /home/saira/not-backed-up/Insig htToolkit-3.2.0/itkImage.h: No such file
> or directory
> /usr/not-backed-up/test/Image1.cxx: In function ‘int main(int, char**)’:
> /usr/not-backed-up/test/Image1.cxx:53: error: ‘itk’ has not been declared
> /usr/not-backed-up/test/Image1.cxx:53: error: expected initializer
> before ‘<’ to ken
> /usr/not-backed-up/test/Image1.cxx:69: error: ‘ImageType’ has not been
> declared
> /usr/not-backed-up/test/Image1.cxx:69: error: expected initializer
> before ‘image ’
> /usr/not-backed-up/test/Image1.cxx:111: error: ‘ImageType’ has not been
> declared
> /usr/not-backed-up/test/Image1.cxx:111: error: expected initializer
> before ‘star t’
> /usr/not-backed-up/test/Image1.cxx:113: error: ‘start’ was not declared
> in this scope
> /usr/not-backed-up/test/Image1.cxx:131: error: ‘ImageType’ has not been
> declared
> /usr/not-backed-up/test/Image1.cxx:131: error: expected initializer
> before ‘size ’
> /usr/not-backed-up/test/Image1.cxx:133: error: ‘size’ was not declared
> in this s cope
> /usr/not-backed-up/test/Image1.cxx:151: error: ‘ImageType’ has not been
> declared
> /usr/not-backed-up/test/Image1.cxx:151: error: expected initializer
> before ‘regi on’
> /usr/not-backed-up/test/Image1.cxx:153: error: ‘region’ was not declared
> in this scope
> /usr/not-backed-up/test/Image1.cxx:174: error: ‘image’ was not declared
> in this scope
> make[2]: *** [CMakeFiles/Image1.dir/Image1.o] Error 1
> make[1]: *** [CMakeFiles/Image1.dir/all] Error 2
> make: *** [all] Error 2
>
> I blv that this is PATH Problem ..........How i do set path as I 'm
> using Linux
>
>
>
>
>
> <html><DIV>
> <P><STRONG><FONT color=#0000ff>Saira Saleem Pathan</FONT></STRONG><IMG
> height=2 src="http://graphics.hotmail.com/greypixel.gif" width="100%"
> vspace=9></P>
> <P>Lecturer, Ph.D. Scholar</P>
> <P>Department of Computer System and Software
> Engineering Merhan
> Univeristy of Engineering and Technology,
> Pakistan.
> </P>
> <P>Contact: cell : 92-0333 2265249, office 92-022-2772250
> ext(4215)</P>
> <P>Email: <A
> href="mailto:sarakhanengr at gmail.com">sarakhanengr at gmail.com</A>, <A
> href="mailto:saira99cs07 at yahoo.com">saira99cs07 at yahoo.com</A></P>
> <P> </P>
> <P> </P></DIV></html>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list