qt5.9.0语言家更新翻译无法生成ts,输出如下:
Starting external tool "C:\Qt\Qt5.9.0\5.9\msvc2017_64\bin\lupdate.exe" F:/ColorTestServer_SchemeDesign/ColorTestServer/ColorTestServer/ColorTestServer.pro
WARNING: C:/Qt/Qt5.9.0/5.9/msvc2017_64/mkspecs/features/toolchain.prf:129: Variable QMAKE_CXX.COMPILER_MACROS is not defined.
WARNING: Project ERROR: msvc-version.conf loaded but QMAKE_MSC_VER isn't set
"C:\Qt\Qt5.9.0\5.9\msvc2017_64\bin\lupdate.exe" finished
解决办法:
修改C:\Qt\Qt5.9.0\5.9\msvc2017_64\mkspecs\common\msvc-version.conf文件,增加QMAKE_MSC_VER = 1900如下: