Hi,
So I’ve been trying to compile a QML program lately, without success. My goal is to compile for the moment a simple “QML” hello world.
#include <QtQuick/QQuickView>
#include
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QQuickView view;
view.setSource(QUrl("qrc:///main.qml"));
view.show();
return app.exec();
}
Unluckily, I’ve not been able to make it work. Indeed, my compilation (on the target) gives the following error (in the linker):
undefined reference to `QQuickView::QQuickView(QWindow*)'
undefined reference to `QQuickView::setSource(QUrl const&)'
undefined reference to `QQuickView::~QQuickView()'
In my layer.conf, I’ve got the following, in addition to your base layer.conf:
IMAGE_INSTALL_append = "qtbase-plugins \
qtbase-tools \
qtbase-examples \
qtdeclarative \
qtdeclarative-plugins \
qtdeclarative-tools \
qtdeclarative-examples \
qtdeclarative-qmlplugins \
qtsensors \
qtserialport \
qtquickcontrols \
qtquickcontrols2 \
"
PACKAGECONFIG_append_pn-qtbase = "qtquickcompiler tools debug developer examples no-opengl tests widgets"
#DISTRO_FEATURES_remove = "x11 wayland"
IMAGE_INSTALL_remove = "eglinfo-x11"
I then bitbake the console image.
I’ve tried several Qt configuration, and tried to play a bit with the x11 settings, but this always lead to the same messages.
Any idea?
Regards,
Matthieu