Closed samlei-research closed 11 months ago
@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..
@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.
@jasvinderkhurana
Finally got it working. Issue can be closed.
It was just a problem with the underlying ROS workspace.
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:
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.