问题
I need to have Stand-Alone .exe file of my project. I knew that I have to get static Qt version linking.
I can’t run QML project by Static Qt linking version , Qt 5.2 rc1 on Windows 7 or Windows 8
An error occurred:
Project ERROR: Unknown module(s) in QT: quick qml
It’s very simple project of built in qml “Hello World” message.
I downloaded qt-package-opensource from :
http://download.qt-project.org/development_releases/qt/5.2/5.2.0-rc1/single/
Also, I found that is ageneral bug for many peaple,
https://bugreports.qt-project.org/browse/QTBUG-28357
But, any fix didn’t solve my problem.
Any help, please,
Thank you,
回答1:
You first have to build a statically configured Qt itself. Then you don't need to do anything special in your project at all, apart from the usual care needed to link in the static plugins.
Merely building using statically configured Qt will link it statically into your project.
来源:https://stackoverflow.com/questions/21808954/static-qt-linking-version-qt-5-2-unknown-modules-in-qt-quick-qml