ros2 / ros1_bridge

ROS 2 package that provides bidirectional communication between ROS 1 and ROS 2
Apache License 2.0
436 stars 283 forks source link

Colcon build failed (updated) #318

Closed larsvlent closed 3 years ago

larsvlent commented 3 years ago

Bug report

Required Info:

Steps to reproduce issue

source /opt/ros/dashing/setup.bash
source /opt/ros/melodic/setup.bash
. install/setup.bash

Expected behavior

A succelfull build

Actual behavior

At this moment I only have this following type of error: runtime library [liburdfdom_sensor.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in: /opt/ros/dashing/lib

The other's are gone. Original issue below. Could you please help me? How do I fix this?

-------------OLD BELOW-------------- Colcon build failed: I have this: runtime library [liburdfdom_sensor.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in: /opt/ros/dashing/lib

and: `CMake Warning at CMakeLists.txt:142 (add_executable): Cannot generate a safe runtime search path for target dynamic_bridge because there is a cycle in the constraint graph:

dir 0 is [/opt/ros/dashing/lib]
  dir 1 must precede it due to runtime library [liblaser_geometry.so]
  dir 3 must precede it due to runtime library [libimage_transport.so]
dir 1 is [/opt/ros/melodic/lib]
  dir 3 must precede it due to runtime library [libimage_transport.so]
dir 2 is [/home/butterfly/ros1_bridge_ws/build/ros1_bridge]
dir 3 is [/home/butterfly/ros_catkin_ws/devel/lib]`

Full report:

`Starting >>> ros1_bridge [Processing: ros1_bridge]
--- stderr: ros1_bridge
CMake Warning at CMakeLists.txt:142 (add_executable): Cannot generate a safe runtime search path for target dynamic_bridge because files in some directories may conflict with libraries in implicit directories:

runtime library [liburdfdom_sensor.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_model_state.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_model.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_world.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): CMakeLists.txt:202 (custom_executable)

CMake Warning at CMakeLists.txt:142 (add_executable): Cannot generate a safe runtime search path for target dynamic_bridge because there is a cycle in the constraint graph:

dir 0 is [/opt/ros/dashing/lib]
  dir 1 must precede it due to runtime library [liblaser_geometry.so]
  dir 3 must precede it due to runtime library [libimage_transport.so]
dir 1 is [/opt/ros/melodic/lib]
  dir 3 must precede it due to runtime library [libimage_transport.so]
dir 2 is [/home/butterfly/ros1_bridge_ws/build/ros1_bridge]
dir 3 is [/home/butterfly/ros_catkin_ws/devel/lib]

Some of these libraries may not be found correctly. Call Stack (most recent call first): CMakeLists.txt:202 (custom_executable)

CMake Warning at CMakeLists.txt:142 (add_executable): Cannot generate a safe runtime search path for target parameter_bridge because files in some directories may conflict with libraries in implicit directories:

runtime library [liburdfdom_sensor.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_model_state.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_model.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_world.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): CMakeLists.txt:195 (custom_executable)

CMake Warning at CMakeLists.txt:142 (add_executable): Cannot generate a safe runtime search path for target parameter_bridge because there is a cycle in the constraint graph:

dir 0 is [/opt/ros/dashing/lib]
  dir 1 must precede it due to runtime library [liblaser_geometry.so]
  dir 3 must precede it due to runtime library [libimage_transport.so]
dir 1 is [/opt/ros/melodic/lib]
  dir 3 must precede it due to runtime library [libimage_transport.so]
dir 2 is [/home/butterfly/ros1_bridge_ws/build/ros1_bridge]
dir 3 is [/home/butterfly/ros_catkin_ws/devel/lib]

Some of these libraries may not be found correctly. Call Stack (most recent call first): CMakeLists.txt:195 (custom_executable)

CMake Warning at CMakeLists.txt:142 (add_executable): Cannot generate a safe runtime search path for target static_bridge because files in some directories may conflict with libraries in implicit directories:

runtime library [liburdfdom_sensor.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_model_state.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_model.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_world.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): CMakeLists.txt:188 (custom_executable)

CMake Warning at CMakeLists.txt:142 (add_executable): Cannot generate a safe runtime search path for target static_bridge because there is a cycle in the constraint graph:

dir 0 is [/opt/ros/dashing/lib]
  dir 1 must precede it due to runtime library [liblaser_geometry.so]
  dir 3 must precede it due to runtime library [libimage_transport.so]
dir 1 is [/opt/ros/melodic/lib]
  dir 3 must precede it due to runtime library [libimage_transport.so]
dir 2 is [/home/butterfly/ros1_bridge_ws/build/ros1_bridge]
dir 3 is [/home/butterfly/ros_catkin_ws/devel/lib]

Some of these libraries may not be found correctly. Call Stack (most recent call first): CMakeLists.txt:188 (custom_executable)

CMake Warning at CMakeLists.txt:171 (add_library): Cannot generate a safe runtime search path for target ros1_bridge because files in some directories may conflict with libraries in implicit directories:

runtime library [liburdfdom_sensor.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_model_state.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_model.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib
runtime library [liburdfdom_world.so.1.0] in /usr/lib/aarch64-linux-gnu may be hidden by files in:
  /opt/ros/dashing/lib

Some of these libraries may not be found correctly.


Finished <<< ros1_bridge [37.0s]

Summary: 1 package finished [38.1s] 1 package had stderr output: ros1_bridge `

Additional information

Please help

Reuben-Lim commented 3 years ago

Hi. I'm having your "old issue". How did you resolve it? My ROS1 is noetic while ROS2 is foxy.

gerni17 commented 2 years ago

Hi @larsvlent @Reuben-Lim .

How did you solve this issue?

ljaniec commented 2 years ago

This may not be important, but the steps did not include source for both workspaces (catkin_ws for ROS1 and ament_ws for ROS 2). Could you check it?

source /opt/ros/noetic/setup.bash
source /opt/ros/foxy/setup.bash
source ~/catkin_ws/devel/setup.bash
source ~/ament_ws/install/local_setup.bash
colcon build --packages-select ros1_bridge --cmake-force-configure
faraz7321 commented 1 year ago

Hi. I'm having your "old issue". How did you resolve it? My ROS1 is noetic while ROS2 is foxy.

any fix?