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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 146 times

Last updated: Jun 15 '18