Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
22.34k stars 851 forks source link

QQmlApplicationEngine failed to load component #334

Closed probonopd closed 5 years ago

probonopd commented 7 years ago

Getting

QQmlApplicationEngine failed to load component
qrc:/main.qml:146 Type SettingsWindow unavailable
qrc:/SettingsWindow.qml:39 Type SettingsGeneralTab unavailable
qrc:/SettingsGeneralTab.qml:215 Type FileDialog unavailable
qrc:/QtQuick/Dialogs/DefaultFileDialog.qml:45 module "Qt.labs.settings" is not installed
qrc:/QtQuick/Dialogs/DefaultFileDialog.qml:44 module "Qt.labs.folderlistmodel" is not installed
qrc:/QtQuick/Dialogs/DefaultFileDialog.qml:45 module "Qt.labs.settings" is not installed
qrc:/QtQuick/Dialogs/DefaultFileDialog.qml:44 module "Qt.labs.folderlistmodel" is not installed

Cannot load QML interface

This is what I did, on a ubuntu-mate-16.04.1-desktop-amd64.iso system:

sudo apt-get -y install build-essential qmlscene qt5-qmake qt5-default qtdeclarative5-dev qml-module-qtquick-controls qtdeclarative5-qtquick2-plugin libqt5qml-graphicaleffects qml-module-qtquick-dialogs qtdeclarative5-localstorage-plugin qtdeclarative5-window-plugin
git clone --recursive https://github.com/Swordfish90/cool-retro-term.git
cd cool-retro-term
qmake && make
 ./cool-retro-term
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/42203272-qqmlapplicationengine-failed-to-load-component?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github).
probonopd commented 7 years ago

When I use Qt 5.8 from the Qt Company instead, then it works:

export PATH=/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/bin/:$PATH # Qt 5.8 from Qt Creator AppImage
git clone --recursive https://github.com/Swordfish90/cool-retro-term.git
cd cool-retro-term
qmake && make
 ./cool-retro-term
draeath commented 7 years ago

This still happens on Debian Stretch (Qt 5.7.1) - unsure what version of Qt you tried originally.

kwadroke commented 7 years ago

Same issue for me on Debian Stretch.

kwadroke commented 7 years ago

Think I just figured it out for Debian.
Make sure you install these packages:
qml-module-qt-labs-settings
qml-module-qt-labs-folderlistmodel

sudo apt-get install qml-module-qt-labs-settings qml-module-qt-labs-folderlistmodel

Should probably add these to the README.md file for Jessie

victor-vanherpt commented 7 years ago

@kwadroke installing the packages also helped for Debian sid. Thanks!

StoneSwine commented 5 years ago

Helped me on ubuntu 18.04

probonopd commented 5 years ago

The AppImage from https://github.com/Swordfish90/cool-retro-term/releases is working for me. :+1: No Qt installed on the system (Xubuntu 18.04).