Skip to content
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

QtGraphicalEffects "not installed" on Fedora 40. #26

Open
theshatterstone opened this issue Jun 17, 2024 · 6 comments
Open

QtGraphicalEffects "not installed" on Fedora 40. #26

theshatterstone opened this issue Jun 17, 2024 · 6 comments

Comments

@theshatterstone
Copy link

theshatterstone commented Jun 17, 2024

Hello.

I have SDDM preinstalled, on Fedora 40 Sway.

Output of qmake --version:

QMake version 3.1
Using Qt version 6.7.1 in /usr/lib64 

I have the qt5-qtquickcontrols2 and qt5-qtgraphicaleffects-5.15.14-1 packages installed.

When running the default version of the theme, I'm getting the errors that qtgraphicaleffects is not installed. After doing a further look into it, I tried running:

QML2_IMPORT_PATH=/usr/lib64/qt5/qml QT_PLUGIN_PATH=/usr/lib64/qt5/plugins sddm-greeter --test-mode --theme sugar-dark-orig

and got the following errors:

Loading file:sugar-dark-orig/Main.qml...
file:///home/shatterstone/sugar-dark-orig/Main.qml:82:9: Type LoginForm unavailable 
             LoginForm { 
             ^
file:///home/shatterstone/sugar-dark-orig/Components/LoginForm.qml:41:5: Type Input unavailable 
         Input { 
         ^
file:///home/shatterstone/sugar-dark-orig/Components/Input.qml:23:1: The plugin '/usr/lib64/qt5/qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.so' uses incompatible Qt library. (5.15.0) [release] 
     import QtGraphicalEffects 1.0 
     ^
file:///home/shatterstone/sugar-dark-orig/Main.qml:82:9: Type LoginForm unavailable 
             LoginForm { 
             ^
file:///home/shatterstone/sugar-dark-orig/Components/LoginForm.qml:41:5: Type Input unavailable 
         Input { 
         ^
file:///home/shatterstone/sugar-dark-orig/Components/Input.qml:23:1: The plugin '/usr/lib64/qt5/qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.so' uses incompatible Qt library. (5.15.0) [release] 
     import QtGraphicalEffects 1.0 
     ^
Fallback to embedded theme 

I should mention I found a "solution" where I replaced every import of QtGraphicalEffects 1.0 in the theme with import Qt5Compat.GraphicalEffects 1.0 which seems to mostly work (except that the user selector icon is broken; fixed it by setting visible: false in the "selectUser" ComboBox in Input.qml) so it mostly kinda works after some modifications, but I'm not sure why these are even necessary in the first place. Any help would be appreciated. If you need any more info, please let me know. Thanks.

Edit(s): Fixing formatting of code blocks

@udqy
Copy link

udqy commented Jun 27, 2024

Hey! Facing the exact same issue rn. How did you solve this?

@theshatterstone
Copy link
Author

@udqy I basically rewrote the themes and removed Qtgraphicaleffects as a dependency, also removing their modules and some broken things in the process.It's very flaky, of course, and I'm against using software from random git repos, and I can't afford to provide support for this cut down version so I'll only link it if yoi explicitly ask for it.

Alternatively, follow what I did by using sddm-greeter in the terminal and reading the error messages to point you to which files have a require for Qtgraphicaleffects, then remove the require, run again, find and remove the code blocks related to it

@udqy
Copy link

udqy commented Jun 29, 2024

Yeah i tried doing the same thing but couldnt make it work. Ended up switching themes. Thanks

@theshatterstone
Copy link
Author

@udqy Which theme works for you? I couldn't find any that worked for me, as they all either used Qtgraphicaleffects or KDE Frameworks

@udqy
Copy link

udqy commented Jun 30, 2024

sddm-astronaut-theme works

@theshatterstone
Copy link
Author

@udqy Thank you so much! I will not close this issue, however, and will let @MarianArlt close it if they so choose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants