<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi again!<br>
      <br>
      I succeed to generate a Xcode project (with a normal user) with
      cmake-gui.<br>
      I hope this new information can lead you to the solution.<br>
      <br>
      Regards,<br>
      Romain<br>
      <br>
      Le 10/08/12 11:34, Romain LEGUAY a &eacute;crit&nbsp;:<br>
    </div>
    <blockquote cite="mid:5024D591.1040604@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Hi everyone!<br>
        <br>
        I have a problem to generate a Xcode project.<br>
        <br>
        I completely remove Xcode 4.4.1 (and command line tools) and
        CMake 2.8.9.<br>
        <br>
        I reinstall Xcode 4.4.1 and command line tools and CMake 2.8.9.<br>
        <br>
        I had this error when I try to generate a XCode project ('cmake
        -GXcode .'):<br>
        &nbsp;&nbsp;&nbsp; xcodebuild: error: developer tools not installed; download
        from<br>
        <br>
        Thanks to Yu You, I apply this command:<br>
        &nbsp;&nbsp;&nbsp; sudo xcode-select -switch
        /Applications/Xcode.app/Contents/Developer<br>
        <br>
        And now I have the same error as previously:<br>
        <font color="#33cc00"><font color="#006600">cmake -GXcode .<br>
            -- The CXX compiler identification is GNU 4.2.1<br>
            -- Checking whether CXX compiler has -isysroot<br>
            -- Checking whether CXX compiler has -isysroot - yes<br>
            -- Checking whether CXX compiler supports OSX deployment
            target flag<br>
            -- Checking whether CXX compiler supports OSX deployment
            target flag - yes<br>
            -- Check for working CXX compiler using: Xcode<br>
            -- Check for working CXX compiler using: Xcode -- broken<br>
            CMake Error at /Applications/CMake
            2.8-9.app/Contents/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45
            (MESSAGE):<br>
            &nbsp; The C++ compiler "/usr/bin/llvm-g++" is not able to
            compile a simple test<br>
            &nbsp; program.<br>
            <br>
            &nbsp; It fails with the following output:<br>
            <br>
            &nbsp;&nbsp; Change Dir:
            /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp<br>
            <br>
            &nbsp; Run Build Command:/Applications/CMake\
            2.8-9.app/Contents/bin/cmakexbuild<br>
            &nbsp; -project CMAKE_TRY_COMPILE.xcodeproj build -target<br>
            &nbsp; cmTryCompileExec2932044491 -configuration Debug<br>
            <br>
            &nbsp; === BUILD NATIVE TARGET cmTryCompileExec2932044491 OF
            PROJECT<br>
            &nbsp; CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===<br>
            <br>
            &nbsp; Check dependencies<br>
            <br>
            &nbsp; CompileC<br>
            &nbsp;
CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o<br>
            &nbsp; testCXXCompiler.cxx normal x86_64 c++<br>
            &nbsp; com.apple.compilers.llvm.clang.1_0.compiler<br>
            <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd
            /Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            /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]&nbsp; DVTAssertions: Warning
            in
/SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-1559/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCCommandLineToolSpecification.m:810<br>
            <br>
            &nbsp; Details: Unable to get message category info for tool<br>
            &nbsp;
            '/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2'.<br>
            <br>
            &nbsp; Reason: i686-apple-darwin11-llvm-gcc-4.2: no input files<br>
            <br>
            &nbsp; Object: &lt;XCCompilerSpecificationClang: 0x400afa520&gt;<br>
            <br>
            &nbsp; Method: -messageCategoryInfoForExecutablePath:<br>
            <br>
            &nbsp; Thread: &lt;NSThread: 0x40078a860&gt;{name = (null), num =
            4}<br>
            <br>
            &nbsp; Please file a bug at <a moz-do-not-send="true"
              class="moz-txt-link-freetext"
              href="http://bugreport.apple.com">http://bugreport.apple.com</a>
            with this warning message<br>
            &nbsp; and any useful information you can provide.<br>
            <br>
            &nbsp; sysroot<br>
            &nbsp;
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk<br>
            &nbsp; -fasm-blocks -Wdeprecated-declarations -Winvalid-offsetof<br>
            &nbsp; -mmacosx-version-min=10.7 -Wno-sign-conversion<br>
            &nbsp;
-I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/Debug/include<br>
            &nbsp;
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include<br>
            &nbsp;
-I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/DerivedSources/x86_64<br>
            &nbsp;
