[Insight-users] Adding the address of ITK folders to the search path of VC++
Luis Ibanez
luis.ibanez at kitware.com
Sat Jun 28 22:00:15 EDT 2008
Hi Hadi,
Please read the introductory chapters of the ITK Software Guide.
http://www.itk.org/ItkSoftwareGuide.pdf
in particular the section 2.2.1, "Hello world".
You should also read the Tutorial sessions:
http://www.itk.org/HTML/Tutorials.htm
in particular:
http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/img27.html
and
http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/img35.html
http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/img36.html
You need to:
1) Copy the Image1.cxx file to a directory
outside of the ITK source tree.
2) Write a CMakeLists.txt for your project,
following the instructions ofthe tutorials above
3) Run CMake, and generate the project files in a
binary directory
4) Build your project
Please follow the instructions of the Software Guide
and the Tutorials in the correct order. That will save
you a lot of time.
Regards,
Luis
-----------------------
Hadi Hadizadeh wrote:
> Hi,
> I want to compile Image1.ccx in ITK/Examples/Image/ . This code needs
> "itkImage.h" :
>
> #include<itkImage.h>
> void main(){
> ..... other instructions
> }
>
> But the problem is that when I compile (Build) this file, the compiler
> can't find "itkImage.h".To remedy this problem I tried to add
> ITK/Code/Common to the search path of VC++ (v.6) in
> Tools->Options->Directories. But when I recompile it, this time the
> compiler cann't find anothe file. I tried to add the path of that file,
> too. But it seems that there are many other files that must be added to
> the search path. But how can I add automatically the address of all
> necessary folder to the search path of VC++. What do you think? Thanks
> BRs,
> Hadi
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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