Open potentialdiffer opened 5 years ago
as stated in the other issue, there might be a problem with the cmake files.
Could you please elaborate on the problem you think is present or, ideally, submit a pull request which corrects the problem.
I also have the same problem when I cross compile. It fails when cross compiling tf2_ros
and rclcpp_components
package.
The error log
[2.013s] aarch64-linux-gnu/bin/ld: warning: librosidl_typesupport_fastrtps_cpp.so, needed by /home/r18119/ros_hisi/dashing/install/lib/libbuiltin_interfaces__rosidl_typesupport_fastrtps_c.so, not found (try using -rpath or -rpath-link)
[2.014s] aarch64-linux-gnu/bin/ld: warning: librosidl_typesupport_fastrtps_c.so, needed by /home/r18119/ros_hisi/dashing/install/lib/libbuiltin_interfaces__rosidl_typesupport_fastrtps_c.so, not found (try using -rpath or -rpath-link)
[2.014s] aarch64-linux-gnu/bin/ld: warning: libfastrtps.so.1, needed by /home/r18119/ros_hisi/dashing/install/lib/libbuiltin_interfaces__rosidl_typesupport_fastrtps_c.so, not found (try using -rpath or -rpath-link)
[2.015s] aarch64-linux-gnu/bin/ld: warning: libssl.so.3, needed by /home/r18119/ros_hisi/dashing/install/lib/libbuiltin_interfaces__rosidl_typesupport_fastrtps_c.so, not found (try using -rpath or -rpath-link)
[2.015s] aarch64-linux-gnu/bin/ld: warning: libcrypto.so.3, needed by /home/r18119/ros_hisi/dashing/install/lib/libbuiltin_interfaces__rosidl_typesupport_fastrtps_c.so, not found (try using -rpath or -rpath-link)
[2.015s] aarch64-linux-gnu/bin/ld: warning: libfastcdr.so.1, needed by /home/r18119/ros_hisi/dashing/install/lib/libbuiltin_interfaces__rosidl_typesupport_fastrtps_c.so, not found (try using -rpath or -rpath-link)
[2.016s] aarch64-linux-gnu/bin/ld: warning: libPocoFoundation.so.64, needed by /home/r18119/ros_hisi/dashing/install/lib/librosidl_typesupport_c.so, not found (try using -rpath or -rpath-link)
It seems like that libbuiltin_interfaces__rosidl_typesupport_fastrtps_c.so
and libbuiltin_interfaces__rosidl_typesupport_fastrtps_cpp.so
don't link to dependencies properly. I check the ros install/lib
directory, and all the warning libs are exist.
Bug report
Required Info:
Steps to reproduce issue
Official Cross Compilation Instruction: https://index.ros.org/doc/ros2/Tutorials/Cross-compilation/#cross-compiling-examples-for-arm
Expected behavior
Successful cross compiling
Actual behavior
The compilation fails when trying to compile rcl package:
Additional information
Related issue in cross_compile repo: https://github.com/ros2/cross_compile/issues/17
Disabling test compilation lead in successful compilation, as stated in the other issue, there might be a problem with the cmake files.