Skip to content

QQmlApplicationEngine failed to load component #79

@patrickelectric

Description

@patrickelectric

After creating the AppImage with:
./linuxdeploy-x86_64.AppImage --icon-file=$PWD/qml/imgs/pingviewer.png --desktop-file=build/deploy/pingviewer.desktop --executable=build/deploy/pingviewer --appdir=build/deploy/ --plugin qt --output appimage

Where both linuxdeply and linux-deploy-qt exist under the same folder:

ls -la linuxdeploy-*                                       
-rwxr-xr-x 1 patrick patrick 6737960 Oct  9 10:14 linuxdeploy-plugin-qt-x86_64.AppImage
-rwxr-xr-x 1 patrick patrick 6131752 Oct 20 13:09 linuxdeploy-x86_64.AppImage

And linuxdeploy able to see it:

linuxdeploy version 1-alpha (git commit ID b6a1ba2), Travis build 488 built on 2020-10-20 16:05:07 UTC
Available plugins: 
appimage: /tmp/.mount_linuxdTnPp43/usr/bin/linuxdeploy-plugin-appimage (type: output, API level: 0) 
qt: /home/patrick/git/blue/ping-viewer/linuxdeploy-plugin-qt-x86_64.AppImage (type: input, API level: 0) 

After executing my AppImage I get the error:

Messages

[12:19:18.303] default[Warning]: QQmlApplicationEngine failed to load component
[12:19:18.304] default[Warning]: main.qml(7) qrc:/main.qml:7:1: module "QtQuick.Controls.Material" is not installed
[12:19:18.304] default[Warning]: main.qml(6) qrc:/main.qml:6:1: module "Qt.labs.settings" is not installed 
[12:19:18.304] default[Warning]: main.qml(5) qrc:/main.qml:5:1: module "QtGraphicalEffects" is not installed
[12:19:18.304] default[Warning]: main.qml(4) qrc:/main.qml:4:1: module "QtQuick.Window" is not installed
[12:19:18.304] default[Warning]: main.qml(3) qrc:/main.qml:3:1: module "QtQuick.Layouts" is not installed
[12:19:18.304] default[Warning]: main.qml(2) qrc:/main.qml:2:1: module "QtQuick.Controls" is not installed 
[12:19:18.304] default[Warning]: main.qml(7) qrc:/main.qml:7:1: module "QtQuick.Controls.Material" is not installed
[12:19:18.304] default[Warning]: main.qml(6) qrc:/main.qml:6:1: module "Qt.labs.settings" is not installed 
[12:19:18.304] default[Warning]: main.qml(5) qrc:/main.qml:5:1: module "QtGraphicalEffects" is not installed
[12:19:18.304] default[Warning]: main.qml(4) qrc:/main.qml:4:1: module "QtQuick.Window" is not installed
[12:19:18.304] default[Warning]: main.qml(3) qrc:/main.qml:3:1: module "QtQuick.Layouts" is not installed
[12:19:18.304] default[Warning]: main.qml(2) qrc:/main.qml:2:1: module "QtQuick.Controls" is not installed 
[12:19:18.304] default[Warning]: main.qml(7) qrc:/main.qml:7:1: module "QtQuick.Controls.Material" is not installed
[12:19:18.304] default[Warning]: main.qml(6) qrc:/main.qml:6:1: module "Qt.labs.settings" is not installed 
[12:19:18.304] default[Warning]: main.qml(5) qrc:/main.qml:5:1: module "QtGraphicalEffects" is not installed
[12:19:18.304] default[Warning]: main.qml(4) qrc:/main.qml:4:1: module "QtQuick.Window" is not installed
[12:19:18.304] default[Warning]: main.qml(3) qrc:/main.qml:3:1: module "QtQuick.Layouts" is not installed
[12:19:18.304] default[Warning]: main.qml(2) qrc:/main.qml:2:1: module "QtQuick.Controls" is not installed 
[12:19:18.304] default[Warning]: main.qml(7) qrc:/main.qml:7:1: module "QtQuick.Controls.Material" is not installed
[12:19:18.304] default[Warning]: main.qml(6) qrc:/main.qml:6:1: module "Qt.labs.settings" is not installed 
[12:19:18.304] default[Warning]: main.qml(5) qrc:/main.qml:5:1: module "QtGraphicalEffects" is not installed
[12:19:18.304] default[Warning]: main.qml(4) qrc:/main.qml:4:1: module "QtQuick.Window" is not installed
[12:19:18.304] default[Warning]: main.qml(3) qrc:/main.qml:3:1: module "QtQuick.Layouts" is not installed
[12:19:18.304] default[Warning]: main.qml(2) qrc:/main.qml:2:1: module "QtQuick.Controls" is not installed 
[12:19:18.304] default[Warning]: main.qml(7) qrc:/main.qml:7:1: module "QtQuick.Controls.Material" is not installed
[12:19:18.304] default[Warning]: main.qml(6) qrc:/main.qml:6:1: module "Qt.labs.settings" is not installed 
[12:19:18.304] default[Warning]: main.qml(5) qrc:/main.qml:5:1: module "QtGraphicalEffects" is not installed
[12:19:18.304] default[Warning]: main.qml(4) qrc:/main.qml:4:1: module "QtQuick.Window" is not installed
[12:19:18.304] default[Warning]: main.qml(3) qrc:/main.qml:3:1: module "QtQuick.Layouts" is not installed
[12:19:18.304] default[Warning]: main.qml(2) qrc:/main.qml:2:1: module "QtQuick.Controls" is not installed 
[12:19:18.304] default[Warning]: main.qml(7) qrc:/main.qml:7:1: module "QtQuick.Controls.Material" is not installed
[12:19:18.304] default[Warning]: main.qml(6) qrc:/main.qml:6:1: module "Qt.labs.settings" is not installed 
[12:19:18.305] default[Warning]: main.qml(5) qrc:/main.qml:5:1: module "QtGraphicalEffects" is not installed
[12:19:18.305] default[Warning]: main.qml(4) qrc:/main.qml:4:1: module "QtQuick.Window" is not installed
[12:19:18.305] default[Warning]: main.qml(3) qrc:/main.qml:3:1: module "QtQuick.Layouts" is not installed
[12:19:18.305] default[Warning]: main.qml(2) qrc:/main.qml:2:1: module "QtQuick.Controls" is not installed 

And these are the files inside the AppDir

Files
.
├── AppRun
├── apprun-hooks
│   └── linuxdeploy-plugin-qt-hook.sh
├── AppRun.wrapped -> usr/bin/pingviewer
├── pingviewer
├── pingviewer.desktop
├── pingviewer.png -> usr/share/icons/hicolor/512x512/apps/pingviewer.png
├── stm32flash
└── usr
    ├── bin
    │   ├── pingviewer
    │   └── qt.conf
    ├── lib
    │   ├── libavahi-client.so.3
    │   ├── libavahi-common.so.3
    │   ├── libblkid.so.1
    │   ├── libbz2.so.1.0
    │   ├── libcrypto.so.1.1
    │   ├── libcrypt.so.2
    │   ├── libcups.so.2
    │   ├── libdbus-1.so.3
    │   ├── libdouble-conversion.so.3
    │   ├── libdtkcore.so.5
    │   ├── libdtkgui.so.5
    │   ├── libffi.so.7
    │   ├── libgcrypt.so.20
    │   ├── libgmodule-2.0.so.0
    │   ├── libgnutls.so.30
    │   ├── libgraphite2.so.3
    │   ├── libgsettings-qt.so.1
    │   ├── libgssapi_krb5.so.2
    │   ├── libHalf-2_5.so.25
    │   ├── libhogweed.so.6
    │   ├── libicudata.so.67
    │   ├── libicui18n.so.67
    │   ├── libicuuc.so.67
    │   ├── libidn2.so.0
    │   ├── libIex-2_5.so.25
    │   ├── libIlmImf-2_5.so.25
    │   ├── libIlmThread-2_5.so.25
    │   ├── libImath-2_5.so.25
    │   ├── libjasper.so.4
    │   ├── libjpeg.so.8
    │   ├── libk5crypto.so.3
    │   ├── libkeyutils.so.1
    │   ├── libKF5Archive.so.5
    │   ├── libkrb5.so.3
    │   ├── libkrb5support.so.0
    │   ├── liblcms2.so.2
    │   ├── liblz4.so.1
    │   ├── liblzma.so.5
    │   ├── libmd4c.so.0
    │   ├── libmng.so.2
    │   ├── libmount.so.1
    │   ├── libnettle.so.8
    │   ├── libpcre2-16.so.0
    │   ├── libpcre.so.1
    │   ├── libpng16.so.16
    │   ├── libQt5Charts.so.5
    │   ├── libQt5Concurrent.so.5
    │   ├── libQt5Core.so.5
    │   ├── libQt5DBus.so.5
    │   ├── libQt5Gui.so.5
    │   ├── libQt5Network.so.5
    │   ├── libQt5Pdf.so.5
    │   ├── libQt5PrintSupport.so.5
    │   ├── libQt5QmlModels.so.5
    │   ├── libQt5Qml.so.5
    │   ├── libQt5QuickControls2.so.5
    │   ├── libQt5Quick.so.5
    │   ├── libQt5QuickTemplates2.so.5
    │   ├── libQt5SerialPort.so.5
    │   ├── libQt5Svg.so.5
    │   ├── libQt5VirtualKeyboard.so.5
    │   ├── libQt5Widgets.so.5
    │   ├── libQt5XcbQpa.so.5
    │   ├── libQt5Xml.so.5
    │   ├── libssl.so.1.1
    │   ├── libsystemd.so.0
    │   ├── libtasn1.so.6
    │   ├── libtiff.so.5
    │   ├── libudev.so.1
    │   ├── libunistring.so.2
    │   ├── libwebpdemux.so.2
    │   ├── libwebpmux.so.3
    │   ├── libwebp.so.7
    │   ├── libX11-xcb.so.1
    │   ├── libXau.so.6
    │   ├── libxcb-glx.so.0
    │   ├── libxcb-icccm.so.4
    │   ├── libxcb-image.so.0
    │   ├── libxcb-keysyms.so.1
    │   ├── libxcb-randr.so.0
    │   ├── libxcb-render.so.0
    │   ├── libxcb-render-util.so.0
    │   ├── libxcb-shape.so.0
    │   ├── libxcb-shm.so.0
    │   ├── libxcb-sync.so.1
    │   ├── libxcb-util.so.1
    │   ├── libxcb-xfixes.so.0
    │   ├── libxcb-xinerama.so.0
    │   ├── libxcb-xinput.so.0
    │   ├── libxcb-xkb.so.1
    │   ├── libXdmcp.so.6
    │   ├── libxkbcommon.so.0
    │   ├── libxkbcommon-x11.so.0
    │   └── libzstd.so.1
    ├── plugins
    │   ├── bearer
    │   │   ├── libqconnmanbearer.so
    │   │   ├── libqgenericbearer.so
    │   │   └── libqnmbearer.so
    │   ├── iconengines
    │   │   └── libqsvgicon.so
    │   ├── imageformats
    │   │   ├── kimg_eps.so
    │   │   ├── kimg_exr.so
    │   │   ├── kimg_hdr.so
    │   │   ├── kimg_kra.so
    │   │   ├── kimg_ora.so
    │   │   ├── kimg_pcx.so
    │   │   ├── kimg_pic.so
    │   │   ├── kimg_psd.so
    │   │   ├── kimg_ras.so
    │   │   ├── kimg_rgb.so
    │   │   ├── kimg_tga.so
    │   │   ├── kimg_xcf.so
    │   │   ├── libdsvg.so
    │   │   ├── libqgif.so
    │   │   ├── libqicns.so
    │   │   ├── libqico.so
    │   │   ├── libqjp2.so
    │   │   ├── libqjpeg.so
    │   │   ├── libqmng.so
    │   │   ├── libqpdf.so
    │   │   ├── libqsvg.so
    │   │   ├── libqtga.so
    │   │   ├── libqtiff.so
    │   │   ├── libqwbmp.so
    │   │   └── libqwebp.so
    │   ├── platforminputcontexts
    │   │   ├── libcomposeplatforminputcontextplugin.so
    │   │   ├── libibusplatforminputcontextplugin.so
    │   │   └── libqtvirtualkeyboardplugin.so
    │   ├── platforms
    │   │   └── libqxcb.so
    │   ├── platformthemes
    │   │   ├── libqgtk2.so
    │   │   ├── libqgtk3.so
    │   │   └── libqxdgdesktopportal.so
    │   ├── printsupport
    │   │   └── libcupsprintersupport.so
    │   ├── styles
    │   │   └── libqgtk2style.so
    │   └── xcbglintegrations
    │       ├── libqxcb-egl-integration.so
    │       └── libqxcb-glx-integration.so
    ├── share
    │   ├── applications
    │   │   └── pingviewer.desktop
    │   └── icons
    │       └── hicolor
    │           ├── 128x128
    │           │   └── apps
    │           ├── 16x16
    │           │   └── apps
    │           ├── 256x256
    │           │   └── apps
    │           ├── 32x32
    │           │   └── apps
    │           ├── 512x512
    │           │   └── apps
    │           │       └── pingviewer.png
    │           ├── 64x64
    │           │   └── apps
    │           └── scalable
    │               └── apps
    └── translations
        ├── qt_ar.qm
        ├── qtbase_ar.qm
        ├── qtbase_bg.qm
        ├── qtbase_ca.qm
        ├── qtbase_cs.qm
        ├── qtbase_da.qm
        ├── qtbase_de.qm
        ├── qtbase_en.qm
        ├── qtbase_es.qm
        ├── qtbase_fi.qm
        ├── qtbase_fr.qm
        ├── qtbase_gd.qm
        ├── qtbase_he.qm
        ├── qtbase_hu.qm
        ├── qtbase_it.qm
        ├── qtbase_ja.qm
        ├── qtbase_ko.qm
        ├── qtbase_lv.qm
        ├── qtbase_pl.qm
        ├── qtbase_ru.qm
        ├── qtbase_sk.qm
        ├── qtbase_tr.qm
        ├── qtbase_uk.qm
        ├── qtbase_zh_TW.qm
        ├── qt_bg.qm
        ├── qt_ca.qm
        ├── qt_cs.qm
        ├── qt_da.qm
        ├── qtdeclarative_bg.qm
        ├── qtdeclarative_da.qm
        ├── qtdeclarative_de.qm
        ├── qtdeclarative_en.qm
        ├── qtdeclarative_es.qm
        ├── qtdeclarative_fi.qm
        ├── qtdeclarative_fr.qm
        ├── qtdeclarative_hu.qm
        ├── qtdeclarative_ja.qm
        ├── qtdeclarative_ko.qm
        ├── qtdeclarative_lv.qm
        ├── qtdeclarative_pl.qm
        ├── qtdeclarative_ru.qm
        ├── qtdeclarative_sk.qm
        ├── qtdeclarative_tr.qm
        ├── qtdeclarative_uk.qm
        ├── qt_de.qm
        ├── qt_en.qm
        ├── qt_es.qm
        ├── qt_fa.qm
        ├── qt_fi.qm
        ├── qt_fr.qm
        ├── qt_gd.qm
        ├── qt_gl.qm
        ├── qt_he.qm
        ├── qt_hu.qm
        ├── qt_it.qm
        ├── qt_ja.qm
        ├── qt_ko.qm
        ├── qt_lt.qm
        ├── qt_lv.qm
        ├── qt_pl.qm
        ├── qt_pt.qm
        ├── qt_ru.qm
        ├── qtserialport_de.qm
        ├── qtserialport_en.qm
        ├── qtserialport_es.qm
        ├── qtserialport_ja.qm
        ├── qtserialport_ko.qm
        ├── qtserialport_pl.qm
        ├── qtserialport_ru.qm
        ├── qtserialport_uk.qm
        ├── qt_sk.qm
        ├── qt_sl.qm
        ├── qt_sv.qm
        ├── qt_tr.qm
        └── qt_uk.qm

33 directories, 220 files

Note: The same project works under linuxdeployqt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions