问题描述
我已经部署了一个 5.10 32 位 msvc programm.exe
,它在 Windows 8.1 上运行正常.但我必须在 XP 上运行它,我不能这样做.它说progamm.exe 不是有效的 Win32 应用程序
".我注定了吗?我是否必须使用支持 XP 的最新版 Qt,例如 Qt5.6?谢谢!
I have deployed a 5.10 32bit msvc programm.exe
and it works ok on windows 8.1. But I have to run it on XP and I can not do it. It says "progamm.exe is not a valid Win32 app
". Am I doomed? Do I have to use the last version of Qt that supports XP, like Qt5.6?Thank you!
推荐答案
支持 XP 的最新版本是 Qt 5.6.3.默认情况下不启用 Windows XP 支持.您必须下载 Qt 源代码 并使用 ./configure -target xp.这意味着,如果您安装 Qt 5.6.3(预构建)包,则不会启用 Windows XP 支持!您必须编译源代码.Qt 5.6.3 处于严格阶段且可靠,如果您想支持 Windows XP,它仍然安装在中国、印度等地的许多计算机上.
The latest version that supports XP is Qt 5.6.3. The Windows XP support is not enabled by default. You have to download the Qt source-code and compile it with ./configure -target xp
. This means, if you install Qt 5.6.3 (pre-built) package the Windows XP support is not enabled! You must compile the source-code.Qt 5.6.3 is in strict phase and reliable if you want to support Windows XP, which is still installed on many computers in China, India, etc.
Qt 5.6.3 向上兼容并支持 Windows XP、Windows Vista、Windows 7、Windows 8、Windows 10.
Qt 5.6.3 is upwards compatible and supports additional to Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10.
Qt 5.7 及更高版本不支持 Windows XP.如果您修改 PE-Header 以使其运行,则应用程序很可能会不时崩溃,因为需要在 Windows XP 上不可用的 Windows API.
Qt 5.7 and upwards do not support Windows XP. If you modify the PE-Header to make it run, it's likely that the application will crash from time to time as Windows APIs are required that are not available on Windows XP.
这篇关于是否可以在 XP 上运行 Qt 5.10 程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!