cool-retro-term icon indicating copy to clipboard operation
cool-retro-term copied to clipboard

QQmlApplicationEngine failed to load component

Open ryholland opened this issue 3 years ago • 7 comments

Hi

Running CM3, followed Debian instructions but received message:

"qrc:/main.qml:22 module "QtQuick.controls" version 2.3 is not installed

Cannot load QML interface"

Possible newbie question but pls help

ryholland avatar Sep 03 '21 13:09 ryholland

Same issue here, compiling on Raspberry Pi 3 with up to date Raspi OS (Buster)

andrewsil1 avatar Sep 24 '21 21:09 andrewsil1

Same here:

$ git clone --recursive https://github.com/Swordfish90/cool-retro-term
...
$ cd cool-retro-term && qmake && make
...
$ ./cool-retro-term 
QQmlApplicationEngine failed to load component
qrc:/main.qml:133:5: Type TerminalContainer unavailable
qrc:/TerminalContainer.qml:48:5: Type PreprocessedTerminal unavailable
qrc:/PreprocessedTerminal.qml:98:9: Cannot assign to non-existent property "blinkingCursor"
Cannot load QML interface

archlinux x64, Qt 5.15.2

gpetersson avatar Oct 11 '21 18:10 gpetersson

This last one is not the same issue. This looks more like the terminal widget subproject has not been compiled.

In any event I was able to solve this problem on Ubuntu 20 in the following fashion, and it would probably also apply to Debian on the Pi:

First, edit the import statements in the qml\main.qml file to specify the version of QtQuick actually installed, which is different from the version in the package name. Secondly I had to search apt for the package name of the QtQuick library (sudo apt search qtquick) plus another Qt library or three that seem to have been broken out from the dependencies currently listed in the readme. Eventually that got it running.

andrewsil1 avatar Oct 11 '21 20:10 andrewsil1

I have the exact same issue as @ryholland . I am not sure where to locate the qml\main.qml file and what which import statements to edit @andrewsil1 . Any help would be appreciated!

wray678 avatar Oct 30 '21 23:10 wray678

I’ll try to find some time to document the specifics here if I can.

andrewsil1 avatar Oct 30 '21 23:10 andrewsil1

I have installed this package and solved this issue. sudo apt install qml-module-qtquick-controls2 But there is another error:

QQmlApplicationEngine failed to load component
qrc:/main.qml:133 Type TerminalContainer unavailable
qrc:/TerminalContainer.qml:48 Type PreprocessedTerminal unavailable
qrc:/PreprocessedTerminal.qml:24 module "QMLTermWidget" is not installed

Okay, it's #592 , it works now :)

wangxin-n avatar Nov 29 '21 16:11 wangxin-n

Thank you so much @wangxin-n ! It works great now!!

wray678 avatar Jan 21 '22 13:01 wray678

Python 3.7.5, 3.8.5 from Python.org work fine. I would recommend against using the ones provided by the Microsoft Store.

hamzalgz avatar Oct 15 '22 21:10 hamzalgz