-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load qmetaobject based QML Plugins in KDE6 #310
Comments
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:
|
+1 can confirm that. Plugin example does not load with same error. Removing .qtmetadata header section does not fix that, besides that qt6 plugins does not have it. Something just works different in qt6. @brummer-simon have you found solution? |
Nope. I actually decided to do it differently. My new solution offers a layered approach by creating a QML/C++ plasma plugin handling all the QT interfacing delegating calls to a statically linked rust library via cxx bindings. I am aware that this complicates things but on the other hand I am rather independent from wrapper crates. I am not really happy with my current approach because qmetaobject made things much smoother in the past. I actually heared yesterday that there is an effort to improve rust development within the KDE ecosystem. But I have no idea when there will be more then anouncements. |
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
The text was updated successfully, but these errors were encountered: