I have VS2015 and VS2008 installed on my system along with several versions of Qt, including Qt 5.9 (official installer). In order to generate a visual studio project from a .pro file I use this command:
C:\Qt\5.9.0-win32\5.9\msvc2015\bin\qmake.exe -tp vc dm.pro
C:\Qt\5.9.0-win32\5.9\msvc2015\bin\qmake.exe -tp vc dm.pro
To copy to clipboard, switch view to plain text mode
or this one:
C:\Qt\5.9.0-win32\5.9\msvc2015\bin\qmake.exe -spec win32-msvc -tp vc dm.pro
C:\Qt\5.9.0-win32\5.9\msvc2015\bin\qmake.exe -spec win32-msvc -tp vc dm.pro
To copy to clipboard, switch view to plain text mode
Both fail equally with the following response:
C:/Qt/5.9.0-win32/5.9/msvc2015/mkspecs/features/toolchain.prf:129: Variable QMAKE_CXX.COMPILER_MACROS is not defined.
Project ERROR: msvc-version.conf loaded but QMAKE_MSC_VER isn't set
In Qt 5.8, Qt 5.7, and Qt 4.8 everything works fine. Am I doing anything wrong?
Bookmarks