Install bag_tools on noetic focal
I'm trying to install bag tools under instruction: http://wiki.ros.org/bag_tools?distro=...
The first that I notied there is no noetic distro(
To instal bag_tools I need to install srv_tools: http://wiki.ros.org/srv_tools
While installing under instructions:
cd ~/catkin_ws/src
mkdir srv_tools
cd srv_tools
git clone https://github.com/srv/srv_tools.git .
cd ../..
rosdep install --from-paths src --ignore-src --rosdistro noetic # install dependencies
catkin_make
The error occurs:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find Boost (missing: signals) (found version "1.71.0")
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindBoost.cmake:2179 (find_package_handle_standard_args)
srv_tools/pointcloud_tools/CMakeLists.txt:8 (find_package)
I tried to install signals for like that:
sudo apt-get install -y libboost-signals-dev
But got the error E: Unable to locate package libboost-signals-dev
I searched and found (https://bugs.launchpad.net/ubuntu/+so...) that boos v 1.71.0 does not have library signal but has signals2 but in cmake there is the link to signals.
Also I found that last version of boost with signals was 1.68.0. Then I removed the boost:
apt-get --purge remove libboost-dev libboost-doc
Unfortunately it deleted ros packages, but I was on my way and installed the 1.68.0 version of boost:
mkidr ~/boost && cd ~/boost
wget https://boostorg.jfrog.io/artifactory/main/release/1.68.0/source/boost_1_68_0.tar.gz
tar -zxvf boost_1_68_0.tar.gz
cd boost_1_68_0
cpuCores=`cat /proc/cpuinfo | grep "cpu cores" | uniq | awk '{print $NF}'`
echo "Available CPU cores: "$cpuCores
./bootstrap.sh # this will generate ./b2
sudo ./b2 --with=all -j $cpuCores install
And tryied to recover the deleted ros packages:
apt install ros-noetic-desktop-full
After I tried catkin_make
for srv_tools but the issue is the same. I checked the boost version and found that it is the 1.71.0
After apt install ros-noetic-desktop-full
it recovered the newest version of boost.
May be I'm wrong in explanation of error that occurs during installation or threre is no way to install srv_tools and bag_tools on noetic?
I do not have much knowledge about the packages that you are struggling with but I might have solution to your issue.
One question,
I see you have installed Boost by your own. Did you moved all the Boost related thing like library files
.so
and all the include headers to your system lib? if not the cmakelist won't know the location of the boost lib.One thing you can do for quick fix is, you can remove all the boost related thing from the CmakeList and define the path to the boost in your system.
This should solve your issue if it is with the Boost lib.