module "QtQuick.*" is not installed
-
I am trying to deploy my application on windows using windeployqt but I get the following errors when trying to run my applicaiton:
Librum: qrc:/main.qml:4:1: module "QtQuick.Window" is not installed Librum: qrc:/main.qml:3:1: module "QtQuick.Layouts" is not installed Librum: qrc:/main.qml: module "QtQuick.Controls.Basic" is not installed Librum: qrc:/main.qml: module "QtQml.WorkerScript" is not installed Librum: qrc:/main.qml:4:1: module "QtQuick.Window" is not installed Librum: qrc:/main.qml:3:1: module "QtQuick.Layouts" is not installed Librum: qrc:/main.qml: module "QtQuick.Controls.Basic" is not installed Librum: qrc:/main.qml: module "QtQml.WorkerScript" is not installed Librum: qrc:/main.qml:4:1: module "QtQuick.Window" is not installed Librum: qrc:/main.qml:3:1: module "QtQuick.Layouts" is not installed Librum: qrc:/main.qml: module "QtQuick.Controls.Basic" is not installed Librum: qrc:/main.qml: module "QtQml.WorkerScript" is not installed Librum: qrc:/main.qml:4:1: module "QtQuick.Window" is not installed Librum: qrc:/main.qml:3:1: module "QtQuick.Layouts" is not installed Librum: qrc:/main.qml: module "QtQuick.Controls.Basic" is not installed Librum: qrc:/main.qml: module "QtQml.WorkerScript" is not installed
Any idea how I could fix this? There is a "qml" folder in the result of windeployqt but it is empty. Do I need to add anything to it manually?
-
@Creaperdown I think you have to pass -qml parameter to windeploytool to tell it where you QML stuff is.
-
This post is deleted!
-
@jsulm Right, I have seen this before and copied the command
windeployqt.exe --qmldir . --release .\librum.exe
. Now that you mention it I realized that there is a.
as the path for qmldir which is wrong. Where exactly should that point to? Simply to my qml source directory? -
@Creaperdown said in module "QtQuick.*" is not installed:
Simply to my qml source directory?
I think so, yes
-
-
Dear all,
having similar issue and kinda stuck..
Using this post build command in my cmake file
# Add a post-build command to run windeployqt COMMAND "$<IF:$<CONFIG:Debug>,${QT_TOOLS_PATH}/bin/windeployqt.debug.bat,${QT_TOOLS_PATH}/bin/windeployqt.exe>" --qmldir "D:/git/myapp/Frontend/qml/" $<TARGET_FILE_DIR:myapp> COMMENT "Running windeployqt..."
Can someone help?
-
@TechTinkerer It turns out that the application builds even with this compile time error. Even in a new test application with no contents at all I am getting this message and it works just fine.