Just to follow up a bit more. The "innards" that I was referring to
are NOT in CMake 2.6.4 but in CMake CVS. If you can, checkout the
latest CMake from CVS build it and then see if your project will
configure.
Mike
On Aug 30, 2009, at 9:48 PM, Michael Jackson wrote:
I don't think CMake automatically builds Universal Binaries. CMake
will look at the arch of the host system and try to build that arch,
which is i386 on intel or "ppc" on anything else. Unless there is
something in your project where you are setting the
CMAKE_OSX_ARCHETECTURES to i386;ppc then that probably is not the
problem. Also, Snow Leopard _will_ run a PPC app if you have it
install the Rosetta environment. Apple would still need to allow for
the building of Universal Apps for targeting 10.4 and 10.5 systems.
Did you start with a completely clean build directory or was the
build directory left over from 10.5? What OS X SDK are you trying to
use:
from this page <http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00696.html
>
You also need to pass -mmacosx-version-min=10.4 in order to build a
binary that will link against the 10.4u SDK and run on the 10.4
system.
http://lists.apple.com/archives/darwin-dev/2007/Feb/msg00030.html
this person also has the problem <http://stackoverflow.com/questions/1349886/cmake-settings-on-snow-leopard
>
I bet there is an issue with the Darwin.cmake down in /Applications/
CMake 2.6-4.app/Contents/share/cmake-2.6/Modules/Platform/. I helped
write some of the innards in that file and it may be be detecting
things correctly and defaulting to another SDK instead of the 10.6
SDK.
Please post the following variables from your project after a first
run of cmake on your project from a clean build directory.
CMAKE_OSX_ARCHITECTURES
CMAKE_OSX_SYSROOT
On Aug 30, 2009, at 8:21 PM, Celil Rufat wrote:
Hello,
I recently installed Snow Leopard, and I am having trouble building
my application with CMake. The Unix Makefile generator fails while
checking for a working gcc compiler with the following output:
CMake Error at /Applications/CMake 2.6-4.app/Contents/share/
cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
The C compiler "/Developer/usr/bin/gcc" is not able to compile a
simple
test program.
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
make[1]: *** [cmTryCompileExec] Error 1
make: *** [cmTryCompileExec/fast] Error 2
I think the problem is in the fact that Snow Leopard no longer
supports powerpc binaries and cmake is still trying to build my
application as universal binaries instead of just building intel
binaries.
Has anybody tries to use cmake on Snow Leopard? Can you suggest a
workaround this issue? Is there a way to disable universal binaries
and just build my application for the intel processor?
Thanks,
Celil
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake