xmake 'QQmlApplicationEngine not found
-
Hi,
I'm trying to compile a simple Qt QML project with xmake.
My setup is the following:
xmake.lua:add_rules("mode.debug", "mode.release") add_requires("qt6quick") target("test") add_rules("qt.widgetapp") add_packages("qt6quick") set_kind("binary") add_files("src/*.cpp")
and my main.cpp:
#include <stdio.h> #include <QGuiApplication> #include <QQmlApplicationEngine> int main(int argc, char** argv) { QCoreApplication::setOrganizationName("QtExamples"); QGuiApplication app(argc,argv); QQmlApplicationEngine engine; engine.load(QUrl("PATH/TO/test.qml")); //path change to good path return app.exec(); }
This code is working well on my WSL setup with Ubuntu.
But when i try this code in Windows, i have the following issue :
Do someone have a solution for this project to work in Windows. In order to use visual studio community with xmake.
I've installed Qt6 with creator and so on.
I prefer to keep xmake if possible.
Thanks in advance,
-
Hi,
I'm trying to compile a simple Qt QML project with xmake.
My setup is the following:
xmake.lua:add_rules("mode.debug", "mode.release") add_requires("qt6quick") target("test") add_rules("qt.widgetapp") add_packages("qt6quick") set_kind("binary") add_files("src/*.cpp")
and my main.cpp:
#include <stdio.h> #include <QGuiApplication> #include <QQmlApplicationEngine> int main(int argc, char** argv) { QCoreApplication::setOrganizationName("QtExamples"); QGuiApplication app(argc,argv); QQmlApplicationEngine engine; engine.load(QUrl("PATH/TO/test.qml")); //path change to good path return app.exec(); }
This code is working well on my WSL setup with Ubuntu.
But when i try this code in Windows, i have the following issue :
Do someone have a solution for this project to work in Windows. In order to use visual studio community with xmake.
I've installed Qt6 with creator and so on.
I prefer to keep xmake if possible.
Thanks in advance,