<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 écrit :<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>
xcodebuild: error: developer tools not installed; download
from<br>
<br>
Thanks to Yu You, I apply this command:<br>
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>
The C++ compiler "/usr/bin/llvm-g++" is not able to
compile a simple test<br>
program.<br>
<br>
It fails with the following output:<br>
<br>
Change Dir:
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp<br>
<br>
Run Build Command:/Applications/CMake\
2.8-9.app/Contents/bin/cmakexbuild<br>
-project CMAKE_TRY_COMPILE.xcodeproj build -target<br>
cmTryCompileExec2932044491 -configuration Debug<br>
<br>
=== BUILD NATIVE TARGET cmTryCompileExec2932044491 OF
PROJECT<br>
CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===<br>
<br>
Check dependencies<br>
<br>
CompileC<br>
CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o<br>
testCXXCompiler.cxx normal x86_64 c++<br>
com.apple.compilers.llvm.clang.1_0.compiler<br>
<br>
cd
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp<br>
/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<br>
<br>
Details: Unable to get message category info for tool<br>
'/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2'.<br>
<br>
Reason: i686-apple-darwin11-llvm-gcc-4.2: no input files<br>
<br>
Object: <XCCompilerSpecificationClang: 0x400afa520><br>
<br>
Method: -messageCategoryInfoForExecutablePath:<br>
<br>
Thread: <NSThread: 0x40078a860>{name = (null), num =
4}<br>
<br>
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>
and any useful information you can provide.<br>
<br>
sysroot<br>
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk<br>
-fasm-blocks -Wdeprecated-declarations -Winvalid-offsetof<br>
-mmacosx-version-min=10.7 -Wno-sign-conversion<br>
-I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/Debug/include<br>
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include<br>
-I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/DerivedSources/x86_64<br>
-I/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/DerivedSources<br>
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas<br>
-F/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/Debug
-g -MMD<br>
-MT dependencies -MF<br>
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.d<br>
--serialize-diagnostics<br>
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.dia<br>
-c<br>
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/testCXXCompiler.cxx<br>
-o<br>
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o<br>
<br>
i686-apple-darwin11-llvm-gcc-4.2:<br>
/Users/rleguay/temp/test/DummyProject/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.dia:<br>
No such file or directory<br>
<br>
cc1plus: error: unrecognized command line option<br>
"-Wno-exit-time-destructors"<br>
<br>
cc1plus: error: unrecognized command line option
"-Wc++11-extensions"<br>
<br>
cc1plus: error: unrecognized command line option
"-Wno-sign-conversion"<br>
<br>
cc1plus: error: unrecognized command line option
"-fserialize-diagnostics"<br>
<br>
Command
/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2<br>
failed with exit code 1<br>
<br>
** BUILD FAILED **<br>
<br>
The following build commands failed:<br>
<br>
CompileC<br>
CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec2932044491.build/Objects-normal/x86_64/testCXXCompiler.o<br>
testCXXCompiler.cxx normal x86_64 c++<br>
com.apple.compilers.llvm.clang.1_0.compiler<br>
<br>
(1 failure)<br>
<br>
CMake will not be able to correctly generate this project.<br>
Call Stack (most recent call first):<br>
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> 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 écrit :<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. 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). 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>