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

Error while building ROS2 code on windows

asked 2018-06-15 04:53:46 -0600

vishal_rawat gravatar image

I followed these steps for installing and building ROS2 code on Windows. While compiling the code using python src\ament\ament_tools\scripts\ 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 ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-06-15 10:21:45 -0600

William gravatar image

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: search for “command prompt”

edit flag offensive delete link more

Question Tools



Asked: 2018-06-15 04:53:46 -0600

Seen: 410 times

Last updated: Jun 15 '18