<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Brad,<br>
    <br>
    I've had a closer look at CMakeCache.txt for the ITK-4.2.0 build and
    it turned out there were a couple blank cache values, which I can't
    explain:<br>
    <br>
    //CHECK_TYPE_SIZE: int unknown<br>
    SIZEOF_INT:INTERNAL=<br>
    //CHECK_TYPE_SIZE: long unknown<br>
    SIZEOF_LONG:INTERNAL=<br>
    <br>
    I decided to run CMake from scratch and this time (with the same
    settings as before) those cache values in CMakeCache.txt appear to
    have correct values:<br>
    <br>
    //CHECK_TYPE_SIZE: sizeof(int)<br>
    SIZEOF_INT:INTERNAL=4<br>
    //CHECK_TYPE_SIZE: sizeof(long)<br>
    SIZEOF_LONG:INTERNAL=4<br>
    <br>
    So in this case the file&nbsp; &lt;ITK-4.2.0 Build <br>
    Path&gt;\Modules\ThirdParty\TIFF\src\itktiff\tif_config.h dig
    generate correctly. Very strange, but maybe the first time there
    were some errors during configuration I didn't spot. I've actually
    noticed a number of times a bit of "indeterministic" behaviour
    during configuration and especially build process on Windows (XP,
    Vista), when some tasks which are run by VS as *.bat files fail
    occasionally, but when re-run they complete just fine.<br>
    <br>
    Regarding the other build errors I reported earlier, I'm recompiling
    everything with patch suggested by Matt McCormick: <a
      class="moz-txt-link-freetext"
      href="http://review.source.kitware.com/#/c/5300/">http://review.source.kitware.com/#/c/5300/</a><br>
    <pre wrap="">I'll report what transpires then.

Many thanks,
Constantine


</pre>
    <div class="moz-cite-prefix">On 26/07/2012 13:42, Bradley Lowekamp
      wrote:<br>
    </div>
    <blockquote
      cite="mid:FB348C8A-E491-42CD-AF45-0EA31AD7979D@mail.nih.gov"
      type="cite">Hello Constantine,
      <div><br>
      </div>
      <div>We have several nightly build for Visual Studio 9 2008, with
        a few different configurations. For example here is one I run
        each night:</div>
      <div><br>
      </div>
      <div><a moz-do-not-send="true"
          href="http://open.cdash.org/buildSummary.php?buildid=2468166">http://open.cdash.org/buildSummary.php?buildid=2468166</a></div>
      <div><br>
      </div>
      <div>And this is it's configuration:</div>
      <div><br>
      </div>
      <div><a moz-do-not-send="true"
          href="http://open.cdash.org/viewNotes.php?buildid=2468166">http://open.cdash.org/viewNotes.php?buildid=2468166</a></div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Are you running with SP1?</div>
      <div><br>
      </div>
      <div>What configuration options did you choose? Are you building
        64-bits? Did you enable 64-bit IDS?</div>
      <div><br>
      </div>
      <div>Brad</div>
      <div><br>
        <div>
          <div>On Jul 26, 2012, at 7:55 AM, Constantine Zakkaroff wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <div>Hello ALL.<br>
              <br>
              I've been trying to build ITK 4.2 on Win Vista with
              VS2008.<br>
              <br>
              Then there were a couple errors, repeated a few times:<br>
              <br>
              error C2665: 'itk::NumericTraits&lt;T&gt;::ZeroValue' :
              none of the 2 <br>
              overloads could convert all the argument types <br>
              c:\workspace\insighttoolkit-4.2.0\modules\core\imagefunction\include\itkVectorMeanImageFunction.hxx
              <br>
              90<br>
              error C2665: 'itk::NumericTraits&lt;T&gt;::GetLength' :
              none of the 2 <br>
              overloads could convert all the argument types <br>
              c:\workspace\insighttoolkit-4.2.0\modules\core\imagefunction\include\itkVectorMeanImageFunction.hxx
              <br>
              99<br>
              <br>
              and<br>
              <br>
              error C2668: 'fabs' : ambiguous call to overloaded
              function <br>
              c:\workspace\insighttoolkit-4.2.0\modules\filtering\distancemap\include\itkIsoContourDistanceImageFilter.hxx
              <br>
              383<br>
              error C2668: 'fabs' : ambiguous call to overloaded
              function <br>
              c:\workspace\insighttoolkit-4.2.0\modules\filtering\distancemap\include\itkIsoContourDistanceImageFilter.hxx
              <br>
              387<br>
              error C2668: 'fabs' : ambiguous call to overloaded
              function<br>
              <br>
              I looked at the code and those weren't hard to fix. I
              corrected those <br>
              and they don't come up any more.<br>
              <br>
              However itktiff project build fails because the file
              &lt;ITK-4.2.0 Build <br>
              Path&gt;\Modules\ThirdParty\TIFF\src\itktiff\tif_config.h
              doesn't get <br>
              generated correctly; type sizes don't get defined and
              remain blank.<br>
              <br>
              For example:<br>
              <br>
              297: #define SIZEOF_UNSIGNED_INT<br>
              ...<br>
              300: #define SIZEOF_UNSIGNED_LONG<br>
              <br>
              How do I go about fixing this? Any suggestions would be
              appreciated.<br>
              <br>
              Regards,<br>
              Constantine<br>
              <br>
              _____________________________________<br>
              Powered by <a moz-do-not-send="true"
                href="http://www.kitware.com">www.kitware.com</a><br>
              <br>
              Visit other Kitware open-source projects at<br>
              <a moz-do-not-send="true"
                href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
              <br>
              Kitware offers ITK Training Courses, for more information
              visit:<br>
              <a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br>
              <br>
              Please keep messages on-topic and check the ITK FAQ at:<br>
              <a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>
              <br>
              Follow this link to subscribe/unsubscribe:<br>
              <a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>
            </div>
          </blockquote>
        </div>
        <br>
        <div>
          <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
            -webkit-line-break: after-white-space; font-size: 12px; "><span
              class="Apple-style-span" style="border-collapse: separate;
              -webkit-border-horizontal-spacing: 0px;
              -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0);
              font-family: Helvetica; font-size: 12px; font-style:
              normal; font-variant: normal; font-weight: normal;
              letter-spacing: normal; line-height: normal;
              -webkit-text-decorations-in-effect: none; text-indent:
              0px; -webkit-text-size-adjust: auto; text-transform: none;
              orphans: 2; white-space: normal; widows: 2; word-spacing:
              0px; ">
              <p style="margin-top: 0px; margin-right: 0px;
                margin-bottom: 0px; margin-left: 0px; "><font
                  style="font: normal normal normal 12px/normal
                  Helvetica; " face="Helvetica" size="3">========================================================</font></p>
              <p style="margin-top: 0px; margin-right: 0px;
                margin-bottom: 0px; margin-left: 0px; "><font
                  style="font: normal normal normal 12px/normal
                  Helvetica; " face="Helvetica" size="3">Bradley
                  Lowekamp<span class="Apple-converted-space">&nbsp;</span><span
                    class="Apple-converted-space">&nbsp;</span></font></p>
              <p style="margin-top: 0px; margin-right: 0px;
                margin-bottom: 0px; margin-left: 0px; "><font
                  style="font: normal normal normal 12px/normal
                  Helvetica; " face="Helvetica" size="3">Medical Science
                  and Computing for</font></p>
              <p style="margin-top: 0px; margin-right: 0px;
                margin-bottom: 0px; margin-left: 0px; "><font
                  style="font: normal normal normal 12px/normal
                  Helvetica; " face="Helvetica" size="3">Office of High
                  Performance Computing and Communications</font></p>
              <p style="margin-top: 0px; margin-right: 0px;
                margin-bottom: 0px; margin-left: 0px; "><font
                  style="font: normal normal normal 12px/normal
                  Helvetica; " face="Helvetica" size="3">National
                  Library of Medicine<span class="Apple-converted-space">&nbsp;</span></font></p>
              <p style="margin-top: 0px; margin-right: 0px;
                margin-bottom: 0px; margin-left: 0px; "><font
                  style="font: normal normal normal 12px/normal
                  Helvetica; " face="Helvetica" size="3"><a
                    moz-do-not-send="true"
                    href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p>
              <br class="Apple-interchange-newline">
            </span></div>
          <br class="Apple-interchange-newline">
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>