I can compile it without issue, and I can even use “make install_pkg” to install the plugin into KDE plasma successfully (I’m missing some runtime dependencies for the plugin still, but otherwise installs fine).
But I’m not able to install the “lib” using “sudo make install”.
This “lib” provides the actual video back-end for the wallpapers.
It’s probably trying to install to a path which is not correct.
The output is the following:
You cannot run the make install_pkg manually (the nix store is readonly).
Therefore you should package the plugin and include it in your home-manager or Nixos configuration, depending how you are deploying your Kde configuration.
Cmake isn’t very explicit about this, but that’s because /nix/store is read-only. I’m not sure why it’s trying to write to that path of all places, but there’s probably some prefix auto detection going on that makes it decide that path is the correct place to write files to.
Unfortunately for you, it isn’t.
I don’t know enough about cmake on nixos to tell you how to hack around this limitation, but the correct way of building all of this in nixos would be to package it. Nixpkgs’ stdenv.mkDerivation has built-in support for cmake, so maybe it isn’t all that hard: Nixpkgs 23.11 manual | Nix & NixOS
The stdenv docs go over building custom packages in all kinds of detail: Nixpkgs 23.11 manual | Nix & NixOS. One day I’ll write some articles on this kind of stuff I can just link to, but I’m sure there are other posts you can find…
I’m not very experienced with KDE or KDE plugin dev, so can’t help much with packaging that part, but if you struggle getting a package for the cmake bits (or even just getting started) I can try to help
Note this is all very easy to do downstream, so you don’t need to package and share your package, unlike with other distros.
It compiles correctly, but if DUSE_PLASMAPKG is ON it doesn’t install the plasma plugin, just the lib.
And changing it to OFF does install the plasma plugin correctly but shows the following message
Python helper run failed:
python3: can’t open file ‘/home/spp/no_pyext_file_found’: [Errno 2] No such file or directory
So I try to get it running, but I always get following error and don’t know how to fix it:
CMake Error at src/backend_scene/third_party/glslang/CMakeLists.txt:281 (message):
ENABLE_OPT set but SPIR-V tools not found. Please run
update_glslang_sources.py, set the ALLOW_EXTERNAL_SPIRV_TOOLS option to use
a local install of SPIRV-Tools, or set ENABLE_OPT=0.
I have to correct myself. I was a bit hasty. It compiles, but when I want to select Engigne as desktop background wallpaper, there is no such option. What else did you do differently?