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

Cmake Issue when building the KRS #6

Closed
kimonk opened this issue Sep 24, 2021 · 1 comment
Closed

Cmake Issue when building the KRS #6

kimonk opened this issue Sep 24, 2021 · 1 comment

Comments

@kimonk
Copy link

kimonk commented Sep 24, 2021

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
"ament_cmake" 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
Copy link
Author

kimonk commented Sep 24, 2021

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.

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

1 participant