<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 x86_64 </div>
<div> CMAKE_OSX_DEPLOYMENT_TARGET 10.7 </div><div> CMAKE_OSX_SYSROOT /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"><<a href="mailto:munroe@csworks.com">munroe@csworks.com</a>></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. Best, 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<<a href="mailto:d.dekkers@cthrough.nl" target="_blank">d.dekkers@cthrough.nl</a>> 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 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 <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software 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<<a href="mailto:munroe@csworks.com" target="_blank">munroe@csworks.com</a>> 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. I get the following error:<br>
<br>
[ 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 -O2 -fPIC<br>
<br>
and for some reason the Lion g++ compiler is choking thinking that there should be and arch value. Which if I dig around in the Leopard build I find:<br>
<br>
-Dxp_EXPORTS -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>