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

Building Rviz/Ogre on OSX Mountain Lion

asked 2012-09-04 08:01:36 -0600

updated 2012-09-04 10:32:33 -0600

I'm trying to compile Rviz on OSX (10.8) and am having trouble getting the Ogre dependency to compile. It fails with the following error:

BUILD FAILED: Plugin_CgProgramManager.dylib not created. Is nvidia-cg-toolkit installed correctly?

I found a previous discussion of this issue for Lion here: but trying the suggestions there does not fix the issue.

The Nvidia Cg toolkit (version 3.0) was installed from the package linked to from the ROS OSX installation instructions. The file mentioned in the previous question "/usr/local/share/ros/nvidia-cg-version.installed" does not exist, but running "rosdep install ogre" states that all dependencies are correctly installed. Cmake also seems to correctly find the Cg Framework installation directory (/Library/Frameworks/Cg.framework)

Any suggestions?


EDIT: The full build output can be found at:

EDIT 2: It actually looks like the error might be caused by an issue with pbxcp being moved in XCode 4.3. There is a patch dealing with the issue here: but the patch fails to install on my system when trying to patch "Samples/Browser/CMakeLists.txt"

edit retag flag offensive close merge delete


Is that the full error? I have noticed that it will print this message is the build fails for some other reason. Maybe post the full build log in a gist?

WilliamWoodall gravatar image WilliamWoodall  ( 2012-09-04 08:31:57 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-09-04 12:22:22 -0600

WilliamWoodall gravatar image

updated 2012-09-04 12:54:15 -0600

I have a clean patch for visualization_common-1.8.2:

To apply it:

  1. Get a clean copy of visualization_common
  2. cd /path/to/visualization_common
  3. patch -p0 < /path/to/the/patch/visualization_common-1.8.2-osx_pbxcp_ditto.patch

Hope this helps. I will make a ticket to get it upstream as soon as I get back to California.

EDIT: Also:

EDIT: Ticket:

edit flag offensive delete link more


That fixed it. Thanks a lot! Following the instructions on the OSX install wiki, I got vis_common 1.8.4 instead of 1.8.2 and had to remove the ditto_pbxcp_osx.patch that was already there prior to installing your patch.

david.hodo gravatar image david.hodo  ( 2012-09-04 12:52:13 -0600 )edit

Yeah, they never added the patch to the Makefile, and apparently never tested it... So yeah. Accept the answer. (I need karma).

WilliamWoodall gravatar image WilliamWoodall  ( 2012-09-04 12:55:29 -0600 )edit

It won't let me accept it. Not sure why. EDIT: NVM, got it.

david.hodo gravatar image david.hodo  ( 2012-09-04 12:56:31 -0600 )edit

@WilliamWoodall Is this patch still working? I did all the install procedure (rosintsall ...) today and rosmake ogre fails. When I try to use your patch it fails: patching file ogre/Makefile The next patch would create the file ogre/ditto_pbxcp_osx.patch, which already exists! Assume -R? [n] y

LucaGhera gravatar image LucaGhera  ( 2012-10-11 01:02:02 -0600 )edit

patching file ogre/ditto_pbxcp_osx.patch Hunk #1 FAILED at 1. File ogre/ditto_pbxcp_osx.patch is not empty after patch, as expected 1 out of 1 hunk FAILED -- saving rejects to file ogre/ditto_pbxcp_osx.patch.rej

LucaGhera gravatar image LucaGhera  ( 2012-10-11 01:02:17 -0600 )edit

@WilliamWoodall probabily the error is a bit different: Should I open a new question?

LucaGhera gravatar image LucaGhera  ( 2012-10-11 01:04:38 -0600 )edit

You might have to remove that orge/ditto_....patch file before applying my patch, @david.hodo mentioned that above.

WilliamWoodall gravatar image WilliamWoodall  ( 2012-10-11 08:14:32 -0600 )edit

Question Tools


Asked: 2012-09-04 08:01:36 -0600

Seen: 848 times

Last updated: Sep 04 '12