<div dir="ltr"><div>Jon,</div><div><br></div><div>I have no tried arm64 so I do not know where the problem is. A couple of thoughts to try:</div><div><br></div>You might try increasing the iphoneos-version-min to 7.0 maybe thats needed to support arm64. This stackoverflow entry <a href="http://stackoverflow.com/questions/18913906/xcode-5-and-ios-7-architecture-and-valid-architectures">http://stackoverflow.com/questions/18913906/xcode-5-and-ios-7-architecture-and-valid-architectures</a> seems to indicate you need to set a minimum of 6.0 for arm64 support.<div>
<br></div><div>If you can disable libarchive and libcurl for the arm64 test we could eliminate those as variables. </div><div><br></div><div>Try a serial build "make -j1" so that the error is the last output.</div>
<div><br></div><div>Let us know what you find out</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 11:59 AM, Jon Chmura <span dir="ltr"><<a href="mailto:jon.chmura@me.com" target="_blank">jon.chmura@me.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Casey,</div><div><br></div><div>Thanks for the quick reply. I wasn’t able to build with arm64. I checked out a new copy of VES. Modified to add arm64 (see git diff)</div>
<div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">diff --git a/CMake/toolchains/toolchain-ios-device.cmake b/CMake/toolchains/toolchain-ios-device</div><div style="margin:0px;font-size:11px;font-family:Menlo">
index af6aedf..05c6dd5 100644</div><div style="margin:0px;font-size:11px;font-family:Menlo">--- a/CMake/toolchains/toolchain-ios-device.cmake</div><div style="margin:0px;font-size:11px;font-family:Menlo">+++ b/CMake/toolchains/toolchain-ios-device.cmake</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">@@ -16,7 +16,7 @@ find_program(CMAKE_CXX_COMPILER NAME g++</div><div style="margin:0px;font-size:11px;font-family:Menlo"> /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"> NO_DEFAULT_PATH)</div><p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"> <br></p><div style="margin:0px;font-size:11px;font-family:Menlo">-set(CMAKE_OSX_ARCHITECTURES "armv7;armv7s")</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">+set(CMAKE_OSX_ARCHITECTURES "armv7;armv7s;arm64")</div><div style="margin:0px;font-size:11px;font-family:Menlo"> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -miphoneos-version-min=5.0 -fvisibility=hidden -fvisibi</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -miphoneos-version-min=5.0 -fvisibility=hidden -fvisibility</div></div><div><br></div><div>The build failed but I didn’t see any useful error messages. Maybe an issue with libarchive...</div>
<div><br></div><div><div style="margin:0px;font-family:Courier;color:rgb(0,165,0);background-color:rgb(223,219,196)"><span style="color:#4c2f2d">[ 40%] </span>Building C object libarchive/CMakeFiles/archive_static.dir/archive_read_disk_entry_from_file.c.o</div>
<div style="margin:0px;font-family:Courier;color:rgb(148,58,32);background-color:rgb(223,219,196)"><b>/Users/jonc/Developer/VES/Apps/iOS/build/CMakeExternals/Source/libarchive/libarchive/archive_read_disk_entry_from_file.c:325:13: </b><span style="color:#c02ec0"><b>warning: </b></span></div>
<div style="margin:0px;font-family:Courier;color:rgb(148,58,32);background-color:rgb(223,219,196)"><b> 'tempnam' is deprecated: This function is provided for compatibility reasons only. Due to</b></div><div style="margin:0px;font-family:Courier;color:rgb(148,58,32);background-color:rgb(223,219,196)">
<b> security concerns inherent in the design of tempnam(3), it is highly recommended that you use</b></div><div style="margin:0px;font-family:Courier;color:rgb(148,58,32);background-color:rgb(223,219,196)"><b> mkstemp(3) instead. [-Wdeprecated-declarations]</b></div>
<div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)"> tempfile = tempnam(tempdir, "<a href="http://tar.md" target="_blank">tar.md</a>.");</div><div style="margin:0px;font-family:Courier;color:rgb(0,165,0);background-color:rgb(223,219,196)">
<b> ^</b></div><div style="margin:0px;font-family:Courier;color:rgb(148,58,32);background-color:rgb(223,219,196)"><b>/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/include/stdio.h:389:7: </b><span style="color:#000000"><b>note: </b></span></div>
<div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)"> 'tempnam' declared here</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
char *tempnam(const char *, const char *) __DARWIN_ALIAS(tempnam);</div><div style="margin:0px;font-family:Courier;color:rgb(0,165,0);background-color:rgb(223,219,196)"><b> ^</b></div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
[ 57%] 1 warning generated.</div></div><div><br></div><div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">-- Installing: /Users/jonc/Developer/VES/Apps/iOS/build/CMakeExternals/Install/libarchive-ios-simulator/lib/LibArchive/cmake/LibArchiveTargets-release.cmake</div>
<div style="margin:0px;font-family:Courier;color:rgb(67,41,212);background-color:rgb(223,219,196)"><span style="color:#4c2f2d">[ 52%] </span><b>Completed 'libarchive-ios-simulator'</b></div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
[ 52%] Built target libarchive-ios-simulator</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">make: *** [all] Error 2</div></div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
Jon Chmura</div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
<div><a href="mailto:jon.chmura@me.com" target="_blank">jon.chmura@me.com</a></div><div><br></div></div><br><br>
</div></font></span><div><div class="h5">
<br><div><div>On Oct 30, 2013, at 11:17 AM, Casey Goodlett <<a href="mailto:casey.goodlett@kitware.com" target="_blank">casey.goodlett@kitware.com</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr">Jon,<div>
<br></div><div>You should be able to edit the toolchain file and add arm64 to the arch list (currently should be armv7;armv7s). I have not tried to build for arm64 so there may be unexpected problems. I typically modify my xcode project to build only armv7 and armv7s.</div>
<div><br></div><div>Can you let us know if you are able to get the project to build with arm64 support?</div><div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 11:07 AM, Jon Chmura <span dir="ltr"><<a href="mailto:jon.chmura@me.com" target="_blank">jon.chmura@me.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Is there any way to build the iOS frameworks so that they support armv7 and arm64. I realize that if the project settings are set up as follows it will build even for devices that are armv7s and arm64.</div>
<div><br></div><div>{ 'ARCHS' => 'ARCHS_STANDARD’,</div><div> 'VALID_ARCHS' => 'armv7’, </div><div>'ONLY_ACTIVE_ARCH' => 'NO’,</div><div> 'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++98’, </div>
<div>'CLANG_CXX_LIBRARY' => 'libstdc++' }</div><div><br></div><div>This requirement causes build issues when using an Xcode workspace (i.e.. multiple Xcode projects used to build an app). I’m looking for a workaround but it be preferable if I could use the standard Xcode settings</div>
<div><br></div><div><div>'ARCHS' => 'ARCHS_STANDARD_INCLUDING_64_BIT’,</div><div> 'VALID_ARCHS' => armv7 armv7s arm64, </div><div>'ONLY_ACTIVE_ARCH' => ‘YES’,</div></div><br><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
Jon Chmura</div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
<div><a href="mailto:jon.chmura@me.com" target="_blank">jon.chmura@me.com</a></div><div><br></div></div><br><br>
</div>
<br></div><br>_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com" target="_blank">Ves@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Casey B. Goodlett, Ph.D.<br>R&D Engineer<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com/" target="_blank">http://www.kitware.com</a><br>
<a href="tel:%28919%29%20969-6990%20x310" value="+19199696990" target="_blank">(919) 969-6990 x310</a>
</div>
</blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Casey B. Goodlett, Ph.D.<br>R&D Engineer<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com">http://www.kitware.com</a><br>
(919) 969-6990 x310
</div>