-I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/DerivedSources<br>
            &nbsp; -Wmost -Wno-four-char-constants -Wno-unknown-pragmas<br>
            &nbsp;
            -F/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/Debug
            -g -MMD<br>
            &nbsp; -MT dependencies -MF<br>
            &nbsp;
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.d<br>
            &nbsp; --serialize-diagnostics<br>
            &nbsp;
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.dia<br>
            &nbsp; -c<br>
            &nbsp;
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/testCXXCompiler.cxx<br>
            &nbsp; -o<br>
            &nbsp;
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o<br>
            <br>
            &nbsp; i686-apple-darwin11-llvm-gcc-4.2:<br>
            &nbsp;
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.dia:<br>
            &nbsp; No such file or directory<br>
            <br>
            &nbsp; cc1plus: error: unrecognized command line option<br>
            &nbsp; "-Wno-exit-time-destructors"<br>
            <br>
            &nbsp; cc1plus: error: unrecognized command line option
            "-Wc++11-extensions"<br>
            <br>
            &nbsp; cc1plus: error: unrecognized command line option
            "-Wno-sign-conversion"<br>
            <br>
            &nbsp; cc1plus: error: unrecognized command line option
            "-fserialize-diagnostics"<br>
            <br>
            &nbsp; Command
            /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2<br>
            &nbsp; failed with exit code 1<br>
            <br>
            &nbsp; ** BUILD FAILED **<br>
            <br>
            &nbsp; The following build commands failed:<br>
            <br>
            &nbsp; &nbsp;&nbsp;&nbsp; CompileC<br>
            &nbsp;
CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o<br>
            &nbsp; testCXXCompiler.cxx normal x86_64 c++<br>
            &nbsp; com.apple.compilers.llvm.clang.1_0.compiler<br>
            <br>
            &nbsp; (1 failure)<br>
            <br>
            &nbsp; CMake will not be able to correctly generate this project.<br>
            Call Stack (most recent call first):<br>
            &nbsp; CMakeLists.txt:2 (project)<br>
            <br>
            -- Configuring incomplete, errors occurred!</font><br>
        </font><br>
        I think there is some problem to generate the <font
          color="#33cc00"><font color="#006600">cmTryCompileExec <font
              color="#000000">file because when I do:<br>
              <b>&nbsp;&nbsp;&nbsp; sudo cmake -GXcode .</b><br>
            </font></font></font><br>
        I have no problem.<br>
        Of course I have write access to my project folder so I don't
        really understand the problem here...<br>
        <br>
        If anyone has some clues ;).<br>
        <br>
        Regards,<br>
        Romain LEGUAY<br>
        <br>
        Le 09/08/12 23:06, Bill Hoffman a &eacute;crit&nbsp;:<br>
      </div>
      <blockquote cite="mid:50242669.4090109@kitware.com" type="cite">On
        8/9/2012 4:58 PM, Etuka Onono wrote: <br>
        <blockquote type="cite">ichael and David, thanks for
          responding.&nbsp; Rest assured that I always <br>
          truncate my build directory when I come to a sticky halt with
          Cmake. <br>
          <br>
          Michael, I set a symmlink to /Developer/Applications/Xcode.app
          as you <br>
          suggested, but this does not solve my problem (I know David
          had his <br>
          doubts, I wanted to try anyway).&nbsp; I do think you are right
          about it <br>
          having something to do with information on older issues of
          Xcode, <br>
          though, as I have a clean install of Xcode 4.4.1 and Cmake
          2.8.8 that <br>
          works (neither have been upgraded) and I have been as rigorous
          as I <br>
          feel I can be in deleting all Cmake artefacts when installing
          Cmake <br>
          2.8.8 (removed anything vaguely related to Cmake in /Library
          and <br>
          ~/Library, removed all the symmlinks in /usr/bin, etc). <br>
        </blockquote>
        <br>
        <br>
        See this bug report: <br>
        <br>
        <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://www.cmake.org/Bug/view.php?id=13353">http://www.cmake.org/Bug/view.php?id=13353</a>
        <br>
        <br>
        Trouble is here: <br>
        xcodebuild: error: option '-buildstyle' is no longer supported <br>
        <br>
        Answer is : "Looks like it's no longer an issue with the final
        release of Xcode 4.4 and OS X 10.8. This issue can be closed. "
        <br>
        <br>
        -Bill <br>
        <br>
        <br>
        -- <br>
        <br>
        Powered by <a moz-do-not-send="true"
          class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
        <br>
        <br>
        Visit other Kitware open-source projects at <a
          moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
        <br>
        <br>
        Please keep messages on-topic and check the CMake FAQ at: <a
          moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
        <br>
        <br>
        Follow this link to subscribe/unsubscribe: <br>
        <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>