<div dir="ltr"><div><div>Hi Jon,<br><br></div>There was a previous VES mailing list thread where we briefly talked about this tr1 issue. Maybe search for the email by subject: [Ves] ios 7<br></div>I think the idea was that VES needs a patch to resolve it, for now you could do a find/replace across many files to remove references to tr1.<br>
<div><br>Pat</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 1:06 PM, 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>I tried all of those options with make -j1 build. Below is the failure when building WITH lib archive and curl.</div>
<div><br></div><div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196);min-height:14px"><br></div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
-- Build files have been written to: /Users/jonc/Developer/VES/Apps/iOS/build/CMakeExternals/Build/curl-ios-device</div><div style="margin:0px;font-family:Courier;color:rgb(67,41,212);background-color:rgb(223,219,196)"><span style="color:#4c2f2d">[ 9%] </span><b>Performing build step for 'curl-ios-device'</b></div>
<div style="margin:0px;font-family:Courier;color:rgb(0,165,0);background-color:rgb(223,219,196)"><span style="color:#4c2f2d">[ 1%] </span>Building C object lib/CMakeFiles/libcurl.dir/file.c.o</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
In file included from /Users/jonc/Developer/VES/Apps/iOS/build/CMakeExternals/Source/curl/lib/file.c:23:</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">In file included from /Users/jonc/Developer/VES/Apps/iOS/build/CMakeExternals/Source/curl/lib/setup.h:127:</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/curl/include/curl/curlrules.h:143:6: </b><span style="color:#b12512"><b>error: </b></span></div>
<div style="margin:0px;font-family:Courier;color:rgb(148,58,32);background-color:rgb(223,219,196)"><b> '__curl_rule_01__' declared as an array with a negative size</b></div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
[CurlchkszEQ(long, CURL_SIZEOF_LONG)];</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>/Users/jonc/Developer/VES/Apps/iOS/build/CMakeExternals/Source/curl/include/curl/curlrules.h:132:27: </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)">
expanded from macro 'CurlchkszEQ'</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">#define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1</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)">1 error generated.</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
make[5]: *** [lib/CMakeFiles/libcurl.dir/file.c.o] Error 1</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">make[4]: *** [lib/CMakeFiles/libcurl.dir/all] Error 2</div>
<div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">make[3]: *** [all] Error 2</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
make[2]: *** [CMakeExternals/Stamp/curl-ios-device/curl-ios-device-build] Error 2</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">make[1]: *** [CMakeFiles/curl-ios-device.dir/all] Error 2</div>
<div class="im"><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">make: *** [all] Error 2</div></div></div><div><br></div><div><br></div><div>I also attempted building WITHOUT lib archive and curl. Is the tr1/memory error associated with using the C11 compiler?</div>
<div><br></div><div><div style="margin:0px;font-family:Courier;color:rgb(192,46,192);background-color:rgb(223,219,196)"><b>Scanning dependencies of target ves</b></div><div style="margin:0px;font-family:Courier;color:rgb(0,165,0);background-color:rgb(223,219,196)">
<span style="color:#4c2f2d">[ 1%] </span>Building CXX object src/ves/CMakeFiles/ves.dir/vesActor.cpp.o</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">In file included from /Users/jonc/Developer/VES/src/ves/vesActor.cpp:22:</div>
<div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">In file included from /Users/jonc/Developer/VES/src/ves/./vesActor.h:33:</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
In file included from /Users/jonc/Developer/VES/src/ves/./vesNode.h:31:</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">In file included from /Users/jonc/Developer/VES/src/ves/./vesBoundingObject.h:27:</div>
<div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">In file included from /Users/jonc/Developer/VES/src/ves/./vesObject.h:25:</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
In file included from /Users/jonc/Developer/VES/src/ves/./vesSetGet.h:25:</div><div style="margin:0px;font-family:Courier;color:rgb(148,58,32);background-color:rgb(223,219,196)"><b>/Users/jonc/Developer/VES/src/ves/./vesSharedPtr.h:28:10: </b><span style="color:#b12512"><b>fatal error: </b></span><b>'tr1/memory' file not found</b></div>
<div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">#include <tr1/memory></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)">1 error generated.</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
make[5]: *** [src/ves/CMakeFiles/ves.dir/vesActor.cpp.o] Error 1</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">make[4]: *** [src/ves/CMakeFiles/ves.dir/all] Error 2</div>
<div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">make[3]: *** [all] Error 2</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
make[2]: *** [CMakeExternals/Stamp/ves-ios-device/ves-ios-device-build] Error 2</div><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">make[1]: *** [CMakeFiles/ves-ios-device.dir/all] Error 2</div>
<div class="im"><div style="margin:0px;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">make: *** [all] Error 2</div></div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br>
</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></font></span><div><div class="h5">
<br><div><div>On Oct 30, 2013, at 12:07 PM, 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"><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" target="_blank">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><div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"> <br></div><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><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><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>
<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/" 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><br>_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com">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></div>