【发布时间】:2017-05-09 15:17:48
【问题描述】:
我正在运行使用 Qt+MSVC15 编译的可执行文件。当我在另一个 Windows 系统上安装相同的 .exe 时,它给了我以下错误。
"The application failed to start because it could not find or load the Qt platform plugin "windows" in "".
第一次尝试解决它:
以下是我的文件夹结构的结构:
-MyExecutable (containing example.exe)
|_plugins
|_example1.dll
|_platforms
|_qwindows.dll
1.a 因为它无法找到 qwindows.dll 的路径。我创建了如上图所示的文件夹平台,并将平台文件夹从“C:/Qt/Qt5.6.1/Tools/QtCreator/bin/plugins/platforms/”复制到其中。
1.b 我设置了环境变量QT_PLUGIN_PATH={path to folder contains executable}/plugins
此设置运行我的应用程序,但未包含 others.dll,因此 GUI 功能较少。
如何进行更改,以便其他人.dll 也应链接/包含在我的 GUI 应用程序中。
【问题讨论】: