Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Project ERROR: msvc-version.conf loaded but QMAKE_MSC_VER isn't set
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 3 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    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?

    P 1 Reply Last reply
    1
    • A Asperamanca

      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?

      P Offline
      P Offline
      PSI_lbc
      wrote on last edited by
      #2

      @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
      
      1 Reply Last reply
      1
      • S Offline
        S Offline
        seyed
        wrote last edited by seyed
        #3

        for me, removing .qmake.stash in the project folder solves the problem.
        reference: https://stackoverflow.com/a/54318956/1074799

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved