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

Project ERROR: msvc-version.conf loaded but QMAKE_MSC_VER isn't set



  • When I try to switch a subdirs project's kit to MSVC, I get the error message
    "Project ERROR: msvc-version.conf loaded but QMAKE_MSC_VER isn't set"
    and none of the subdir projects are loaded (my "Projects" tree only has the root node and the top .pro file).

    I'd love to set QMAKE_MSC_VER correctly, but I can't seem to find it in the Qt documentation. At least nothing relevant turns up, and it's certainly not in the qmake variable list.

    Can anyone give me a hint what's missing?



  • @Asperamanca

    Probably resolved this already..but this is for anyone else having a similar issue.

    Add..
    QMAKE_MSC_VER = 1900
    QMAKE_MSVC_VER = 14.0
    to the file..
    \5.13.2\msvc2017\mkspecs\win32-msvc

    #
    # qmake configuration for win32-msvc
    #
    # Written for Microsoft C/C++ Optimizing Compiler (all desktop versions)
    #
    
    include(../common/msvc-desktop.conf)
    
    QMAKE_CFLAGS           +=
    
    QMAKE_CXXFLAGS         +=
    
    load(qt_config)
    
    QMAKE_MSC_VER = 1900
    QMAKE_MSVC_VER = 14.0
    

Log in to reply