Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

CMake - cl is not a full path...



  • Hi,

    I tried to work on Stellarium developpement with Wt Creator.
    But I have this error :
    "CMake Error at CMakeLists.txt:18 (PROJECT):
    The CMAKE_C_COMPILER:

    cl
    

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

    To use the JOM 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 at CMakeLists.txt:18 (PROJECT):
    The CMAKE_CXX_COMPILER:

    cl
    

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

    To use the JOM 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 "C:/Users/Club astro/AppData/Local/Temp/QtCreator-YqKszO/qtc-cmake-djccxrIV/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/Club astro/AppData/Local/Temp/QtCreator-YqKszO/qtc-cmake-djccxrIV/CMakeFiles/CMakeError.log".
    CMake Deprecation Warning:
    The 'cmake-server(7)' is deprecated. Please port clients to use the
    'cmake-file-api(7)' instead.
    "

    I don't know what I have to do (I search a long time on internet without any success).


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Might be a silly question but do you have a Qt version built with Visual Studio ?


Log in to reply