[Insight-users] Error Duting execution...

Luis Ibanez luis.ibanez at kitware.com
Thu Oct 11 17:01:42 EDT 2007


Hi Rashmi,


The itkConfigure.h file is created by CMake based on the content
of the itkConfigure.h.in file.


It seems that the path where you installed ITK is too long:

   c:\documents and settings\user\desktop\
    itkconfig\insighttoolkit-3.4.0\insighttoolkit-3.4.0


Visual Studio has a limit on the lenght of the command lines that it
can process, and when you pass longer lines, it fails silently.

What might be happening in your case is that the list of directories
to search for header files is being truncated, so Visual Studio never
searches the actual directory where itkConfigure.h is located.

Please install the source code of ITK in a directory with a shorter
path.

For example:

                      C:\src\ITK

You should also use a short path for your binary build.

For example:

                      C:\bin\ITK



     Regards,



         Luis



-----------------------
rashmi vaidya wrote:
> Hello,
>  
> During Execution of an examle i got this errors, and i can't find 
> itkconfigure.h file, but the itkconfigure.h.in 
> <http://itkconfigure.h.in>, i include this file to the sample folder 
> then also gives error..and i also include the same itkindent.h.....
> but gives the errors as.... so please help
>  
>  
>  
>   Error 1 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 2 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 3 fatal error C1083: Cannot open include file: 'itkIndent.h': No 
> such file or directory 25 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkRGBPixel.h  
> Error 4 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkTransformFileReader.h 
>  
> Error 5 fatal error C1083: Cannot open include file: 'itkIndent.h': No 
> such file or directory 25 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkRGBPixel.h  
> Error 6 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 7 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 8 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 9 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 10 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 11 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 12 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 13 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 14 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 15 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 16 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 17 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 18 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 19 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 20 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 21 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 22 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 23 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 24 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 25 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> Error 26 fatal error C1083: Cannot open include file: 'itkConfigure.h': 
> No such file or directory 23 c:\documents and settings\user\desktop\itk 
> config\insighttoolkit-3.4.0\insighttoolkit-3.4.0\examples\io\itkWin32Header.h 
>  
> 
>  
>  
>  
> Thanks,
>  
> Rashmi
>  
>  
>  
> 
>  
> On 10/6/07, *Luis Ibanez* <luis.ibanez at kitware.com 
> <mailto:luis.ibanez at kitware.com>> wrote:
> 
> 
>     Hi Rashmi,
> 
>     You are probably attempting to run the project called "ALL_BUILD".
> 
>     This is not an executable, and that is the reason why Visual Studio
>     is asking you for an executable.
> 
>     What you should do is to look at the list of project that you have
>     in Visual Studio after you load the workspace (in VS6.0) or the
>     solution file (in VS 7.0, 7.0, 8.0) and select on of the other
>     project (not the ALL_BUILD) as the
> 
>                       "startup project"
> 
>     you do this by right-clicking on the project and selecting the option
>     in the popup menu that appears.
> 
> 
>     Again... Please read the tutorials.
> 
>     In particular the Getting Started tutorial.
>     http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/img0.html
>     <http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/img0.html>
> 
>     It will guide you step by step on how to do all this process.
> 
> 
>     If you continue experiencing problems after you follow the
>     instructions of the tutorials, then please post to this list
>     the CMakeLists.txt file of your project.
> 
> 
> 
>         Thanks,
> 
> 
>            Luis
> 
> 
> 
>     ----------------------
>     rashmi vaidya wrote:
>      >
>      > While i execute the itk project which is build after cmake
>     configure, is
>      > build sucessfully,
>      > after that when i was running the project then it ask for the name of
>      > the executable file.. i gave as name of project sollution.. it gives
>      > invalid...
>      >
>      > so what name i have to give here ..please help...
>      >
>      > Thanks,
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > Insight-users mailing list
>      > Insight-users at itk.org <mailto:Insight-users at itk.org>
>      > http://www.itk.org/mailman/listinfo/insight-users
> 
> 


More information about the Insight-users mailing list