Skip to content

Colcon build issue #7

@Spruudis

Description

@Spruudis

When building any C++ package I am presented with the following error:

CMake Error at CMakeLists.txt:10 (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.

I have sourced the .bashrc file and made some progress in fixing the error by appending CMAKE_PREFIX_PATH with the ROS2 installation path in the CMakeLists.txt, however this has only caused further colcon build environment errors.

When running the ROS2 installation script I get

Summary: 200 packages finished [3min 42s]
  2 packages had stderr output: demo_nodes_py launch_testing_ros

Any suggestions on how I could fix this problem?

Note: I am trying to install ROS2 on the Jetson AGX Xavier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions