# rviz not compiling mac osx

I was trying to install ROS on mac after having traded from ubuntu. I found some of these inconsistencies in the latest boost libraries.

1 . The latest boost library does not offer tr1/* hence rospack fails to compile which uses this library. Got around this by including the older boost version libraries.

2 . The rviz package does not build with the following errors. I tried including the older version for this but roscpp fails to build as there is some problem with that particular older version of boost. Any help is greatly appreciated.

In file included from /Users/sreeharshacs/ros_catkin_ws/src/rviz/src/image_view/main.cpp:42:
In file included from /Users/sreeharshacs/ros_catkin_ws/src/rviz/src/image_view/image_view.h:31:
In file included from /Users/sreeharshacs/ros_catkin_ws/src/rviz/src/rviz/ogre_helpers/qt_ogre_render_window.h:36:
In file included from /usr/local/Cellar/ogre/1.7.4_4/include/OGRE/OgreColourValue.h:31:
In file included from /usr/local/Cellar/ogre/1.7.4_4/include/OGRE/OgrePrerequisites.h:315:
void check() BOOST_NOEXCEPT
^
/usr/local/include/boost/config/detail/suffix.hpp:959:26: note: expanded from macro 'BOOST_NOEXCEPT'
#  define BOOST_NOEXCEPT noexcept
^
In file included from /Users/sreeharshacs/ros_catkin_ws/src/rviz/src/image_view/main.cpp:42:
In file included from /Users/sreeharshacs/ros_catkin_ws/src/rviz/src/image_view/image_view.h:31:
In file included from /Users/sreeharshacs/ros_catkin_ws/src/rviz/src/rviz/ogre_helpers/qt_ogre_render_window.h:36:
In file included from /usr/local/Cellar/ogre/1.7.4_4/include/OGRE/OgreColourValue.h:31:
In file included from /usr/local/Cellar/ogre/1.7.4_4/include/OGRE/OgrePrerequisites.h:315:
{
^
In file included from /Users/sreeharshacs/ros_catkin_ws/src/rviz/src/image_view/main.cpp:42:
In file included from /Users/sreeharshacs/ros_catkin_ws/src/rviz/src/image_view/image_view.h:31:
In file included from /Users/sreeharshacs/ros_catkin_ws/src/rviz/src ...
edit retag close merge delete

Sort by » oldest newest most voted

I managed to solve this particular issue by adding

#ifdef __APPLE__
#define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif


before the first include in rviz/src/image_view/main.cpp. See also this question on stackoverflow.

more