[CMake] cmake problems on Mac OS X, newest Xcode (2.1)
Sean McBride
sean at rogue-research.com
Mon Jul 11 15:36:48 EDT 2005
Hi all,
I am new on this list, so please be gentle. :)
I am using cmake to build vtk, both from CVS. Recently, I have been
running a dashboard for vtk and tried using:
CMAKE_GENERATOR:INTERNAL=XCode
However, it seems to be somewhat broken, at least with the newest Xcode
(2.1). There are several problems, and I'm not sure where to start
discussing this. :)
First I'll say that if I instead use:
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
Everything works great, so I think my stuff is (at least mostly) set up ok.
I see problems very early on:
-- Check for working C compiler: gcc
-- Check for working C compiler: gcc -- works
-- Check size of void *
CMake Error: Unable to find executable for TRY_RUN: tried "/Users/sean/
Desktop/vtk/NightlyBuildDir/VTK-XCode/CMakeTmp/cmTryCompileExec" and "/
Users/sean/Desktop/vtk/NightlyBuildDir/VTK-XCode/CMakeTmp/Debug/
cmTryCompileExec".
-- Check size of void * - done
-- Check for working CXX compiler: g++
-- Check for working CXX compiler: g++ -- works
CMake Error: Error required internal CMake variable not set, cmake may
be not be built correctly.
Missing variable is:
CMAKE_SIZEOF_VOID_P
I have determined that one problem is how cmake invokes Apple's
'xcodebuild' command. Before Xcode 2.1, there were several 'buildsytle'
options (see the old man page here <http://www.hmug.org/man/1/
xcodebuild.php>). But in 2.1 these flags are no longer accepted and are
replaced with 'configuration' options, xcodebuild gives this error:
deprecated option: -activebuildstyle is no longer supported in
xcodebuild. Use -activeconfiguration instead.
I ran a 'ctest -D Experimental' on cmake itself and there were 3 problems:
(1) somewhere around kwsys-testProcess-6 a spawned process crashed:
Command: testProcess
Path: /Users/sean/RogueSVNWorkingCopy/Test/trunk/CMake/bin/testProcess
Parent: testProcess [25464]
Version: ??? (???)
PID: 25465
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
0 testProcess 0x00002bb0 test4 + 140 (crt.c:355)
1 testProcess 0x000036fc main + 440 (crt.c:355)
2 testProcess 0x000021b0 _start + 344 (crt.c:272)
3 testProcess 0x00002054 start + 60
This is reproducible. Despite this the test is marked 'passed'.
(2) 50/ 50 Testing Fortran ***Failed
This is no big deal I don't think.
(3) no test discovered the problem with xcodebuild I mentioned above
I would be happy to test any solution anyone proposes. But I'm not
really in a position to muck with the cmake code itself too much, I have
my hands full with my own code and vtk. :)
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the CMake
mailing list