반응형
Qt Creator 에서 CMake 를 사용하려고 하는데 아래와 같은 에러가 발생하였다.
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.
위의 에러 해결은 환경변수에 cl.exe 와 해당 디렉토리를 Path에 추가 해주고 재부팅을 하면 해결 된다.
반응형
'프로그래밍 > QT' 카테고리의 다른 글
qtcreator Error (1) | 2023.12.03 |
---|---|
QopenGL 사용시 에러 (0) | 2021.01.09 |