Unable to run Qt/QML application on Ubuntu 20.04
-
Hi,
I'm trying to find a solution for this deployment problem for two days now, without success.I have a fresh default installation of Ubuntu 20.04.3. I try to run a program, build with Qt 5.15.8 on another Ubuntu 20.04.3 system. I build the piechart example from the tutorial (chapter1-basics).
It runs fine on my developer machine, however, when I try to run it on the other machine, I always end with this error:Warning: QQml_colorProvider: no color provider has been set! qrc:/app.qml:62:16: Invalid property assignment: color expected color: "red" ^
I checked the dependencies with ldd, I made a distribution package with CQtDeploy. Always the same error. When I try another program, I get the same warning about the QQml_colorProvider, but I get the error at a different place.
Warning: QQml_colorProvider: no color provider has been set! qrc:/qml/qml/main.qml:45:5: Connections is not a type Connections ^
So the error place/reason seems to be random. I guess something is missing. Any ideas?
-
Just want to mention that I have the same issue and that issue is gone after "apt install qt5-quick-demos" on Ubuntu 22.04.
There's bunch of plugins installed:
Get:1 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-window2 amd64 5.15.3+dfsg-1 [26,3 kB]
Get:2 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick2 amd64 5.15.3+dfsg-1 [33,7 kB]
Get:3 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtgraphicaleffects amd64 5.15.3-1 [74,3 kB]
Get:4 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtqml amd64 5.15.3+dfsg-1 [17,2 kB]
Get:5 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtqml-models2 amd64 5.15.3+dfsg-1 [18,0 kB]
Get:6 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-layouts amd64 5.15.3+dfsg-1 [56,0 kB]
Get:7 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-controls amd64 5.15.3-1 [577 kB]
Get:8 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 libqt5xmlpatterns5 amd64 5.15.3-1 [901 kB]
Get:9 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qt-labs-folderlistmodel amd64 5.15.3+dfsg-1 [36,1 kB]
Get:10 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qt-labs-settings amd64 5.15.3+dfsg-1 [26,5 kB]
Get:11 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-templates2 amd64 5.15.3+dfsg-1 [77,0 kB]
Get:12 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-controls2 amd64 5.15.3+dfsg-1 [935 kB]
Get:13 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-privatewidgets amd64 5.15.3-1 [49,8 kB]
Get:14 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-dialogs amd64 5.15.3-1 [132 kB]
Get:15 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-particles2 amd64 5.15.3+dfsg-1 [19,3 kB]
Get:16 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-xmllistmodel amd64 5.15.3-1 [37,3 kB]
Get:17 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qt5-quick-demos amd64 5.15.3-1 [2 191 kB]Some qml plugin must be missing or misconfigured, I've stopped tracking that issue after that fix.