Windows C、 CXX编译器标识未知

Windows C、 CXX编译器标识未知,windows,ros,Windows,Ros,我正在尝试在windows上使用ROS。尝试运行turtlebot3教程时() 我遇到了一个错误 我已尝试安装Microsoft visual studio 2019,但似乎没有帮助 -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error in CMakeLists.txt: The CMAKE_C_COMPILER: cl is

我正在尝试在windows上使用ROS。尝试运行turtlebot3教程时() 我遇到了一个错误

我已尝试安装Microsoft visual studio 2019,但似乎没有帮助

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
  The CMAKE_C_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error in CMakeLists.txt:
  The CMAKE_CXX_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "D:/Edge/ROS/ws/turtlebot3/build/CMakeFiles/CMakeOutput.log".
See also "D:/Edge/ROS/ws/turtlebot3/build/CMakeFiles/CMakeError.log".

更新代码格式这是我的答案,但我会留下评论。ROS版本1在windows上基本上是不受支持的,除了melodic之外,还有点。建议要么使用(免费!),要么使用双启动Ubuntu(16或18,此时18可能更可取)。由于ROS1不是为在Windows上运行而设计的,因此社区和对它的支持很小,或者只关注ROS2。