Cannot run QML app without Build environmant
-
Hi. I have put all the required .dll inside the generated .exe by QtCreator. When I run the app using system environment, it says
QQmlApplicationEngine failed to load component qrc:/main.qml:1 plugin cannot be loaded for module "QtQuick": Cannot load library C:/Users/Dell/Documents/Qt/build-Vitadisk-Desktop_Qt_5_4_0_MinGW_32bit-Release/release/QtQuick.2/qtquick2plugin.dll: The specified module could not be found.
I have put the folder QtQuick2 from Qt installed directory. It looks like this
http://s18.postimg.org/mb7jo655l/Capture_Qt.jpgWhat am i doing wrong?
-
I have followed this tutorial: http://qt-project.org/wiki/Deploy_an_Application_on_Windows
-
QtQuick dll is missing in your screenshot
-
I managed to solve it using "The Windows Deployment Tool" from http://doc.qt.io/qt-5/windows-deployment.html
windeployqt.exe --qmldir <path-to-my-qml-source-code> MyApp.exe
It was magic. This tool was last on the page. I used to copy .dlls manually before -_-
Great it got solved :D
-
Ah. I thought you've used it before and still had problems ;-) OK great, happy coding!