Robotics StackExchange | Archived questions

Error while building ROS2 code on windows

I followed these steps for installing and building ROS2 code on Windows. While compiling the code using python src\ament\ament_tools\scripts\ament.py build, it throws an error as No CMAKE_C_COMPILER could be found and NO CMAKE_CXX_COMPILER could be found. I have installed the VS 2015 correctly and i am opening the console through VS2015 x64 Native Tools Command Prompt and this should automatically set the path.

Where am i going wrong ?

Asked by vishal_rawat on 2018-06-15 04:53:46 UTC

Comments

Answers

In my experience this occurs when you try to build from a non visual studio cmd prompt. The normal cmd.exe isn’t able to compile code because the compiler is not on the path. Our install instructions mention that you need a visual studio command prompt and how to open one: https://github.com/ros2/ros2/wiki/Windows-Development-Setup search for “command prompt”

Asked by William on 2018-06-15 10:21:45 UTC

Comments