<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Hi Matt,</div>
<div class=""><br class="">
</div>
I followed the instructions from “ITK on the iOS, Release 1.0" by Shabah et al
<div class="">-downloaded InsightToolkit 4.8.2 from Kitware website </div>
<div class="">-downloaded and installed  CMake App <br class="">
<div apple-content-edited="true" class="">
<div style="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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="orphans: 2; widows: 2;" class=""><br class="">
</span></div>
<div style="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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="orphans: 2; widows: 2;" class="">In CMakeLists.txt:</span></div>
<div style="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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="orphans: 2; widows: 2;" class="">  - could not find lines 529 and 540 to comment out as instructed</span></div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
<span style="orphans: 2; widows: 2;" class="">  - took a chance and commented out lines 210 and 211 instead  (guessing they serve the same purpose)</span></div>
<div style="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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="orphans: 2; widows: 2;" class=""><br class="">
</span></div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
<span style="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; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: 2; widows: 2;" class="">-found
 the file </span>vml_math.cxx (in a different directory then specified in the instructions), and added the line “#define finite(x) __inline_isfinited((double)x)” after line 77</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
<br class="">
</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
Downloaded Xcode 7.2</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
<br class="">
</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
Started CMake and specified the source and binary directories for ITK </div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
ran configuration once</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
disabled “BUILD_EXAMPLES”</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
did not change anything else</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
ran configuration again</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
ran generation</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
<br class="">
</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
Opened XCode project in the ITK binary directory, and built successfully for OSX, </div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
<br class="">
</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
Then it became little more complicated:</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
1. changed to Base SDK to “Latest iOS (iOS 9.2)  -> this resulted in “Standard architectures (armv7, arm64) (? is this the problem, the instructions speciified armv6 and armv7)</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
2. Removed dependancies for the ALL_BUILT target on itkmkg3states and itkTestDriver</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
3. removed dependancy of the target itktiff on itkmkg3states</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
4. compiled with error message related to ITK_bld_internal_H5make_libsettings</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
<br class="">
</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
XCode changed a bit since the Shabah’s paper was last published, I could not follow the instructions literally to accomplish required tasks.</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
<br class="">
</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
Thank you for your help,</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
<br class="">
</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
Jiri</div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto;" class="">
<br class="">
</div>
<div style="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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="orphans: 2; widows: 2;" class=""><br class="Apple-interchange-newline">
Jiri Sklenar, Ph.D.</span><br style="orphans: 2; widows: 2;" class="">
<span style="orphans: 2; widows: 2;" class="">Research Associate Professor</span><br style="orphans: 2; widows: 2;" class="">
<span style="orphans: 2; widows: 2;" class="">Knight Cardiovascular Institute</span><br style="orphans: 2; widows: 2;" class="">
<span style="orphans: 2; widows: 2;" class="">Oregon Health & Science University</span><br style="orphans: 2; widows: 2;" class="">
<span style="orphans: 2; widows: 2;" class="">Portland, Oregon 97239</span><br style="orphans: 2; widows: 2;" class="">
<br class="">
</div>
<br class="Apple-interchange-newline">
<span><img height="102" width="357" apple-inline="yes" id="9F77B169-CDBC-4410-879A-BD51973C25F7" apple-width="yes" apple-height="yes" src="cid:2AD48BF8-B86A-49ED-90D6-46A29E8DAB46@ohsu.edu" class=""></span>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Dec 17, 2015, at 1:00 PM, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com" class="">matt.mccormick@kitware.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi Jiri,
<div class=""><br class="">
</div>
<div class="">Could you please list the steps you took to perform the build?</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Matt</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Thu, Dec 17, 2015 at 3:27 PM, Jiri Sklenar <span dir="ltr" class="">
<<a href="mailto:sklenarj@ohsu.edu" target="_blank" class="">sklenarj@ohsu.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">I successfully compiled ITK 4.8.2 for OS X 10.10.5, but not for iOS 9.2, using Xcode 7.2.<br class="">
<div class="">The error I’m getting is:</div>
<div class=""><br class="">
</div>
<div class="">ITK_bld_internal_H5make_libsettings</div>
<div class="">
<div class="">
<div style="text-align:start;text-indent:0px" class=""><span class="">"Target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphonesimulator’ platform"</span></div>
<div style="text-align:start;text-indent:0px" class=""><span class=""><br class="">
</span></div>
<div style="text-align:start;text-indent:0px" class=""><span id="cid:3630B6DF-429E-4D9F-A015-AB5CC96F845E@ohsu.edu"><Screen Shot 2015-12-17 at 12.21.40 PM.png></span></div>
<div style="text-align:start;text-indent:0px" class=""><br class="">
</div>
<div style="text-align:start;text-indent:0px" class="">Thanks for any help/suggestion.</div>
<span class="HOEnZb"><font color="#888888" class="">
<div style="text-align:start;text-indent:0px" class=""><br class="">
</div>
<div style="text-align:start;text-indent:0px" class="">Jiri</div>
<div style="text-align:start;text-indent:0px" class=""><span class=""><br class="">
</span></div>
<div style="text-align:start;text-indent:0px" class=""><span class=""><br class="">
</span></div>
<br class="">
<br class="">
</font></span></div>
<br class="">
</div>
</div>
<br class="">
_____________________________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">
www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at<br class="">
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Kitware offers ITK Training Courses, for more information visit:<br class="">
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank" class="">http://www.kitware.com/products/protraining.php</a><br class="">
<br class="">
Please keep messages on-topic and check the ITK FAQ at:<br class="">
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank" class="">http://www.itk.org/Wiki/ITK_FAQ</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank" class="">http://public.kitware.com/mailman/listinfo/insight-users</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>