Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QMAKE_MSC_VER isn't set

Tags:

After I changed my Qt Version from 5.5.1 to 5.12.0 I get following message while I try to build any project:

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

I selected the Qt 5.12.0 MSVC2017 32bit Kit instead of the Qt 5.5.1 (msvc 2013) Kit.

Does anybody know the reason for this message and could explain me how I should fix it?

like image 212
Mounty Avatar asked Dec 07 '18 07:12

Mounty


2 Answers

Try removing any .qmake.stash files in your projects. This fixed this same issue for me when building QT from source after previously building with a different target.

like image 157
pdx_interactives Avatar answered Sep 18 '22 15:09

pdx_interactives


Open msvc-version.conf (in my case in C:\Qt\Qt5.12.8\5.12.8\msvc2017_64\mkspecs\common)

add

QMAKE_MSC_VER = 1929 

at the beginning (for VS2019).

like image 34
Felix Xu Avatar answered Sep 19 '22 15:09

Felix Xu