Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross compilation on Ubuntu 22.04 fails with not finding rmw_cyclonedds_cpp #97

Closed
samlei-research opened this issue Oct 10, 2023 · 3 comments

Comments

@samlei-research
Copy link

Followed steps

I followed these instructions, previously the instructions for KRS installation:
https://xilinx.github.io/KRS/sphinx/build/html/docs/install.html

The native installed ros instance and the local krs_ws are sourced.

It fails when executing:
colcon build --build-base=build-kr260-ubuntu --install-base=install-kr260-ubuntu --merge-install --mixin kr260 --cmake-args -DNOKERNELS=true

Error

Could not find a package configuration file provided by
"rmw_cyclonedds_cpp" with any of the following names:

rmw_cyclonedds_cppConfig.cmake
rmw_cyclonedds_cpp-config.cmake

Add the installation prefix of "rmw_cyclonedds_cpp" to CMAKE_PREFIX_PATH or
set "rmw_cyclonedds_cpp_DIR" to a directory containing one of the above
files. If "rmw_cyclonedds_cpp" provides a separate development package or
SDK, be sure it has been installed.

It does not find rmw_cyclonedds_cpp and its configuration even its installed.

@jasvinderkhurana
Copy link
Collaborator

@samlei-research ,

Thanks for reporting!

Can you please check if you have exported RMW_IMPLEMENTATION on your x86 machine. If yes, please use a different terminal and ensure that the RMW_IMPLEMENTATION is not set while cross compiling. Also, please delete your build and install folders before rebuilding it.

Let me know if that works..

@samlei-research
Copy link
Author

samlei-research commented Oct 16, 2023

@jasvinderkhurana

It got a step further with your tip (maybe this should be mentioned in the documentation). But when trying to cross-compile the vadd_publisher with the following command:

colcon build --build-base=build-kr260 --install-base=install-kr260 --merge-install --mixin kr260 --packages-select ament_acceleration ament_vitis vadd_publisher

ament_vitis does not find ament_accelerationConfig.cmake even its built and located in the install folder.

I am using the ros2 humble distro.

@samlei-research
Copy link
Author

@jasvinderkhurana

Finally got it working. Issue can be closed.

It was just a problem with the underlying ROS workspace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants