我正在尝试为iOS构建Allegro 5.0.8游戏库,看起来CMake 2.8.10.2在Xcode 4.6中失败了:
localhost:build steve$ cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-iphone.cmake -G Xcode .. -- The C compiler identification is Clang 4.2.0 -- The CXX compiler identification is Clang 4.2.0 -- Check for working C compiler using: Xcode -- Check for working C compiler using: Xcode -- broken CMake Error at /usr/local/Cellar/cmake/2.8.10.2/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" is not able to compile a simple test program. It fails with the following output: Change Dir: /Users/steve/DEV/allegro/allegro-5.0.8/build/CMakeFiles/CMakeTmp Run Build Command:/usr/local/Cellar/cmake/2.8.10.2/bin/cmakexbuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec2759687021 -configuration Debug === BUILD NATIVE TARGET cmTryCompileExec2759687021 OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug === Check dependencies target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphoneos' platform ** BUILD FAILED ** The following build commands failed: Check dependencies (1 failure) CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:31 (project) -- Configuring incomplete, errors occurred! localhost:build steve$ cmake --version cmake version 2.8.10.2 localhost:build steve$
有什么想法吗?