1

我使用 Qt 5.0.2 制作了一个应用程序,并使用 inno setup 进行了构建。该应用程序已成功安装并在我的系统上启动并且工作正常。但是当我在其他系统上安装它时,应用程序没有安装或启动也没有显示错误。请帮帮我......怎么办

4

1 回答 1

0

如果您使用 Visual Studio 构建您的应用程序,您可能需要在目标计算机上安装 vcredist_sp1_x86.exe。您可以在 Qt 的安装文件夹中的某个位置找到它。您可以将其添加到 Inno 脚本中的文件列表中,并在 [Run] 部分添加条目。还要确保您已包含在安装脚本中:

Qt5Core.dll
Qt5Gui.dll
Qt5Widgets.dll
libGLESv2.dll
icuuc49.dll
icuin49.dll
icudt49.dll
D3DCompiler_43.dll
plugins/platforms/qwindows.dll ->should be installed in platforms/qwindows.dll in the destination folder. The same applies to imageformats plugins if you use them.

如果您认为 dll 太多,您将需要使用其他配置选项重建 Qt,但那是另一回事了……

于 2013-05-23T00:10:26.043 回答