经过无数次尝试,发现只有5.7.0能支持xp,醉了~~~~
换用VS2013来编译(2015要选择平台集才能支持XP)
前面一些过程参考:https://dllhook.com/post/201.html
不同的地方:
修改msvc-desktop.conf文件,更改 MD为MT QMAKE_CFLAGS_RELEASE = -O2 -MD QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi QMAKE_CFLAGS_DEBUG = -Zi -MDd 改为: QMAKE_CFLAGS_RELEASE = -O2 -MT QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi QMAKE_CFLAGS_DEBUG = -Zi –MTd QT5.5默认不支持XP,想要支持XP的话需要作如下修改: QMAKE_CFLAGS = -nologo -Zc:wchar_t QMAKE_CXXFLAGS = $$QMAKE_CFLAGS QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE@QMAKE_SUBSYSTEM_SUFFIX@ QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS@QMAKE_SUBSYSTEM_SUFFIX@ 改为: QMAKE_CFLAGS = -nologo -Zc:wchar_t /D _USING_V110_SDK71 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS /D _USING_V110_SDK71 QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE ,"5.01" QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS ,"5.01"
QTDIR: D:\Qt\Qt5.9.1PATH %QTDIR%\5.7\src\configure -confirm-license -opensource -platform win32-msvc -debug-and-release -static -static-runtime -force-debug-info -prefix "D:\Qt\Qt5.9.1\5.9.1\msvc2015_static" -qt-sqlite -qt-pcre -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -nomake tools -nomake tests -no-compile-examples -nomake examples -skip qtwebkit -mp nmake nmake install
漫长等待几小时(视机器配置),搞定!
参考文章:https://www.cnblogs.com/findumars/p/6410768.html
发表评论