Xilinx / KRS

The Kria Robotics Stack (KRS) is a ROS 2 superset for industry, an integrated set of robot libraries and utilities to accelerate the development, maintenance and commercialization of industrial-grade robotic solutions while using adaptive computing.
https://Xilinx.github.io/KRS/
Other
48 stars 18 forks source link

Cmake Issue when building the KRS #6

Closed kimonk closed 3 years ago

kimonk commented 3 years ago

Hi, I've been trying to build & use the KRS by following the guide found here:

https://xilinx.github.io/KRS/sphinx/build/html/docs/install.html

However, at the previous to last command (colcon build --merge-install), I get the following error message: _"Starting >>> acceleration_firmware --- stderr: acceleration_firmware
CMake Error at CMakeLists.txt:4 (find_package): By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ament_cmake", but CMake did not find one.

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

ament_cmakeConfig.cmake
ament_cmake-config.cmake

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

Have I missed something? I've installed all the prerequisites as required with no issues.

kimonk commented 3 years ago

This has been addressed in Pull Request #7. The issue was that ROS 2 was installed in a different directory because it had been built from the source. The original path was still extant though which made identifying the issue difficult.