[Insight-users] Insight Applications Problem : Directory name
too long.
Luis Ibanez
luis . ibanez at kitware . com
Fri, 07 Nov 2003 10:41:49 -0500
Hi Robert,
Here is a possible suspect for being the source
of the problem that you are facing while building
SNAP in InsightApplications.
The list of directories that get set in the
include_path is quite large for this particular
application. In you SNAP.dsp file, the full
string has 4541 characters. In the SNAP.dsp
file that is working fine in "terminus.kitware"
the string is only 3007 characters. The differences
arise from the length of the directory name where
the source code is located.
In our case this directory is:
G:\src\InsightApplications
in your case it is
G:\Nieuwe versie software\InsightAppolications-1.4.0
Since this string is replicated about 50 times
(for each one of the paths), the full include-path
has about 1500 character more in your case.
The problem is that the compiler, instead of complaining
for this string being too long, is simply ignoring (or
truncating) the last part of the string. Therefore missing
some of the directories you actually have to visit in order
to find all the necessary header files. That results in
the compilation errors:
fatal error C1083:
Cannot open include file: 'UserInterfaceLogic.h':
No such file or directory
So, the solution is to install the source code in
another directory with a shorter name. (28 characters
is the length in our case, so that's certainly a
safe limit).
I'm making the wild guess that the actual limit in the
total path length is 4096 characters. Just because this
is a power of two. But,... it may well be that somebody
at the Visual Studio development team found another number
to be more appealing....
If the guess is correct, you could in principle go with
directory names that are up to 48 characters in length.
There is one way to know... :-)
Note that the include_path is composed by directories
comming from both "Insight" and "InsightApplications",
so, make sure that both of them are located in short
named directories.
Please let us know if that works for you,
Thanks
Luis
------------------------------
Robert-Paul Buitendijk wrote:
> Hi Luis
>
> I'm using Cmake 1.6 patch 7
> the Snap.dsp file is attached
>
> Best regards,
> Robert
>
> -----Oorspronkelijk bericht-----
> Van: insight-users-admin at itk . org
> [mailto:insight-users-admin at itk . org]Namens Luis Ibanez
> Verzonden: donderdag 6 november 2003 0:06
> Aan: Robert-Paul Buitendijk
> CC: Insight-users at public . kitware . com
> Onderwerp: Re: [Insight-users] Insight Applications Problem : CMake
> version
>
>
>
> Hi Robert,
>
> This is growing to the state of a mistery...
>
> Please send me the .dsp file project created
> for SNAP in InsightApplications.
>
> Also,
> please let us know of the version of
> CMake that you are using.
>
> --
>
> Did you succeed building any of the other
> applications in InsightApplications ?
>
>
>
> Thanks
>
>
> Luis
>
>
> --------------------------------
>
> Robert-Paul Buitendijk wrote:
>
>>hi Luis
>>
>>here is the CMakeCache
>>
>>Robert
>>
>>-----Oorspronkelijk bericht-----
>>Van: Luis Ibanez [mailto:luis . ibanez at kitware . com]
>>Verzonden: dinsdag 4 november 2003 23:22
>>Aan: Robert-Paul Buitendijk
>>CC: Insight-users at public . kitware . com
>>Onderwerp: Re: [Insight-users] Insight Applications Problem
>>
>>
>>
>>Hi Robert,
>>
>>You seem to have a problem in the process of
>>configuring InsightApplications using CMake.
>>
>>Please post the CMakeCache.txt file that
>>CMake generated in the binary directory
>>where you are building the applications.
>>
>>
>>Thanks.
>>
>>
>> Luis
>>
>>
>>------------------------
>>
>>Robert-Paul Buitendijk wrote:
>>
>>
>>>Hi Luis
>>>
>>>Applications was allready running from the top. but i removed the binary
>>
>>and
>>
>>
>>>tried it again.
>>>The errors state that there are files missing , but that isn't the case
>>
>>the
>>
>>
>>>files there.
>>>how is this possible.
>>>
>>>
>>>
>>>-----Oorspronkelijk bericht-----
>>>Van: insight-users-admin at itk . org
>>>[mailto:insight-users-admin at itk . org]Namens Luis Ibanez
>>>Verzonden: woensdag 29 oktober 2003 1:04
>>>Aan: Robert-Paul Buitendijk
>>>CC: insight-users at itk . org
>>>Onderwerp: Re: [Insight-users] Insight Applications Problem
>>>
>>>
>>>
>>>Hi Robert,
>>>
>>>The files that your VC++ project is failing to find are in the
>>>directory
>>>
>>> InsightApplications/SNAP/UserInterface/MainComponents
>>>
>>>
>>>It seems that your project has a configuration problem.
>>>
>>>
>>>It looks like you are running CMake in one of the subdirectories
>>>of InsightApplications instead of running it from the top
>>>directory.
>>>
>>>All the applications are configured to be build from the top
>>>InsightApplications directory.
>>>
>>>
>>>Please remove the binary tree where you are builnd InsightApplications
>>>and restart from a fresh configuration with CMake, this time providing
>>>the top InsightApplications directory as the "source" directory.
>>>
>>>
>>>Regards,
>>>
>>>
>>> Luis
>>>
>>>
>>>
>>>--------------------------------
>>>Robert-Paul Buitendijk wrote:
>>>
>>>
>>>
>>>>Hi everyone,
>>>>
>>>>I allready posted this problem but haven't got an answer till to day.
>>>>So a repost.
>>>>
>>>>Insight Applications has a problem when compiling.
>>>>The error is in the Snap directory.
>>>>
>>>>error file is attached.
>>>>
>>>>Tnx Robert
>>>>
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>--------------------Configuration: SNAP - Win32 Debug--------------------
>>>>Compiling...
>>>>IRISApplication.cxx
>>>>G:\Nieuwe versie
>>>
>>>
> software\InsightApplications-1.4.0\SNAP\Logic\Framework\IRISApplication.cxx(
>
>>>20) : fatal error C1083: Cannot open include file: 'UserInterfaceLogic.h':
>>>No such file or directory
>>>
>>>
>>>
>>>>PreprocessingUILogic.cxx
>>>>G:\Nieuwe versie software\ItkAppBin\SNAP\UserInterface.h(22) : fatal
>>>
> error
>
>>>C1083: Cannot open include file: 'IRISSliceWindow.h': No such file or
>>>directory
>>>
>>>
>>>
>>>>UserInterfaceLogic.cxx
>>>>G:\Nieuwe versie software\ItkAppBin\SNAP\UserInterface.h(22) : fatal
>>>
> error
>
>>>C1083: Cannot open include file: 'IRISSliceWindow.h': No such file or
>>>directory
>>>
>>>
>>>
>>>>SNAPMain.cxx
>>>>G:\Nieuwe versie
>>>
>>>software\InsightApplications-1.4.0\SNAP\UserInterface\SNAPMain.cxx(18) :
>>>fatal error C1083: Cannot open include file: 'UserInterfaceLogic.h': No
>>
>>such
>>
>>
>>>file or directory
>>>
>>>
>>>
>>>>BubblesInteractionMode.cxx
>>>>G:\Nieuwe versie
>>>
>>>
> software\InsightApplications-1.4.0\SNAP\UserInterface\SliceWindow\BubblesInt
>
>>>eractionMode.cxx(20) : fatal error C1083: Cannot open include file:
>>>'UserInterfaceLogic.h': No such file or directory
>>>
>>>
>>>
>>>>CrosshairsInteractionMode.cxx
>>>>G:\Nieuwe versie
>>>
>>>
> software\InsightApplications-1.4.0\SNAP\UserInterface\SliceWindow\Crosshairs
>
>>>InteractionMode.cxx(18) : fatal error C1083: Cannot open include file:
>>>'UserInterfaceLogic.h': No such file or directory
>>>
>>>
>>>
>>>>GenericSliceWindow.cxx
>>>>G:\Nieuwe versie
>>>
>>>
> software\InsightApplications-1.4.0\SNAP\UserInterface\SliceWindow\GenericSli
>
>>>ceWindow.cxx(22) : fatal error C1083: Cannot open include file:
>>>'UserInterfaceLogic.h': No such file or directory
>>>
>>>
>>>
>>>>IRISSliceWindow.cxx
>>>>G:\Nieuwe versie
>>>
>>>
> software\InsightApplications-1.4.0\SNAP\UserInterface\SliceWindow\IRISSliceW
>
>>>indow.cxx(21) : fatal error C1083: Cannot open include file:
>>>'UserInterfaceLogic.h': No such file or directory
>>>
>>>
>>>
>>>>PolygonInteractionMode.cxx
>>>>G:\Nieuwe versie
>>>
>>>
> software\InsightApplications-1.4.0\SNAP\UserInterface\SliceWindow\PolygonInt
>
>>>eractionMode.cxx(19) : fatal error C1083: Cannot open include file:
>>>'UserInterfaceLogic.h': No such file or directory
>>>
>>>
>>>
>>>>RegionInteractionMode.cxx
>>>>G:\Nieuwe versie
>>>
>>>
> software\InsightApplications-1.4.0\SNAP\UserInterface\SliceWindow\RegionInte
>
>>>ractionMode.cxx(20) : fatal error C1083: Cannot open include file:
>>>'UserInterfaceLogic.h': No such file or directory
>>>
>>>
>>>
>>>>Window3D.cxx
>>>>G:\Nieuwe versie
>>>
>>>
> software\InsightApplications-1.4.0\SNAP\UserInterface\Window3D\Window3D.cxx(
>
>>>18) : fatal error C1083: Cannot open include file: 'UserInterfaceLogic.h':
>>>No such file or directory
>>>
>>>
>>>
>>>>ImageIOWizard.cxx
>>>>G:/Nieuwe versie software/ItkAppBin/SNAP/ImageIOWizard.h(7) : fatal error
>>>
>>>C1083: Cannot open include file: 'ImageIOWizardBase.h': No such file or
>>>directory
>>>
>>>
>>>
>>>>IntensityCurveUI.cxx
>>>>G:/Nieuwe versie software/ItkAppBin/SNAP/IntensityCurveUI.h(7) : fatal
>>>
>>>error C1083: Cannot open include file: 'IntensityCurveUIBase.h': No such
>>>file or directory
>>>
>>>
>>>
>>>>PreprocessingUI.cxx
>>>>G:/Nieuwe versie software/ItkAppBin/SNAP/PreprocessingUI.h(7) : fatal
>>>
>>>error C1083: Cannot open include file: 'PreprocessingUIBase.h': No such
>>
>>file
>>
>>
>>>or directory
>>>
>>>
>>>
>>>>UserInterface.cxx
>>>>G:/Nieuwe versie software/ItkAppBin/SNAP/UserInterface.h(11) : fatal
>>>
> error
>
>>>C1083: Cannot open include file: 'UserInterfaceBase.h': No such file or
>>>directory
>>>
>>>
>>>
>>>>Generating Code...
>>>>Error executing cl.exe.
>>>>
>>>>ALL_BUILD - 15 error(s), 0 warning(s)
>>>
>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk . org
>>>http://www . itk . org/mailman/listinfo/insight-users
>>>
>>
>>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>