module "QtQuick" version 2.11 is not installed
-
So I just installed a SDDM theme on my Debian 9 and it threw
error module "QtQuick" version 2.11 is not installed
I've installed qt5-default via my package manager and also installed qml and qml-module-qtquick-controls
That didn't fix the issue so I removed it (kept qtchooser), installed qt5.11.3 from source with Desktop gcc 64-bit, setting it up with qtchooser and setting the variable QT_SELECT in my .bashrc and current terminal.But I still got the same error.
I never used Qt or any of it's modules/APIs so I'm not sure how to install and setup Qt and QtQuick to get my SDDM theme to work so could somebody point me in the right direction?
That would be great.Thanks
If you need more info tell me and I'll post it.
-
Inform Debian packagers or SDDM maintainers that they have this problem, it's something they should fix.
Qt 5.11 should be enough, so what you did seems correct. I suppose that SDDM is started pretty early on when your PC boots up, it might be before qtchooser starts being effective (just guessing here, I've never used qtchooser). Check
/usr/lib
for Qt libraries, perhaps if you add some symlinks there SDDM will pick them up. But that is a surgery on a living system, it might break other parts of your installation. -
@sierdzio after linking the Qt libraries it still wouldn't work.
That said, I'm curious where SDDM or an executed qml file looks for it's modules.I've also seen online that qml files also look in their own directory for modules etc., this is either false or it didn't pickup the libs that I linked.
I also read something about theQML_IMPORT_PATH
(andQML2_IMPORT_PATH
) variable which isn't set at all when I try toecho $QML_IMPORT_PATH
(orecho $QML2_IMPORT_PATH
)So my question right now is where does a qml file (or SDDM) look for their (Qt) modules.
I don't know if this question belongs here. If it doesn't tell me and I'll bother SDDM with this. xD -
Official search path are listed here: https://doc.qt.io/qt-5/qtqml-syntax-imports.html#qml-import-path although it does not specify the paths exactly. I guess you'd have to run
QLibraryInfo::Qml2ImportsPath
in a simple test app to see what path will be returned. In any case, it seems like a SDDM thing.