ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Tortelenny's profile - activity

2023-04-03 15:37:34 -0500 marked best answer ROS2 - colcon build fails to find configuration file provided by "ament_cmake"

I'm currently doing the ROS2 tutorial on Windows 10: "Creating a workspace" (https://index.ros.org/doc/ros2/Tutori...) using Ros2_foxy. So I'm a beginner.

However, upon trying to build the workspace with colcon, I get the following error:

PS C:\dev_ws\ colcon build - -merge -install 
Starting turtlesim 
--- stderr: turtlesim 
CMake Error at CMakeLists . txt:12 (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.

It would seem that I need to change my PATH to include the ament files, but I have no idea where to find them. I reinstalled CMake using Chocolatey, but that didn't solve it. And of course I'm sourcing ROS in my terminal.

Any ideas on how to solve this?

2020-09-12 02:47:06 -0500 received badge  Famous Question (source)
2020-08-15 14:03:15 -0500 received badge  Notable Question (source)
2020-07-08 01:49:28 -0500 received badge  Popular Question (source)
2020-07-07 03:14:54 -0500 commented question ROS2 - colcon build fails to find configuration file provided by "ament_cmake"

I deleted it because I have no clue what solved it. I came back into work the next day, tried it again, and it worked. I

2020-07-07 03:13:38 -0500 commented question ROS2 - colcon build fails to find configuration file provided by "ament_cmake"

I deleted it because I have no clue what solved it. I came back into work the next day, tried it again, and it worked. I

2020-07-06 09:59:09 -0500 edited question ROS2 - colcon build fails to find configuration file provided by "ament_cmake"

ROS2 - colcon build fails to find configuration file provided by "ament_cmake" I'm currently doing the ROS2 tutorial on

2020-07-06 09:52:12 -0500 asked a question ROS2 - colcon build fails to find configuration file provided by "ament_cmake"

ROS2 - colcon build fails to find configuration file provided by "ament_cmake" I'm currently doing the ROS2 tutorial on

2020-06-30 07:59:20 -0500 received badge  Supporter (source)
2020-06-30 07:11:58 -0500 commented question Could not find the Qt platform plugin "windows"

This thread has helped me solve my problem: https://answers.ros.org/question/354707/qtqpaplugin-could-not-find-the-qt-pl

2020-06-30 06:09:13 -0500 commented question qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""

Same here! Thank you so much!!

2020-06-30 06:09:13 -0500 commented question Could not find the Qt platform plugin "windows"

Did you find a solution to this problem? I'm having a similar problem and have tried multiple solutions from other threa