Revision history [back]

ROS Cmake won't see boost library

Hello, I am currently writing a cpp in my ROS package based on this tutorial but there seems to be a linking error as the boost::filesystem classes aren't recognized.

I've searched for an answer on the Internet and only found the suggestion to add #define BOOST_FILESYSTEM_VERSION 2 after the #include for boost,which unfortunately doesn't help and there were also suggestions of explicitly linking to boost_system in my CMakeLists.txt but since I've only started using cmake since I've begun ROS I don't know to do much beyond adding executables.

I am working on Ubuntu 11.10 the boost libraries include with it are 1.46.1 and I am working with ROS electric and I feel the need to mention that I've used boost shared pointers in this package before without needing to add any includes or dependencies.

Any answers on what I need to add to my CMakeList.txt, if that is where I need to work, would be greatly appreciated.

 2 retagged

ROS Cmake won't see boost library

Hello, I am currently writing a cpp in my ROS package based on this tutorial but there seems to be a linking error as the boost::filesystem classes aren't recognized.

I've searched for an answer on the Internet and only found the suggestion to add #define BOOST_FILESYSTEM_VERSION 2 after the #include for boost,which unfortunately doesn't help and there were also suggestions of explicitly linking to boost_system in my CMakeLists.txt but since I've only started using cmake since I've begun ROS I don't know to do much beyond adding executables.

I am working on Ubuntu 11.10 the boost libraries include with it are 1.46.1 and I am working with ROS electric and I feel the need to mention that I've used boost shared pointers in this package before without needing to add any includes or dependencies.

Any answers on what I need to add to my CMakeList.txt, if that is where I need to work, would be greatly appreciated.

 3 retagged

ROS Cmake won't see boost library

Hello, I am currently writing a cpp in my ROS package based on this tutorial but there seems to be a linking error as the boost::filesystem classes aren't recognized.

I've searched for an answer on the Internet and only found the suggestion to add #define BOOST_FILESYSTEM_VERSION 2 after the #include for boost,which unfortunately doesn't help and there were also suggestions of explicitly linking to boost_system in my CMakeLists.txt but since I've only started using cmake since I've begun ROS I don't know to do much beyond adding executables.

I am working on Ubuntu 11.10 the boost libraries include with it are 1.46.1 and I am working with ROS electric and I feel the need to mention that I've used boost shared pointers in this package before without needing to add any includes or dependencies.

Any answers on what I need to add to my CMakeList.txt, if that is where I need to work, would be greatly appreciated.