我已经成功地将 Qt 5.2 构建为 static 但是,一旦我使用该库运行应用程序,我就会收到以下运行时错误:
This application failed to start because it could not find or load the Qt platform plugin "windows".
我想知道是否有办法避免DLL 依赖 以拥有独立的.exe 文件。非常感谢。
最佳答案
在您的应用程序文件夹中创建一个名为“platforms”的文件夹,并将 qwindows.dll 放入其中。 这将解决问题。
您可以使用 QT 源代码。 http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html :)
关于c++ - 使用 Qt 5.2 静态库编译时在 Windows 上加载 Qt 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20676935/