Ogre compiling problems on mac os x lion & Xcode 4.3 [closed]

asked 2012-03-04 21:31:58 -0500

Serge Stinckwich gravatar image

updated 2012-03-05 12:20:51 -0500

Kevin gravatar image

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/ogre_src_v1-7-3 -name CMakeLists.txt -exec sed -i bak s:executable_path/../Frameworks:rpath/: {} \; find build/ogre_src_v1-7-3 -name CMakeLists.txt -exec sed -i bak s:executable_path/../Components:rpath/: {} \; find build/ogre_src_v1-7-3 -name CMakeLists.txt -exec sed -i bak s:executable_path/../Plugins:rpath/: {} \; mkdir -p build/ogre_src_v1-7-3/build cd build/ogre_src_v1-7-3/build && \ cmake -D CMAKE_INSTALL_PREFIX=/Users/serge/ros/visualization_common/ogre/ogre -D CMAKE_OSX_ARCHITECTURES="x86_64" -D OGRE_BUILD_TOOLS="off" -D OGRE_BUILD_SAMPLES=" off" -D OGRE_BUILD_TESTS="off" -D CMAKE_BUILD_TYPE="RelWithDebInfo" -D CMAKE_SHARED_LINKER_FLAGS="-Wl,-rpath,/Users/serge/ros/visualization_common/ogre/ogre/lib" -G Xcode -D CMAKE_INSTALL_PREFIX=/Users/serge/ros/visualization_common/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/visualization_common/ogre/build/ogre_src_v1-7-3/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/Cellar/cmake/2.8.7/bin/cmakexbuild -project CMAKE_TRY_COMPILE.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.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2014-03-26 08:19:51