Nav2 build failed on nav2_util; can't find /include
Hello, I'm fairly new to using Ubuntu 20.04, Nav2, and ROS/ROS2, but I'll try my best to describe the problem. Here are my environment versions from running: $ env | grep ROS
ROS_VERSION=2
ROS_PYTHON_VERSION=3
ROS_LOCALHOST_ONLY=0
ROS_DISTRO=foxy
I was following the Nav2 build and install tutorial by first installing ROS2 (all went well, can run talker & listener no problem). Then I made the nav2_ws folder in my home directory, and cloned the feoxy-devel repo into an internal 'src' folder; like described in the instrutions. Running
rosdep install -y -r -q --from-paths src --ignore-src --rosdistro foxy
results in "#All required rosdeps installed successfully". Finally, running
colcon build --symlink-install
yields my error with nav2_util (see below). I think it's saying that it can't find the /include directory where Boost is located. I've tried changing line 35 in the CMakeLists.txt in the path "/home/xxxx/nav2_ws/src/navigation2/nav2_util" to match the path to Boost in /usr/include but it didn't work.
Starting >>> nav2_util
--- stderr: nav2_util
CMake Error in src/CMakeLists.txt:
Imported target "Boost::program_options" includes non-existent path
"/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in src/CMakeLists.txt:
Imported target "Boost::program_options" includes non-existent path
"/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Generate step failed. Build files cannot be regenerated correctly.
---
Failed <<< nav2_util
Thank you for taking the time to read my problem, and I appreciate any assistance received!
Hi I have this issue working with rolling distro on ubuntu 22..Any suggestions
same issue on ubuntu 20