Open brummer-simon opened 4 months ago
I don't wanna be that person but there's no such thing as "KDE6" or "KDE5". KDE is the community. We develop and ship Plasma 6, Frameworks (KF6) and Gears (apps).
To the best of my understanding, your issue doesn't have anything to do with neither, it's just a plain Qt plugin which fails to load due to having some unexpected metadata format. Which Qt are you linking it against?
I don't wanna be that person but there's no such thing as "KDE6" or "KDE5". KDE is the community. We develop and ship Plasma 6, Frameworks (KF6) and Gears (apps).
To the best of my understanding, your issue doesn't have anything to do with neither, it's just a plain Qt plugin which fails to load due to having some unexpected metadata format. Which Qt are you linking it against?
Right. Of course i run plasma 6 and I link against Qt 6.6.2. It looks like qttypes finds it after passing the QMAKE variable:
[qttypes 0.2.11] cargo:VERSION=6.6.2
[qttypes 0.2.11] cargo:LIBRARY_PATH=/usr/lib
[qttypes 0.2.11] cargo:INCLUDE_PATH=/usr/include/qt6
[qttypes 0.2.11] cargo:FOUND=1
[qttypes 0.2.11] cargo:COMPILE_FLAGS=-std=c++17
[qttypes 0.2.11] cargo:rustc-cdylib-link-arg=-Wl,-rpath,/usr/lib
[qttypes 0.2.11] cargo:rustc-link-search=/usr/lib
[qttypes 0.2.11] cargo:rustc-link-lib=Qt6Core
[qttypes 0.2.11] cargo:rustc-link-lib=Qt6Gui
[qttypes 0.2.11] cargo:rustc-link-lib=Qt6Widgets
[qttypes 0.2.11] cargo:rustc-link-lib=Qt6Quick
[qttypes 0.2.11] cargo:rustc-link-lib=Qt6Qml
Hi,
I am not sure where to place this, but maybe this is a qmetaobject issue or at least I might get a hint in the right direction. I am using qmetaobject to write rust based backends for KDE Plasmoids (Desktop widgets). A Plasmoid is a QML Application and building the backend in Rust worked flawlessly in KDE5.
Now KDE6 was published and QML plugins written with qmetaobject are not loaded anymore. The error message is:
To investigate further, here are all ELF sections for a working plugin shipped wird KDE6:
and here are all ELF sections for a my plugin built with qmetaobject:
So obviously the QT related parts differ and are probably the cause why the Plugin is not loading. Any Idea where and how to fix it?
Cheers Simon