How to make package using ROS on Windows ?
While using catkin_make in the folder with CMakeLists.txt file, the following error was shown: What is the correct way to make a package while using ROS in Windows 10?
Visual Studio: Community Version
-- 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.
Just checking: are you running this from the Visual Studio command prompt (ie: the shortcut you are instructed to create at the beginning of the installation instructions)?
If not, your environment hasn't been setup correctly leading to CMake/Catkin not being able to find the necessary tools (such as the compiler).
I get the same problem with the Administrative command line shortcut
shows that I have the correct environment variables.
@jalamani@Matt_Blanc, have you run the Visual Studio developer command prompt as the Wiki page described? Also you will need to make sure your
Desktop development with C++
is installed along with your Visual Studio 2019 (see here for information).