QQmlApplicationEngine failed to load component #674

Open
opened 2021-09-03 15:24:09 +02:00 by ryholland · 8 comments
ryholland commented 2021-09-03 15:24:09 +02:00 (Migrated from github.com)

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

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 2021-09-24 23:24:43 +02:00 (Migrated from github.com)

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

Same issue here, compiling on Raspberry Pi 3 with up to date Raspi OS (Buster)
gpetersson commented 2021-10-11 20:59:57 +02:00 (Migrated from github.com)

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

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 2021-10-11 22:35:51 +02:00 (Migrated from github.com)

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.

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 2021-10-31 01:07:18 +02:00 (Migrated from github.com)

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!

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 2021-10-31 01:20:25 +02:00 (Migrated from github.com)

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

I’ll try to find some time to document the specifics here if I can.
wangxin-n commented 2021-11-29 17:29:01 +01:00 (Migrated from github.com)

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

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 2022-01-21 14:02:36 +01:00 (Migrated from github.com)

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

Thank you so much @wangxin-n ! It works great now!!
hamzalgz commented 2022-10-15 23:35:54 +02:00 (Migrated from github.com)

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

Python 3.7.5, 3.8.5 from Python.org work fine. I would recommend against using the ones provided by the Microsoft Store.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#674
No description provided.