[CMake] CMake 2.8.10 with Xcode 4.4.1

Asmodehn Shade asmodehn at gmail.com
Sun Jan 13 21:45:53 EST 2013


2013/1/14 Asmodehn Shade <asmodehn at gmail.com>

> 2013/1/11 Bill Hoffman <bill.hoffman at kitware.com>
>
>> On 1/11/2013 2:09 AM, Asmodehn Shade wrote:
>>
>>> Hello,
>>>
>>> I just had this happening with CMake 2.8.10 ( from a recent macports )
>>> and with XCode 4.5.2.
>>> I built the step1 tutorial in its source dir :
>>>
>>> bash-3.2$ cmake -G XCode .^M
>>> -- The C compiler identification is Clang 4.1.0^M
>>> -- The CXX compiler identification is Clang 4.1.0^M
>>> -- Check for working C compiler using: Xcode^M
>>> -- Check for working C compiler using: Xcode -- works^M
>>> -- Detecting C compiler ABI info^M
>>> -- Detecting C compiler ABI info - done^M
>>> -- Check for working CXX compiler using: Xcode^M
>>> -- Check for working CXX compiler using: Xcode -- works^M
>>> -- Detecting CXX compiler ABI info^M
>>> -- Detecting CXX compiler ABI info - done^M
>>> -- Configuring done^M
>>> -- Generating done^M
>>> -- Build files have been written to:
>>> /Users/alexandre.vincent/**Projects/cmake-2.8.10.2/Tests/**
>>> Tutorial/Step1^M
>>> bash-3.2$ xcodebuild Tuto^Grial.xcodeproj/^M
>>> === BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH THE
>>> DEFAULT CONFIGURATION (Debug) ===^M
>>> Check dependencies^M
>>> unsupported build action 'Tutorial.xcodeproj'^M
>>> ^M
>>> ^M
>>> ** BUILD FAILED **^M
>>> ^M
>>> ^M
>>> The following build commands failed:^M
>>>          Check dependencies^M
>>> (1 failure)^M
>>> bash-3.2$ exit^M
>>>
>>>  What happens if you load the project into the IDE and build?  What is
>> the output of
>> cmake --build . --config Debug
>>
>> -Bill
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/**
>> opensource/opensource.html<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<http://www.cmake.org/Wiki/CMake_FAQ>
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>>
>
> Hi Bill,
>
> 1) Loading Project in the IDE works indeed :
>
> *Build target ZERO_CHECK*
> *
> *
> *PhaseScriptExecution "CMake Rules"
> Tutorial.build/Debug/ZERO_CHECK.build/Script-F3123F2894624D989F3E8A02.sh*
> *    cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *    /bin/sh -c
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/ZERO_CHECK.build/Script-F3123F2894624D989F3E8A02.sh
> *
> *
> *
> *echo ""*
> *
> *
> *make -f
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/CMakeScripts/ReRunCMake.make
> *
> *make[1]: `CMakeFiles/cmake.check_cache' is up to date.*
> *
> *
> *
> *
> *Build target Tutorial*
> *
> *
> *CompileC
> Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.o
> tutorial.cxx normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
> *
> *    cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *    setenv LANG en_US.US-ASCII*
> *
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
> -x c++ -arch x86_64 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O0
> -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type
> -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors
> -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function
> -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value
> -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow
> -Wno-four-char-constants -Wno-conversion -Wno-shorten-64-to-32
> -Wno-newline-eof -Wno-c++11-extensions "-DCMAKE_INTDIR=\"Debug\"" -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
> -fasm-blocks -Wdeprecated-declarations -Winvalid-offsetof
> -mmacosx-version-min=10.7 -g -Wno-sign-conversion
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug/include
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/DerivedSources/x86_64
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/DerivedSources
> -Wmost -Wno-four-char-constants -Wno-unknown-pragmas
> -F/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug
> -MMD -MT dependencies -MF
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.d
> --serialize-diagnostics
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.dia
> -c
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/tutorial.cxx
> -o
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.o
> *
> *
> *
> *Ld Debug/Tutorial normal x86_64*
> *    cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *    setenv MACOSX_DEPLOYMENT_TARGET 10.7*
> *
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
> -arch x86_64 -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
> -L/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug
> -F/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug
> -filelist
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/Tutorial.LinkFileList
> -mmacosx-version-min=10.7 -Wl,-search_paths_first
> -Wl,-headerpad_max_install_names -o
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug/Tutorial
> *
> *
> *
> *PhaseScriptExecution "CMake PostBuild Rules"
> Tutorial.build/Debug/Tutorial.build/Script-A6CCAE89814F4F0482586E94.sh*
> *    cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *    /bin/sh -c
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Script-A6CCAE89814F4F0482586E94.sh
> *
> *
> *
> *echo "Depend check for xcode"*
> *Depend check for xcode*
> *cd /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1
> && make -C
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1 -f
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/CMakeScripts/XCODE_DEPEND_HELPER.make
> PostBuild.Tutorial.Debug*
> *make[1]: Nothing to be done for `PostBuild.Tutorial.Debug'.*
> *
> *
> *
> *
> *Build target ALL_BUILD*
> *
> *
> *PhaseScriptExecution "CMake Rules"
> Tutorial.build/Debug/ALL_BUILD.build/Script-CA2D6352A0B346DB884A612E.sh*
> *    cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *    /bin/sh -c
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/ALL_BUILD.build/Script-CA2D6352A0B346DB884A612E.sh
> *
> *
> *
> *echo ""*
> *
> *
> *echo Build\ all\ projects*
> *Build all projects*
>
> 2) cmake --build . --config Debug works too :
> *=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH
> CONFIGURATION Debug ===*
> *Check dependencies*
> *
> *
> *PhaseScriptExecution "CMake Rules"
> Tutorial.build/Debug/ZERO_CHECK.build/Script-F3123F2894624D989F3E8A02.sh*
> *    cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *    /bin/sh -c
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/ZERO_CHECK.build/Script-F3123F2894624D989F3E8A02.sh
> *
> *echo ""*
> *
> *
> *make -f
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/CMakeScripts/ReRunCMake.make
> *
> *make[1]: `CMakeFiles/cmake.check_cache' is up to date.*
> *
> *
> *
> *
> *=== BUILD NATIVE TARGET Tutorial OF PROJECT Tutorial WITH CONFIGURATION
> Debug ===*
> *Check dependencies*
> *
> *
> *CompileC
> Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.o
> tutorial.cxx normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
> *
> *    cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
> -x c++ -arch x86_64 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O0
> -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type
> -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors
> -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function
> -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value
> -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow
> -Wno-four-char-constants -Wno-conversion -Wno-shorten-64-to-32
> -Wno-newline-eof -Wno-c++11-extensions "-DCMAKE_INTDIR=\"Debug\"" -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
> -fasm-blocks -Wdeprecated-declarations -Winvalid-offsetof
> -mmacosx-version-min=10.7 -g -Wno-sign-conversion
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug/include
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/DerivedSources/x86_64
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/DerivedSources
> -Wmost -Wno-four-char-constants -Wno-unknown-pragmas
> -F/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug
> -MMD -MT dependencies -MF
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.d
> --serialize-diagnostics
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.dia
> -c
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/tutorial.cxx
> -o
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.o
> *
> *
> *
> *Ld Debug/Tutorial normal x86_64*
> *    cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
> -arch x86_64 -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
> -L/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug
> -F/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug
> -filelist
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/Tutorial.LinkFileList
> -mmacosx-version-min=10.7 -Wl,-search_paths_first
> -Wl,-headerpad_max_install_names -o
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug/Tutorial
> *
> *
> *
> *PhaseScriptExecution "CMake PostBuild Rules"
> Tutorial.build/Debug/Tutorial.build/Script-A6CCAE89814F4F0482586E94.sh*
> *    cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *    /bin/sh -c
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Script-A6CCAE89814F4F0482586E94.sh
> *
> *echo "Depend check for xcode"*
> *Depend check for xcode*
> *cd /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1
> && make -C
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1 -f
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/CMakeScripts/XCODE_DEPEND_HELPER.make
> PostBuild.Tutorial.Debug*
> *make[1]: Nothing to be done for `PostBuild.Tutorial.Debug'.*
> *
> *
> *
> *
> *=== BUILD AGGREGATE TARGET ALL_BUILD OF PROJECT Tutorial WITH
> CONFIGURATION Debug ===*
> *Check dependencies*
> *
> *
> *PhaseScriptExecution "CMake Rules"
> Tutorial.build/Debug/ALL_BUILD.build/Script-CA2D6352A0B346DB884A612E.sh*
> *    cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *    /bin/sh -c
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/ALL_BUILD.build/Script-CA2D6352A0B346DB884A612E.sh
> *
> *echo ""*
> *
> *
> *echo Build\ all\ projects*
> *Build all projects*
> *
> *
> *
> *
> *** BUILD SUCCEEDED ***
>
> => Does cmake --build . --config Debug does something special ?
> => Another thing to consider is that my original project fails to build *in
> the IDE*, with the same error as Nicholas previously stated in this
> thread :
> *make[1]: *** No rule to make target `/Users/nicholas/temp/xcode/CM
> akeFiles/2.8.10/CMakeCCompiler.cmake', needed by
> `CMakeFiles/cmake.check_cache'.  Stop.*
>
> In my case :
> *echo ""*
> *
> *
> *make -f
> /Users/alexandre.vincent/Projects/my_project/prj/iOS/CMakeScripts/ReRunCMake.make
> *
> *make[1]: *** No rule to make target
> `/Users/alexandre.vincent/Projects/my_project/prj/iOS/CMakeFiles/2.8.10/CMakeCCompiler.cmake',
> needed by `CMakeFiles/cmake.check_cache'.  Stop.*
> *make: ***
> [/Users/alexandre.vincent/Projects/my_project/prj/iOS/CMakeFiles/ZERO_CHECK]
> Error 2*
> *Command /bin/sh failed with exit code 2*
>
> So is it possible that the Tutorial sample problem may not match the
> actual cause of the original problem ?
> Let me know if you need any other info.
>
> Thanks for the help,
> --
> AlexV
>

FYI, cmake 2.8.9 seems to work fine on my project...
--
AlexV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130114/2e3d9ab0/attachment-0001.htm>


More information about the CMake mailing list