Couldn't run : colcon build --merge-install

asked 2021-03-31 08:35:56 -0600

Turtle_indigo gravatar image

updated 2021-04-01 04:23:37 -0600

Hi, I am trying to install ROS for the first time. I use ROS Foxy, Windows 10 and VS2019. I followed ROS tutorial here :

When i launched : >colcon build --merge-install, I obtained this :

[5.466s] root DEBUG Using proactor: IocpProactor
[5.537s] colcon.colcon_ros.prefix_path.catkin WARNING The path 'C:\opt\ros\noetic\x64\tools\vcpkg\installed\x64-windows' in the environment variable CMAKE_PREFIX_PATH doesn't exist
Starting >>> ament_package
Starting >>> ament_lint
Starting >>> gtest_vendor
Starting >>> fastcdr
Starting >>> ament_cppcheck
Starting >>> cyclonedds
Starting >>> osrf_pycommon
Starting >>> osrf_testing_tools_cpp
--- stderr: cyclonedds
CMake Error at CMakeLists.txt:13 (project):
  No CMAKE_C_COMPILER could be found.

Failed   <<< cyclonedds [4.58s, exited with code 1]
Aborted  <<< gtest_vendor [4.72s]
Aborted  <<< fastcdr [5.08s]
Aborted  <<< ament_lint [5.66s]
Aborted  <<< ament_package [5.70s]
Aborted  <<< ament_cppcheck [5.55s]
Aborted  <<< osrf_pycommon [5.48s]
Aborted  <<< osrf_testing_tools_cpp [6.72s]

Summary: 0 packages finished [11.7s]
  1 package failed: cyclonedds
  7 packages aborted: ament_cppcheck ament_lint ament_package fastcdr gtest_vendor osrf_pycommon osrf_testing_tools_cpp
  3 packages had stderr output: cyclonedds fastcdr osrf_testing_tools_cpp
  302 packages not processed
edit retag flag offensive close merge delete



I use ROS Neotic, Windows 10 and VS2019. I followed ROS tutorial here :

the link points to the ROS 2 Foxy installation documentation for a Windows development setup.

You are not using ROS Noetic, as that's a ROS 1 version.

gvdhoorn gravatar image gvdhoorn  ( 2021-03-31 09:01:34 -0600 )edit

My bad, I am installing Foxy ... (topic edited)

Turtle_indigo gravatar image Turtle_indigo  ( 2021-04-01 03:13:50 -0600 )edit

Ok, I managed to fix that by reinstalling Visual Studio. Now I get :

Summary: 0 packages finished [6.00s]

Is that a good sign ? Because ros2 is still not recognized as an intern command.

Turtle_indigo gravatar image Turtle_indigo  ( 2021-04-01 04:12:37 -0600 )edit