catsout / wallpaper-engine-kde-plugin

A kde wallpaper plugin integrating wallpaper engine
https://store.kde.org/p/1475528/
GNU General Public License v2.0
1.81k stars 79 forks source link

Unable to satisfy dependencies on Steam Deck #177

Open Crono141 opened 2 years ago

Crono141 commented 2 years ago

Describe the bug
The Wallpaper Engine for KDE plugin is available in the KDE plugins store on the steam deck. It downloads and installs just fine. However, when you try to change the background to use the plugin, we are met with this message:

"Please make sure qtwebsockets (qml module) installed, and open this again"

This dependency is not available in the discover app on steam deck, and the system filesystem is RO. The dependency could be installed by changing the filesystem to RW and installing through pacman, but these changes do not survive a steam deck system update.

Workshop link
N/A

System Information Operating System: SteamOS 3.2 KDE Plasma Version: 5.23.5 KDE Frameworks Version: 5.90.0 Qt Version: 5.15.2 Kernel Version: 5.13.0-valve14-1-neptune-02195-g5b0f749d00fa (64-bit) Graphics Platform: X11 Processors: 8 × AMD Custom APU 0405 Memory: 14.5 GiB of RAM Graphics Processor: AMD Custom GPU 0405

Additional context
Not sure if this is even a problem you'll be able to work around or not, but wanted to give you a heads up as it appears no one else has an open report for this issue yet.

Crono141 commented 2 years ago

Follow up comment. It looks like there's a flatpack installed on Deck QtWebKit BaseApp. Does this package contain the qtwebsockets module? If so, then perhaps the only change needed is to have the plugin look in the flatpak area as well as the usual system folders.

If not, please ignore.

Crono141 commented 2 years ago

Today I decided to work around the rootfs reset on update issue by writing a script to basically reinstall all the dependencies for this plugin (along with a few other things like OpenVPN support). I got all the dependencies installed, but when I went to build the plugin, I'm now getting an error:

Could NOT find X11 (missing: X11_X11_INCLUDE_PATH).

I've installed several packages from pacman to try and resolve this but I'm not having any luck at all. Obviously X11 is installed, but cmake can't find it.

EDIT: I actually have a number of paths not found. See attached CMakeCache.txt

EDIT Again: It seems lots/most of my not found paths are to packages which SteamOS has installed, but the files are not located in the places expected (Eg, usr/include/X11). I'm reinstalling them one by one and they are filling up the X11 include folder. I'll let you know what happens when I get to the end.

EDIT3: Well, I went through the entire list of "NOT FOUND"s in the CMakeCache.txt, and I still have the same problem. I've reduced the not-founds to a large handful. Note: these are all of the INCLUDE PATH types.

CMakeCache.txt

EDIT4: I commented out the find_package(KF5 etc) line to see if I could get it to build, but now I'm getting OPENGL_INCLUDE_DIR missing error, despite having Mesa and lib32-mesa installed. Steam deck is weird, man.

poipoi300 commented 2 years ago

I went about as far as you, and failing at the CMAKE build process. Except I don't have the "Please make sure qtwebsockets (qml module) installed, and open this again" message anymore.

I honestly could not say which part fixed it, however I went back and reinstalled packages one by one with pacman, and some packages had not installed properly. I also installed the entirety of qt. As of now, mpv also refuses to install due to a gpg error.

The background plugin itself shows up fine, I can select wallpapers but the desktop will update to either white, black or black with some text.

Crono141 commented 1 year ago

So I took another stab at this today in a roundabout way. I have another computer running arch, which I used to build the package and plugin lib, and then transferred to steamdeck. I had to correct the path for "cmake" in the makefile after the transfer but after that was was able to make install_pkg and sudo make install. The plugin installed fine, and I got no errors on the make install, but the plugin is reporting that the pluginlib is still missing. I am wondering if it needed to go into a different folder on steamdeck vs a normal arch install (which it was built on). Can you provide any help on alternate locations for the pluginlib and associated file?

slynobody commented 1 year ago

the plugin path seems to be like usual: /usr/lib/qt/qml/com/github/catsout/wallpaperEngineKde/ what seens to be needed is to install mpv first: sudo pacman -S mpv python-websockets qt5-websockets --overwrite '*' one could use the lib from another arch machine to install it to the path above to also make things work the version from discover does not support in the first place (i have a few video codecs in my install script for steamos updates, f.e. from the bad and ugly front helping some more too).

chinalhx commented 5 months ago

the plugin path seems to be like usual: /usr/lib/qt/qml/com/github/catsout/wallpaperEngineKde/ what seens to be needed is to install mpv first: sudo pacman -S mpv python-websockets qt5-websockets --overwrite '*' one could use the lib from another arch machine to install it to the path above to also make things work the version from discover does not support in the first place (i have a few video codecs in my install script for steamos updates, f.e. from the bad and ugly front helping some more too).

So,how to install Plugin Lib(for scene,mpv) I’m linux noob,pls teach me:(