ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

Ogre on OSX with Xcode 4.3.2 pbxcp error

asked 2012-04-24 16:27:31 -0500

tingfan gravatar image

updated 2012-04-24 17:38:00 -0500

Kevin gravatar image

When building ogre with Xcode 4.3 (and probably higher), one may run into this erorr message: /bin/sh: /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp: Not a directory

The reason is that Xcode does not install tools in /Developer anymore. The tools are now available at /Application/Xcode.app. But ogre 1.7 has hardcoded the path to pbxcp in the CMakefiles.

Workaround: Add one line in visualization_common/ogre/Makefile, which patches the ogre CMakeLists.txt

installed_osx: $(SOURCE_DIR)/unpacked
    # Replace @executable_path/../... with @rpath/
    find $(SOURCE_DIR) -name CMakeLists.txt -exec sed -i bak s:executable_path/../Frameworks:rpath/: {} \;
    find $(SOURCE_DIR) -name CMakeLists.txt -exec sed -i bak s:executable_path/../Components:rpath/: {} \;
    find $(SOURCE_DIR) -name CMakeLists.txt -exec sed -i bak s:executable_path/../Plugins:rpath/: {} \; 
+   find $(SOURCE_DIR) -name CMakeLists.txt -exec sed -i bak s:/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp:/Applications/Xcode.app/Contents//OtherFrameworks/DevToolsCore.framework/Versions/A/Resources/pbxcp: {} \;
    mkdir -p $(SOURCE_DIR)/build
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-04-24 16:29:41 -0500

tingfan gravatar image
edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-04-24 16:27:31 -0500

Seen: 1,301 times

Last updated: Apr 24 '12