moveit2 icon indicating copy to clipboard operation
moveit2 copied to clipboard

Errors while installing moveit2 from source

Open frywayne666 opened this issue 6 years ago • 0 comments

Description

When I tried to build the master branch from source using the README instructions, I got some errors.

Your environment

  • ROS Distro: Dashing
  • OS Version: Ubuntu 18.04
  • Source build

Steps to reproduce

  1. I follow this instruction to installed ros2.
  2. Move to home and run the following commands from README.md
sudo apt-get install python-vcstool python3-colcon-common-extensions
mkdir -p ~/moveit2_ws/src
cd ~/moveit2_ws/src
git clone https://github.com/AcutronicRobotics/moveit2 -b master
cd ..
vcs import src < src/moveit2/moveit2.repos
export ROS_DISTRO=dashing
source /opt/ros/dashing/setup.bash
rosdep update && rosdep install -q -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO}
colcon build --merge-install

Expected behavior

Build command should complete successfully

Actual behaviour

After rosdep update && rosdep install -q -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO}, then some errors happended.

updated cache in /home/g4user-18/.ros/rosdep/sources.cache
dpkg-query: no packages found matching liburdfdom-dev
dpkg-query: no packages found matching freeglut3-dev
dpkg-query: no packages found matching ros-dashing-python-qt-binding
dpkg-query: no packages found matching liburdfdom-headers-dev
dpkg-query: no packages found matching libfcl-dev
dpkg-query: no packages found matching libqt4-opengl-dev
dpkg-query: no packages found matching ros-dashing-ompl
dpkg-query: no packages found matching libqglviewer-dev-qt4
dpkg-query: no packages found matching libglew-dev
dpkg-query: no packages found matching python3-mock
dpkg-query: no packages found matching ros-dashing-cv-bridge
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
srdfdom: No definition of [boost] for OS version [bionic]
moveit_core: No definition of [boost] for OS version [bionic]
geometric_shapes: No definition of [boost] for OS version [bionic]
random_numbers: No definition of [boost] for OS version [bionic]

Eventually, the build failed.

--- stderr: camera_calibration_parsers                                         
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse_ini.cpp: In function ‘bool camera_calibration_parsers::writeCalibrationIni(const string&, const string&, const CameraInfo&)’:
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse_ini.cpp:307:12: error: ‘class rcpputils::fs::path’ has no member named ‘empty’
   if (!dir.empty() && !rcpputils::fs::exists(dir) &&
            ^~~~~
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse_ini.cpp:308:21: error: ‘create_directories’ is not a member of ‘rcpputils::fs’
     !rcpputils::fs::create_directories(dir))
                     ^~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/camera_calibration_parsers.dir/src/parse_ini.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp: In function ‘bool camera_calibration_parsers::writeCalibrationYml(const string&, const string&, const CameraInfo&)’:
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:171:12: error: ‘class rcpputils::fs::path’ has no member named ‘empty’
   if (!dir.empty() && !rcpputils::fs::exists(dir) &&
            ^~~~~
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:172:21: error: ‘create_directories’ is not a member of ‘rcpputils::fs’
     !rcpputils::fs::create_directories(dir))
                     ^~~~~~~~~~~~~~~~~~
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse.cpp: In function ‘bool camera_calibration_parsers::writeCalibration(const string&, const string&, const CameraInfo&)’:
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse.cpp:54:9: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
   if (p.extension().string() == ".ini") {
         ^~~~~~~~~
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse.cpp:56:16: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
   } else if (p.extension().string() == ".yml" || p.extension().string() == ".yaml") {
                ^~~~~~~~~
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse.cpp:56:52: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
   } else if (p.extension().string() == ".yml" || p.extension().string() == ".yaml") {
                                                    ^~~~~~~~~
In file included from /opt/ros/dashing/include/rclcpp/client.hpp:39:0,
                 from /opt/ros/dashing/include/rclcpp/callback_group.hpp:23,
                 from /opt/ros/dashing/include/rclcpp/any_executable.hpp:20,
                 from /opt/ros/dashing/include/rclcpp/memory_strategy.hpp:24,
                 from /opt/ros/dashing/include/rclcpp/memory_strategies.hpp:18,
                 from /opt/ros/dashing/include/rclcpp/executor.hpp:33,
                 from /opt/ros/dashing/include/rclcpp/executors/multi_threaded_executor.hpp:24,
                 from /opt/ros/dashing/include/rclcpp/executors.hpp:21,
                 from /opt/ros/dashing/include/rclcpp/rclcpp.hpp:144,
                 from /home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse.cpp:42:
/home/g4user-18/moveit2_ws/src/image_common/camera_calibration_parsers/src/parse.cpp:62:9: error: ‘class rcpputils::fs::path’ has no member named ‘extension’
       p.extension().string().c_str());

The full output here: moveit2_build_output.txt

frywayne666 avatar Nov 19 '19 09:11 frywayne666