[Insight-developers] problem in debugging ITK source code
Luis Ibanez
luis.ibanez at kitware.com
Fri May 20 09:43:36 EDT 2011
Hi John,
You are missing to include in your Visual Studio
project all the paths where ITK files are installed.
When you configure a project without CMake
you need to add about ten paths for VXL headers.
---
Did you follow the instructions I gave you yesterday ?
Did you install ITK ?
Did you use the Flat installation directory option from CMake ?
-----
The reason for using CMake for configuring the code of ITK
(...and VTK, ParaView, KDE, Second Life, WoW, MySQL...)
http://www.cmake.org/cmake/project/success.html
is to avoid the very problem that you are facing:
"Having to manually setup the set of include directories,
and libraries needed by a visual studio project."
Without CMake, you will notice that after painstakingly
configuring all those VS project settings, you will have
to do that again manually in any other computer where
you attempt to build your software
With CMake you will be done with the configuration in
a matter of minutes, and it will be portable to other
machines, and other platforms.
Luis
----------------------------------
On Fri, May 20, 2011 at 7:18 AM, john smith
<mkinsightdeveloper at gmail.com> wrote:
> Hello,
>
> I am using windows 7 and visual studio 2010, and so far I had being using
> Cmake to run my ITK's projects. But now I am trying to find the ITK's
> headers file (.h) from visual studio 2010. I have srarted to include my
> basic header files (for example smthing like these files "ITKImage.h" and
> "ITKImageFileReader.h"), but every time I was debugging my code, I found a
> new bug error. This error had to do with .h files declarartion (for example
> there wasn't any source file "'vnl/vnl_config.h", and I should put in its
> place the "vnl_config.h" ). I corrected many of this bugs but I didn't
> manage to finally correct all the source coe, because I think all of these
> changes destroyed my source code.
>
> I would like to know what is the reason of using Cmake to run the ITK code?
> Has it to do with this problem that I had faced?
>
> Thanks
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
>
More information about the Insight-developers
mailing list