Robotics StackExchange | Archived questions

Ogre compiling problems on mac os x lion & Xcode 4.3

Thanks to William great work : http://www.ros.org/wiki/electric/Installation/OSX/Homebrew i was able to installed ROS electric on my Mac OS X lion laptop and also running MORSE simulation engine, but i'm bit stuck with Ogre now ... When i do :

rosmake ogre

i have:

/ensure-nvidia-cg-toolkit-is-installed.sh ensure-nvidia-cg-toolkit-is-installed.sh does not support OS 'Darwin', only Linux. Presuming it is OK. find build/ogresrcv1-7-3 -name CMakeLists.txt -exec sed -i bak s:executablepath/../Frameworks:rpath/: {} \; find build/ogresrcv1-7-3 -name CMakeLists.txt -exec sed -i bak s:executablepath/../Components:rpath/: {} \; find build/ogresrcv1-7-3 -name CMakeLists.txt -exec sed -i bak s:executablepath/../Plugins:rpath/: {} \; mkdir -p build/ogresrcv1-7-3/build cd build/ogresrcv1-7-3/build && \ cmake -D CMAKEINSTALLPREFIX=/Users/serge/ros/visualizationcommon/ogre/ogre -D CMAKEOSXARCHITECTURES="x8664" -D OGREBUILDTOOLS="off" -D OGREBUILDSAMPLES=" off" -D OGREBUILDTESTS="off" -D CMAKEBUILDTYPE="RelWithDebInfo" -D CMAKESHAREDLINKERFLAGS="-Wl,-rpath,/Users/serge/ros/visualizationcommon/ogre/ogre/lib" -G Xcode -D CMAKEINSTALLPREFIX=/Users/serge/ros/visualizationcommon/ogre/ogre .. && \ xcodebuild -configuration RelWithDebInfo -target install -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Checking whether C compiler has -isysroot -- Checking whether C compiler has -isysroot - yes -- Checking whether C compiler supports OSX deployment target flag -- Checking whether C compiler supports OSX deployment target flag - yes -- Check for working C compiler using: Xcode -- Check for working C compiler using: Xcode -- broken CMake Error at /usr/local/Cellar/cmake/2.8.7/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/serge/ros/visualizationcommon/ogre/build/ogresrc_v1-7-3/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Cellar/cmake/2.8.7/bin/cmakexbuild -project CMAKETRYCOMPILE.xcode build -target cmTryCompileExec -buildstyle Development

xcodebuild: error: option '-buildstyle' is no longer supported


Maybe this is related to the fact that i'm using Xcode 4.3 ? It looks like that -buildstyle is no more available for xcodebuild command line.

Asked by Serge Stinckwich on 2012-03-04 22:31:58 UTC

Comments

Answers