Could not find 'cmake' executable
ROS version= ROS2 Foxy Fitzroy (with https://index.ros.org/doc/ros2/Instal... these instructions for installation. I'm not sure of the packages used, but the prerequisites listed are chocolatey, Visual Studio 2019, cmake and the likes that you will find on the link.)
OS = WIndows 10 Home Single Language; Version: 2004; OS build: 19041.450;
When executing the colcon build --merge-install
command
The error reads:
Traceback (most recent call last):
File "c:\python38\lib\site-packages\colcon_core\executor\__init__.py", line 91, in __call__
rc = await self.task(*args, **kwargs)
File "c:\python38\lib\site-packages\colcon_core\task\__init__.py", line 93, in __call__
return await task_method(*args, **kwargs)
File "c:\python38\lib\site-packages\colcon_cmake\task\cmake\build.py", line 87, in build
rc = await self._reconfigure(args, env)
File "c:\python38\lib\site-packages\colcon_cmake\task\cmake\build.py", line 172, in _reconfigure
raise RuntimeError("Could not find 'cmake' executable")
RuntimeError: Could not find 'cmake' executable
---
Failed <<< CARLA [0.05s, exited with code 1]
Aborted <<< gym [0.01s]
Summary: 0 packages finished [5.11s]
1 package failed: CARLA
1 package aborted: gym
1 package had stderr output: CARLA
Could not find 'cmake' executable
The error reads that it could not find the cmake executable. I checked the files in the Traceback via GUI that a cmake folder exists in the desired trajectories with _pycache_ folder, and __init__.py , build.py , test.py scripts present in it. Should I try to build CMake again from the source tree? I am not sure. please help.