Building Rviz/Ogre on OSX Mountain Lion
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: http://answers.ros.org/question/12825/more-problems-building-ogre-on-osx-lion/ 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?
Thanks.
EDIT: The full build output can be found at: https://gist.github.com/3625440
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: https://code.ros.org/trac/ros-pkg/browser/stacks/visualization_common/trunk/ogre/ditto_pbxcp_osx.patch?rev=39177 but the patch fails to install on my system when trying to patch "Samples/Browser/CMakeLists.txt"
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?