Re: [CMake] CMake 2.8.8-2.8.9 - Generate Xcode 4.4.1 project
There is never any reason to run CMake as root or to use sudo to configure a project build tree with CMake. Mixing and matching use of sudo/non-sudo within the same build tree is simply asking for file permissions problems. On Fri, Aug 10, 2012 at 10:22 AM, Romain LEGUAY wrote: > Hi again! > > I succeed to generate a Xcode project (with a normal user) with cmake-gui. > I hope this new information can lead you to the solution. > > Regards, > Romain > > Le 10/08/12 11:34, Romain LEGUAY a écrit : > > Hi everyone! > > I have a problem to generate a Xcode project. > > I completely remove Xcode 4.4.1 (and command line tools) and CMake 2.8.9. > > I reinstall Xcode 4.4.1 and command line tools and CMake 2.8.9. > > I had this error when I try to generate a XCode project ('cmake -GXcode .'): > xcodebuild: error: developer tools not installed; download from > > Thanks to Yu You, I apply this command: > sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer > > And now I have the same error as previously: > cmake -GXcode . > -- The CXX compiler identification is GNU 4.2.1 > -- Checking whether CXX compiler has -isysroot > -- Checking whether CXX compiler has -isysroot - yes > -- Checking whether CXX compiler supports OSX deployment target flag > -- Checking whether CXX compiler supports OSX deployment target flag - yes > -- Check for working CXX compiler using: Xcode > -- Check for working CXX compiler using: Xcode -- broken > CMake Error at /Applications/CMake > 2.8-9.app/Contents/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 > (MESSAGE): > The C++ compiler "/usr/bin/llvm-g++" is not able to compile a simple test > program. > > It fails with the following output: > >Change Dir: /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp > > Run Build Command:/Applications/CMake\ 2.8-9.app/Contents/bin/cmakexbuild > -project CMAKE_TRY_COMPILE.xcodeproj build -target > cmTryCompileExec2932044491 -configuration Debug > > === BUILD NATIVE TARGET cmTryCompileExec2932044491 OF PROJECT > CMAKE_TRY_COMPILE WITH CONFIGURATION Debug === > > Check dependencies > > CompileC > > CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o > testCXXCompiler.cxx normal x86_64 c++ > com.apple.compilers.llvm.clang.1_0.compiler > > cd /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp > /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -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-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants > -Wno-conversion -Wno-sign-compare -Wno-shorten-64-to-32 -Wno-newline-eof > -Wc++11-extensions "-DCMAKE_INTDIR=\"Debug\"" -i2012-08-10 11:13:51.477 > xcodebuild[1087:3603] DVTAssertions: Warning in > /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-1559/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCCommandLineToolSpecification.m:810 > > Details: Unable to get message category info for tool > '/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2'. > > Reason: i686-apple-darwin11-llvm-gcc-4.2: no input files > > Object: > > Method: -messageCategoryInfoForExecutablePath: > > Thread: {name = (null), num = 4} > > Please file a bug at http://bugreport.apple.com with this warning message > and any useful information you can provide. > > sysroot > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk > -fasm-blocks -Wdeprecated-declarations -Winvalid-offsetof > -mmacosx-version-min=10.7 -Wno-sign-conversion > -I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/Debug/include > > -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include > > -I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/DerivedSources/x86_64 > > -I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/DerivedSources > -Wmost -Wno-four-char-constants -Wno-unknown-pragmas > -F/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/Debug -g -MMD > -MT dependencies -MF > > /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.d > --serialize-diagnostics > > /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.dia > -c > > /Users/rleguay/temp/t
Re: [CMake] CMake 2.8.8-2.8.9 - Generate Xcode 4.4.1 project
Hi again! I succeed to generate a Xcode project (with a normal user) with cmake-gui. I hope this new information can lead you to the solution. Regards, Romain Le 10/08/12 11:34, Romain LEGUAY a écrit : Hi everyone! I have a problem to generate a Xcode project. I completely remove Xcode 4.4.1 (and command line tools) and CMake 2.8.9. I reinstall Xcode 4.4.1 and command line tools and CMake 2.8.9. I had this error when I try to generate a XCode project ('cmake -GXcode .'): xcodebuild: error: developer tools not installed; download from Thanks to Yu You, I apply this command: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer And now I have the same error as previously: cmake -GXcode . -- The CXX compiler identification is GNU 4.2.1 -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Checking whether CXX compiler supports OSX deployment target flag -- Checking whether CXX compiler supports OSX deployment target flag - yes -- Check for working CXX compiler using: Xcode -- Check for working CXX compiler using: Xcode -- broken CMake Error at /Applications/CMake 2.8-9.app/Contents/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE): The C++ compiler "/usr/bin/llvm-g++" is not able to compile a simple test program. It fails with the following output: Change Dir: /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp Run Build Command:/Applications/CMake\ 2.8-9.app/Contents/bin/cmakexbuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec2932044491 -configuration Debug === BUILD NATIVE TARGET cmTryCompileExec2932044491 OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug === Check dependencies CompileC CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o testCXXCompiler.cxx normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler cd /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -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-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-sign-compare -Wno-shorten-64-to-32 -Wno-newline-eof -Wc++11-extensions "-DCMAKE_INTDIR=\"Debug\"" -i2012-08-10 11:13:51.477 xcodebuild[1087:3603] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-1559/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCCommandLineToolSpecification.m:810 Details: Unable to get message category info for tool '/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2'. Reason: i686-apple-darwin11-llvm-gcc-4.2: no input files Object: Method: -messageCategoryInfoForExecutablePath: Thread: {name = (null), num = 4} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.7 -Wno-sign-conversion -I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/DerivedSources/x86_64 -I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/Debug -g -MMD -MT dependencies -MF /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.d --serialize-diagnostics /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.dia -c /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/testCXXCompiler.cxx -o /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o i686-apple-darwin11-llvm-gcc-4.2: /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.dia: No such file or directory cc1plus:
[CMake] CMake 2.8.8-2.8.9 - Generate Xcode 4.4.1 project
Hi everyone! I have a problem to generate a Xcode project. I completely remove Xcode 4.4.1 (and command line tools) and CMake 2.8.9. I reinstall Xcode 4.4.1 and command line tools and CMake 2.8.9. I had this error when I try to generate a XCode project ('cmake -GXcode .'): xcodebuild: error: developer tools not installed; download from Thanks to Yu You, I apply this command: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer And now I have the same error as previously: cmake -GXcode . -- The CXX compiler identification is GNU 4.2.1 -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Checking whether CXX compiler supports OSX deployment target flag -- Checking whether CXX compiler supports OSX deployment target flag - yes -- Check for working CXX compiler using: Xcode -- Check for working CXX compiler using: Xcode -- broken CMake Error at /Applications/CMake 2.8-9.app/Contents/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE): The C++ compiler "/usr/bin/llvm-g++" is not able to compile a simple test program. It fails with the following output: Change Dir: /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp Run Build Command:/Applications/CMake\ 2.8-9.app/Contents/bin/cmakexbuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec2932044491 -configuration Debug === BUILD NATIVE TARGET cmTryCompileExec2932044491 OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug === Check dependencies CompileC CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o testCXXCompiler.cxx normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler cd /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -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-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-sign-compare -Wno-shorten-64-to-32 -Wno-newline-eof -Wc++11-extensions "-DCMAKE_INTDIR=\"Debug\"" -i2012-08-10 11:13:51.477 xcodebuild[1087:3603] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-1559/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCCommandLineToolSpecification.m:810 Details: Unable to get message category info for tool '/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2'. Reason: i686-apple-darwin11-llvm-gcc-4.2: no input files Object: Method: -messageCategoryInfoForExecutablePath: Thread: {name = (null), num = 4} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.7 -Wno-sign-conversion -I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/DerivedSources/x86_64 -I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/Debug -g -MMD -MT dependencies -MF /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.d --serialize-diagnostics /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.dia -c /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/testCXXCompiler.cxx -o /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o i686-apple-darwin11-llvm-gcc-4.2: /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.dia: No such file or directory cc1plus: error: unrecognized command line option "-Wno-exit-time-destructors" cc1plus: error: unrecognized command line option "-Wc++11-extensions" cc1plus: error: unrecognized command line option "-Wno-sign-convers