[ITK] [ITK-users] Problem compiling ITK for iOS
Jiri Sklenar
sklenarj at ohsu.edu
Thu Dec 17 17:03:51 EST 2015
Hi Matt,
I followed the instructions from “ITK on the iOS, Release 1.0" by Shabah et al
-downloaded InsightToolkit 4.8.2 from Kitware website
-downloaded and installed CMake App
In CMakeLists.txt:
- could not find lines 529 and 540 to comment out as instructed
- took a chance and commented out lines 210 and 211 instead (guessing they serve the same purpose)
-found the file 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
Downloaded Xcode 7.2
Started CMake and specified the source and binary directories for ITK
ran configuration once
disabled “BUILD_EXAMPLES”
did not change anything else
ran configuration again
ran generation
Opened XCode project in the ITK binary directory, and built successfully for OSX,
Then it became little more complicated:
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)
2. Removed dependancies for the ALL_BUILT target on itkmkg3states and itkTestDriver
3. removed dependancy of the target itktiff on itkmkg3states
4. compiled with error message related to ITK_bld_internal_H5make_libsettings
XCode changed a bit since the Shabah’s paper was last published, I could not follow the instructions literally to accomplish required tasks.
Thank you for your help,
Jiri
Jiri Sklenar, Ph.D.
Research Associate Professor
Knight Cardiovascular Institute
Oregon Health & Science University
Portland, Oregon 97239
[cid:2AD48BF8-B86A-49ED-90D6-46A29E8DAB46 at ohsu.edu]
On Dec 17, 2015, at 1:00 PM, Matt McCormick <matt.mccormick at kitware.com<mailto:matt.mccormick at kitware.com>> wrote:
Hi Jiri,
Could you please list the steps you took to perform the build?
Thanks,
Matt
On Thu, Dec 17, 2015 at 3:27 PM, Jiri Sklenar <sklenarj at ohsu.edu<mailto:sklenarj at ohsu.edu>> wrote:
I successfully compiled ITK 4.8.2 for OS X 10.10.5, but not for iOS 9.2, using Xcode 7.2.
The error I’m getting is:
ITK_bld_internal_H5make_libsettings
"Target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphonesimulator’ platform"
<Screen Shot 2015-12-17 at 12.21.40 PM.png>
Thanks for any help/suggestion.
Jiri
_____________________________________
Powered by www.kitware.com<http://www.kitware.com/>
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20151217/5606b2c1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 6791 bytes
Desc: image003.jpg
URL: <http://public.kitware.com/pipermail/community/attachments/20151217/5606b2c1/attachment-0001.jpg>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list