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

boost::filesystem version issues

asked 2011-07-06 07:25:37 -0500

ICodeRaven gravatar image

updated 2011-09-03 15:25:09 -0500

kwc gravatar image

So, I've been building ROS on Fedora 15, and there are a few persistent issues that keep cropping up every time the ROS source code is updated.

The most annoying issue is concerning the version of the Boost libraries used in the code. A bit of googling brought me here which made me realize that this was an issue with the changeover from boost::filesystem from v2 to v3, and so I had to add a #define BOOST_FILESYSTEM_VERSION 2 to all files including a #include <boost/filesystem.hpp>. To find these files, I used

find . | xargs grep 'boost/filesystem.hpp' -sl

this gave me about 9 files which I modified, and ran the script again.

Do I report this as an issue?

Additionally, unlike ubuntu all the packages/stacks are not rosmake'd on install. For example, for image_view, I need to rosmake image_views and the plugins and opencv2 (For which I had to do the same Boost thing to boost_fs_wrapper.cpp)

edit retag flag offensive close merge delete

Comments

1 Answer

Sort by » oldest newest most voted
4

answered 2011-07-18 08:49:13 -0500

tfoote gravatar image

If there's a specific package broken please file tickets for the specific package. The transition from boost filesystem 2 -> 3 is going to be generally painful and each usage will likely have to have ifdef logic for a while.

The rosmake is true on any system where you are installing from source. You need to compile all the packages you expect to use.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-07-06 07:25:37 -0500

Seen: 955 times

Last updated: Jul 18 '11