[Insight-developers] VS linking error

Bill Lorensen bill.lorensen at gmail.com
Thu Jun 9 15:53:57 EDT 2011


I my old Dell it takes a very long time to configure...

On Thu, Jun 9, 2011 at 3:39 PM, Bradley Lowekamp <blowekamp at mail.nih.gov> wrote:
>
> On Jun 9, 2011, at 3:07 PM, Brad King wrote:
>
>> On 6/9/2011 2:42 PM, Bradley Lowekamp wrote:
>>> Looking at the following file path:
>>>
>>> '..\..\..\..\..\..\..\..\..\Users\blowekamp\Documents\Source\ITK\Modules\ThirdParty\GDCM\src\gdcm\Source\DataStructureAndEncodingDefinition\gdcmUNExplicitImplicitDataElement.cxx'
>>>
>>> I can't help but wonder if we should be using absolute paths and not
>>> relative. I wonder if there is a way to do that with CMake?
>>
>> CMake has a check before generating relative paths to ensure that no
>> sequence of "../" leaves the top build directory.  IIRC in this case it
>> actually is generating full paths.  At some point VS's build process
>> converts it to a relative path.  Then later it appends that relative
>> path to the current working directory such that the total exceeds its
>> maximum path length buffer even though the absolute path would not.  I
>> do not know if there is much CMake can do to work around this except
>> somehow detecting when it will happen and asking the user to choose a
>> shorter path.
>
> It may be just me on my windows system, but it seems to take quite a long time to configure and build ITK. So to let the user know that their path is not going to work without having to wait for all that to happen is a good thing. It may save hundreds of hours of people's time and reduce question on the mailing-list.
>
>
>
>>
>> -Brad K
>
>


More information about the Insight-developers mailing list