<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-CH" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi Brad,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thank you for your help!
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">We have unchecked the
</span><span lang="EN-US">CMAKE_USE_RELATIVE_PATHS </span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">so case 1) is fixed. However, we still get the error. We are not in case 2) either, since the relative path
 with \.. is matching with the build tree.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">We have tried to change the flag from the ITK project to zero CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=0, but it did not help either. We still
 get a lot of the relative path stuff \..\. You can take a look at the error below.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I am compiling on VS 2005. And, I have seen it has a bug with big relative path strings. I was wondering if the 2008 had this bug fixed?!! Would
 you have any other suggestion??<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thank you in advance!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thiago<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;------ Build started: Project: gdcmDSED, Configuration: Debug Win32 ------<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;Compiling...<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;gdcmVR16ExplicitDataElement.cxx<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\..\..\..\..\ITK\Modules\ThirdParty\GDCM\src\gdcm\Source\DataStructureAndEncodingDefinition\gdcmVR16ExplicitDataElement.cxx':
 No such file or directory<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;gdcmExplicitImplicitDataElement.cxx<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\..\..\..\..\ITK\Modules\ThirdParty\GDCM\src\gdcm\Source\DataStructureAndEncodingDefinition\gdcmExplicitImplicitDataElement.cxx':
 No such file or directory<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;gdcmCP246ExplicitDataElement.cxx<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\..\..\..\..\ITK\Modules\ThirdParty\GDCM\src\gdcm\Source\DataStructureAndEncodingDefinition\gdcmCP246ExplicitDataElement.cxx':
 No such file or directory<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;gdcmUNExplicitImplicitDataElement.cxx<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\..\..\..\..\ITK\Modules\ThirdParty\GDCM\src\gdcm\Source\DataStructureAndEncodingDefinition\gdcmUNExplicitImplicitDataElement.cxx':
 No such file or directory<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;Generating Code...<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;Build log was saved at &quot;file://d:\Libraries\CrisalixGit\ExternalProject\ITK-build\Modules\ThirdParty\GDCM\src\gdcm\Source\DataStructureAndEncodingDefinition\gdcmDSED.dir\Debug\BuildLog.htm&quot;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">1&gt;gdcmDSED - 4 error(s), 0 warning(s)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">2&gt;------ Build started: Project: itkTestDriver, Configuration: Debug Win32 ------<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">2&gt;Performing Pre-Link Event...<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">2&gt;Linking...<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">2&gt;LINK : fatal error LNK1104: cannot open file '..\..\..\..\lib\Debug\itkgdcmDSED-4.2.lib'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">2&gt;Build log was saved at &quot;file://d:\Libraries\CrisalixGit\ExternalProject\ITK-build\Modules\Core\TestKernel\src\itkTestDriver.dir\Debug\BuildLog.htm&quot;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">2&gt;itkTestDriver - 1 error(s), 0 warning(s)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">3&gt;------ Skipped Build: Project: ITKHeaderTests, Configuration: Debug Win32 ------<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">3&gt;Project not selected to build for this solution configuration
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">4&gt;------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">4&gt;Project not selected to build for this solution configuration
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">5&gt;------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">5&gt;Project not selected to build for this solution configuration
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;">========== Build: 0 succeeded, 2 failed, 211 up-to-date, 3 skipped ==========</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Arnaud Gelas [mailto:arnaudgelas@gmail.com]
<br>
<b>Sent:</b> Montag, 18. Juni 2012 17:24<br>
<b>To:</b> Brad King<br>
<b>Cc:</b> Insight-developers@itk.org; Oliveira Dos Santos, Thiago (ISTB)<br>
<b>Subject:</b> Re: [Insight-developers] compilation error with msvc 8.0<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Brad,<br>
<br>
We were in the case 1) and we wrongly assumed that was also fixed for previous versions of microsoft visual studio.<br>
<br>
We are now recompiling by turning OFF CMAKE_USE_RELATIVE_PATHS.<br>
<br>
Thanks for the link with respect to the VS 10 issues, interesting to learn about it!<br>
<br>
Thanks,<br>
Arnaud<o:p></o:p></p>
<div>
<p class="MsoNormal">On Mon, Jun 18, 2012 at 5:00 PM, Brad King &lt;<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>&gt; wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">On 06/18/2012 09:40 AM, Arnaud Gelas wrote:<br>
&gt; &nbsp; &nbsp; &nbsp;<a href="http://www.itk.org/pipermail/insight-developers/2011-March/017812.html" target="_blank">http://www.itk.org/pipermail/insight-developers/2011-March/017812.html</a><br>
&gt;<br>
&gt; These errors occurred with a recent version of cmake (2.8.8), so I am a<br>
&gt; little confused here.<o:p></o:p></p>
</div>
<p class="MsoNormal">The underlying problem is that VS does this with a relative path:<br>
<br>
&nbsp;c:\path\to\directory\with\project\file\..\..\..\relative\path\on\top\of\that\to\source.cpp<br>
<br>
and then fails when the total string is over 250 characters or so<br>
even though the collapsed full path would be well under the limit.<br>
<br>
This is only a problem when CMake stores relative paths in the<br>
project files, but we normally prefer full paths. &nbsp;AFAIK for<br>
VS 8 CMake stores relative paths under only two circumstances:<br>
<br>
(1) The unsupported option CMAKE_USE_RELATIVE_PATHS is on.<br>
<br>
(2) The sequence of &quot;..\&quot; is not long enough to escape the<br>
&nbsp; &nbsp;top-level of the build tree (CMAKE_BINARY_DIR).<br>
<br>
Is either of these the case for your build?<br>
<br>
----------------------------------------------------------------------<br>
FYI, the fix referenced in the thread you linked was for VS 10 only:<br>
<br>
&nbsp;<a href="http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ed0075bd" target="_blank">http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ed0075bd</a><br>
<br>
There is a lot more to it as covered here:<br>
<br>
&nbsp;<a href="http://www.cmake.org/Bug/view.php?id=12570" target="_blank">http://www.cmake.org/Bug/view.php?id=12570</a><br>
<br>
but that should not affect VS 8. &nbsp;There is extra trouble with VS 10<br>
because it has one bug for relative paths and another bug for full<br>
paths.<br>
<span style="color:#888888"><br>
<span class="hoenzb">-Brad</span></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" style="color:#A0A0A0" align="center">
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">eMail ist virenfrei.<br>
Von AVG überprüft - <a href="http://www.avg.de">www.avg.de</a><br>
Version: 2012.0.2177 / Virendatenbank: 2433/5076 - Ausgabedatum: 17.06.2012 <o:p>
</o:p></p>
</div>
</body>
</html>