Swordfish90 / cool-retro-term

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

QQmlApplicationEngine failed to load component #674

Open ryholland opened 2 years ago

ryholland commented 2 years ago

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

andrewsil1 commented 2 years ago

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

gpetersson commented 2 years ago

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

andrewsil1 commented 2 years ago

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.

wray678 commented 2 years ago

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!

andrewsil1 commented 2 years ago

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

wangxin-n commented 2 years ago

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 :)

wray678 commented 2 years ago

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

hamzalgz commented 1 year ago

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