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

Error while building ROS2 code on windows

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

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\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 ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

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

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: https://github.com/ros2/ros2/wiki/Win... search for “command prompt”

edit flag offensive delete link more

Question Tools

2 followers

Stats

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

Seen: 425 times

Last updated: Jun 15 '18