<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>And which one is which?</div><div>In Xcode (4.2), Lion, 64 bit Intel platform, a standard Xcode Mac OS X "template" will give these build settings in the Architectures section:</div><div><br></div><div>Architectures</div><div>&nbsp; Additional SDKs</div><div>&nbsp; Architectures<span class="Apple-tab-span" style="white-space:pre">                                        </span>64-bit Intel - $(ARCHS_STANDARD_64_BIT) (this last value is grayed out)</div><div>&nbsp; Base SDK<span class="Apple-tab-span" style="white-space:pre">                                                </span>Latest Mac OS X (Mac OS X 10.7)</div><div>&nbsp; Build Active Architecture&nbsp;Only<span class="Apple-tab-span" style="white-space:pre">                </span>&lt;Multiple values&gt;</div><div>&nbsp; Supported Platforms<span class="Apple-tab-span" style="white-space:pre">                                </span>macosx</div><div>&nbsp; Valid Architectures<span class="Apple-tab-span" style="white-space:pre">                                </span>i386 x86_64</div><div><br></div><div>I always thought that the CMAKE_OSX_ARCHITECTURES value corresponded with the "first" Architectures Xcode field. So I set:</div><div>set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD_64_BIT)") in my CMake builds.</div><div>But with your last mail i'm confused if it corresponds to the Valid Architectures field instead.&nbsp;</div><div>Or are these fields related? 64-bit Intel *implies* i386 and x86_64, although you could remove one of the two.</div><div><br></div><div>For an iOS "template" on the same system I get this:</div><div><br></div><div>Architectures</div><div>&nbsp; Additional SDKs</div><div>&nbsp; Architectures<span class="Apple-tab-span" style="white-space:pre">                                        </span>Standard (armv7) - $(ARCHS_STANDARD_32_BIT) (this last value is grayed out)</div><div>&nbsp; Base SDK<span class="Apple-tab-span" style="white-space:pre">                                                </span>/Developer/[blabla]/iPhoneOS5.0.sdk</div><div>&nbsp; Build Active Architecture Only<span class="Apple-tab-span" style="white-space:pre">                </span>No</div><div>&nbsp; Supported Platforms<span class="Apple-tab-span" style="white-space:pre">                                </span>iphonesimulator iphoneos</div><div>&nbsp; Valid Architectures<span class="Apple-tab-span" style="white-space:pre">                                </span>armv6 armv7</div><div><br></div><div>Thanks,</div><div>Daniel</div><div><br></div><div><div><div><div><div>On Dec 8, 2011, at 3:35 PM, Nicolas Rannou wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>What about moving to 64 bits?</div><div>(which I guess is more relevant for Lion apps)</div><div><br></div><div>In your build directory:</div><div>ccmake .</div><div>Then modify:</div><div><div>CMAKE_OSX_ARCHITECTURES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x86_64 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
<div>&nbsp;CMAKE_OSX_DEPLOYMENT_TARGET &nbsp; &nbsp; &nbsp;10.7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp;CMAKE_OSX_SYSROOT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/Developer/SDKs/MacOSX10.7.sdk</div></div><br>Nicolas<div><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 5:35 PM, Dick Munroe <span dir="ltr">&lt;<a href="mailto:munroe@csworks.com">munroe@csworks.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Yes I'm using 2.8.6. &nbsp;Best, &nbsp;Dick Munroe<div class="HOEnZb"><div class="h5"><br>
<br>
On 11/26/11 11:18 AM, David Cole wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Are you using CMake 2.8.6...? Older CMake versions have not been used<br>
much on Lion. It wouldn't surprise me if 2.8.6 works, but earlier<br>
versions have issues...<br>
<br>
<br>
HTH,<br>
David<br>
<br>
<br>
On Sat, Nov 26, 2011 at 6:37 AM, Daniel Dekkers&lt;<a href="mailto:d.dekkers@cthrough.nl" target="_blank">d.dekkers@cthrough.nl</a>&gt; &nbsp;wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This:<br>
<br>
SET(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD_32_BIT)")<br>
seems to result in a "standard" Xcode setting (armv7 (standard)) which is also set when you let Xcode create a fresh iOS app (from its own templates).<br>
<br>
But you also see this a lot on the fora:<br>
SET(CMAKE_OSX_ARCHITECTURES "$(ARCHS_UNIVERSAL_IPHONE_OS)"<u></u>)<br>
<br>
Not sure.<br>
<br>
On Nov 26, 2011, at 4:38 AM, Michael Jackson wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There is a cmake variable that you set during &nbsp;onfiguration time.<br>
Something like os_x_architectures. There you can add the specific arch<br>
that you want to build for.<br>
<br>
-----<br>
Mike Jackson &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.bluequartz.net/" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer &nbsp; &nbsp; &nbsp; <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dayton, Ohio<br>
____________________________<br>
Sent from my mobile device. Please excuse the shortness of the reply.<br>
<br>
On Nov 25, 2011, at 14:47, Dick Munroe&lt;<a href="mailto:munroe@csworks.com" target="_blank">munroe@csworks.com</a>&gt; &nbsp;wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've got a build that works just fine with Leopard.<br>
<br>
For reasons I won't get into, I had to upgrade one of my systems to Lion and now (I've installed XCode 4.2) the build won't work. &nbsp;I get the following error:<br>
<br>
[ &nbsp;0%] Reaping winning child 0x10260c510 PID 1009<br>
Live child 0x10260c510 (libxp/CMakeFiles/xp.dir/<u></u>Users/munroe/Documents/My_SVN/<u></u>ESPlanner_Computation_Engine.<u></u>U2011-11-01/Common/xmllib/<u></u>print/libxp.cpp.o) PID 1010<br>
Building CXX object libxp/CMakeFiles/xp.dir/Users/<u></u>munroe/Documents/My_SVN/<u></u>ESPlanner_Computation_Engine.<u></u>U2011-11-01/Common/xmllib/<u></u>print/libxp.cpp.o<br>
Reaping winning child 0x10260c510 PID 1010<br>
Live child 0x10260c510 (libxp/CMakeFiles/xp.dir/<u></u>Users/munroe/Documents/My_SVN/<u></u>ESPlanner_Computation_Engine.<u></u>U2011-11-01/Common/xmllib/<u></u>print/libxp.cpp.o) PID 1011<br>
llvm-g++-4.2: Invalid arch name : -O2<br>
Reaping losing child 0x10260c510 PID 1011<br>
make[2]: *** [libxp/CMakeFiles/xp.dir/<u></u>Users/munroe/Documents/My_SVN/<u></u>ESPlanner_Computation_Engine.<u></u>U2011-11-01/Common/xmllib/<u></u>print/libxp.cpp.o] Error 1<br>
Removing child 0x10260c510 PID 1011 from chain.<br>
Reaping losing child 0x10c20c290 PID 1008<br>
make[1]: *** [libxp/CMakeFiles/xp.dir/all] Error 2<br>
Removing child 0x10c20c290 PID 1008 from chain.<br>
Reaping losing child 0x10940e730 PID 996<br>
<br>
If I dig around, I find the CXX flags to be:<br>
<br>
-arch &nbsp;-O2 -fPIC<br>
<br>
and for some reason the Lion g++ compiler is choking thinking that there should be and arch value. &nbsp;Which if I dig around in the Leopard build I find:<br>
<br>
-Dxp_EXPORTS &nbsp;-arch i386 -O2 -g -fPIC<br>
<br>
Which brings up the questions, (1) with the same CMakeLists.txt file, why am I getting different values and (2) how do I get the arch to be i386 on the Lion build.<br>
<br>
Best,<br>
<br>
Dick Munroe<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
</blockquote>
--<br>
<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
</blockquote>
--<br>
<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
<br>
</blockquote></blockquote>
--<br>
<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>
--<br><br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></blockquote></div><br></div></div></div></body></html>