intel / ros2_openvino_toolkit

Apache License 2.0
164 stars 84 forks source link

ros2_overlay_ws colcon build --symlink-install error #155

Open arun0303 opened 4 years ago

arun0303 commented 4 years ago

During step 4. Building and Installation -->Install ROS2_OpenVINO packages -->Build package cd ~/ros2_overlay_ws colcon build --symlink-install

[Processing: cv_bridge, message_filters, object_msgs, realsense_msgs] --- stderr: cv_bridge
make[2]: No rule to make target '/usr/lib/x86_64-linux-gnu/libboost_python3.so', needed by 'src/libcv_bridge.so'. Stop. make[2]: Waiting for unfinished jobs.... make[1]: [src/CMakeFiles/cv_bridge.dir/all] Error 2 make: [all] Error 2

Failed <<< cv_bridge [ Exited with code 2 ] Aborted <<< realsense_msgs
Aborted <<< message_filters
Aborted <<< object_msgs

Summary: 0 packages finished [2min 4s] 1 package failed: cv_bridge 3 packages aborted: message_filters object_msgs realsense_msgs 1 package had stderr output: cv_bridge 15 packages not processed

portgasray commented 4 years ago

During step 4. Building and Installation -->Install ROS2_OpenVINO packages -->Build package cd ~/ros2_overlay_ws colcon build --symlink-install

[Processing: cv_bridge, message_filters, object_msgs, realsense_msgs]

--- stderr: cv_bridge make[2]: No rule to make target '/usr/lib/x86_64-linux-gnu/libboost_python3.so', needed by 'src/libcv_bridge.so'. Stop. make[2]: Waiting for unfinished jobs.... make[1]: [src/CMakeFiles/cv_bridge.dir/all] Error 2 make: [all] Error 2 Failed <<< cv_bridge [ Exited with code 2 ] Aborted <<< realsense_msgs Aborted <<< message_filters Aborted <<< object_msgs

Summary: 0 packages finished [2min 4s] 1 package failed: cv_bridge 3 packages aborted: message_filters object_msgs realsense_msgs 1 package had stderr output: cv_bridge 15 packages not processed

u should go to the repo ros2_intel_realsense, and see the README, to install the dependencies, such as

sudo apt-get install ros-dashing-cv-bridge ros-dashing-librealsense2 ros-dashing-message-filters ros-dashing-image-transport

Check that! Good Luck!

arun0303 commented 4 years ago

During step 4. Building and Installation -->Install ROS2_OpenVINO packages -->Build package cd ~/ros2_overlay_ws colcon build --symlink-install

[Processing: cv_bridge, message_filters, object_msgs, realsense_msgs]

--- stderr: cv_bridge make[2]: No rule to make target '/usr/lib/x86_64-linux-gnu/libboost_python3.so', needed by 'src/libcv_bridge.so'. Stop. make[2]: Waiting for unfinished jobs.... make[1]: [src/CMakeFiles/cv_bridge.dir/all] Error 2 make: [all] Error 2 Failed <<< cv_bridge [ Exited with code 2 ] Aborted <<< realsense_msgs Aborted <<< message_filters Aborted <<< object_msgs Summary: 0 packages finished [2min 4s] 1 package failed: cv_bridge 3 packages aborted: message_filters object_msgs realsense_msgs 1 package had stderr output: cv_bridge 15 packages not processed

u should go to the repo ros2_intel_realsense, and see the README, to install the dependencies, such as

sudo apt-get install ros-dashing-cv-bridge ros-dashing-librealsense2 ros-dashing-message-filters ros-dashing-image-transport

Check that! Good Luck!

Yeah those dependencies were installed previously and tried again also but no effect. pls see the screenshot. Screenshot from 2019-11-25 11-32-03

portgasray commented 4 years ago

sudo apt remove ros-dashing-librealsense2, give it a shot! (I am not sure if this will work!)

then I will use rm install log build -rf and colcon build --symlink-install to reproduce the error under ros2 workspace.

arun0303 commented 4 years ago

sudo apt remove ros-dashing-librealsense2, give it a shot! (I am not sure if this will work!)

then I will use rm install log build -rf and colcon build --symlink-install to reproduce the error under ros2 workspace.

It did not worked.

portgasray commented 4 years ago

sudo apt remove ros-dashing-librealsense2, give it a shot! (I am not sure if this will work!) then I will use rm install log build -rf and colcon build --symlink-install to reproduce the error under ros2 workspace.

It did not worked.

since your error caused by boost, check whether installed correctly!

arun0303 commented 4 years ago

sudo apt remove ros-dashing-librealsense2, give it a shot! (I am not sure if this will work!) then I will use rm install log build -rf and colcon build --symlink-install to reproduce the error under ros2 workspace.

It did not worked.

since your error caused by boost, check whether installed correctly! I had verified boost is installed properly. pls find the screenshot Screenshot from 2019-12-02 15-29-53

portgasray commented 4 years ago

see the error information: needed by 'src/libcv_bridge.so'. Stop. there is nolibcv_bridge.so in my ros2_overlay_ws/src , so if you can show me where the libcv_bridge.so file libcv

arun0303 commented 4 years ago

libcv_bridge.so file is not available in my ros2_overlay_ws/src directory and its available inside /opt/ros/dashing/lib directory.

portgasray commented 4 years ago

libcv_bridge.so file is not available in my ros2_overlay_ws/src directory and its available inside /opt/ros/dashing/lib directory.

more information about the ros2_overlay_ws/src/vision_opencv:

portgasray commented 4 years ago

yeah, you should check the CMakeLists under cv_bridge, you'll find the valid information:

      # This is a bit of a hack to suppress a warning
      #   No header defined for python3; skipping header check
      # Which should only affect Boost versions < 1.67
      # Resolution for newer versions:
      #  https://gitlab.kitware.com/cmake/cmake/issues/16391

the sub-links in the issuse are very useful, especially the last one, _20191203135920

you should view it carefully and according to my experience, try the following: update line30 in ros2_overlay_ws/src/vision_opencv/cv_bridge image

hariharan382 commented 4 years ago

please anyone help me to solve the error error while running"colcon build --symlink-install"