kotelnik / plasma-applet-weather-widget

Plasma 5 applet for displaying weather information from yr.no server.
GNU General Public License v2.0
88 stars 42 forks source link

Error at loading, Type YrNo unavailable (Ubuntu) #71

Open svenk opened 5 years ago

svenk commented 5 years ago

On a Ubuntu 17.10 system with packages cmake extra-cmake-modules qt5-qmake qtdeclarative5-dev libqt5scripttools5 qtscript5-dev plasma-framework-dev qml-module-qtquick-xmllistmodel installed manually, after following the compile and build instructions, I get an error when adding the widget to the screen

Fehler beim Laden der QML-Datei: file:///usr/share/plasma/plasmoids/org.kde.weatherWidget/contents/ui/main.qml:113:5: Type YrNo unavailable
file:///usr/share/plasma/plasmoids/org.kde.weatherWidget/contents/ui/providers/YrNo.qml:18:1: module "QtQuick.XmlListModel" is not installed

(sorry for having the language being set to German, this says basically error at loading the QML file: ...)

Where do we get the YrNo type from? The second error seems to be related to missing Qt dependencies (despite I have installed the Ubuntu package qml-module-qtquick-xmllistmodel)

david-geiger commented 5 years ago

Have you compiled with Qt 5.12.0 ? if yes, since qt 5.12.0 branch, xmllistmodel was moved upstream from qtdeclarative module to qtxmlpatterns module:

https://github.com/qt/qtdeclarative/commit/0477a057fd02050fd330760bf046f5e0e91a9331

KAMiKAZOW commented 5 years ago

Same here (openSUSE). "libQt5XmlPatterns5" v5.12 is installed.

david-geiger commented 5 years ago

Same here (openSUSE). "libQt5XmlPatterns5" v5.12 is installed.

You need also install libqt5-qtxmlpatterns-imports on openSUSE.

OwenChia commented 5 years ago

same here, gentoo with qt 5.12, and i got error message like this:

plasmashell: relocation error: /usr/lib64/qt5/qml/QtQuick/XmlListModel/libqmlxmllistmodelplugin.so: symbol _ZN3QV46Object12insertMemberEPNS_6StringEPKNS_8PropertyENS_18PropertyAttributesE version Qt_5_PRIVATE_API not defined in file libQt5Qml.so.5 with link time reference

try rebuild kde-misc/plasma-applet-weather-widget, dev-qt/qtdeclarative and dev-qt/qtxmlpatterns but does not work