Replies: 3 comments 10 replies
-
Thank you very much! I've just updated SRM with pkgconfig support, and I am now including it in Louvre. The compositor may crash because it might not find the graphic or input backends. I am also adding a Meson option to specify paths for both the backends and assets. You can set the LOUVRE_DEBUG environment variable to 4 to see full debugging messages. |
Beta Was this translation helpful? Give feedback.
-
Maybe, I'm running it in a QEMU VM which I assume only has software rendering, I'm doing this since it can't acquire DRM when running it directly from the existing graphical environment. Is there a way to get it to run in a window like Weston? I'm going to get that SRM log in a bit, but I assume this would be the reason.
No worries :P Exactly, these should be good. Also, another suggestion (and tbh I could just PR this if you'd like): Speaking of changing paths, I would separate backends into Louvre/backends/graphics and Louvre/backends/input and then make the default backend options take a name from which it builds the actual library path. E.g. when setting default_graphic_backend=DRM it will load Louvre/backends/graphics/DRM.so. That would prevent accidentally being able to load backends for something they're not useful for since they're not in the same directory, and also maybe in the future being able to have backends which aren't tied to a shared object file (for example, maybe for a statically compiled compositor, which can't use dlopen) since you no longer have the explicit .so in the backend name. Also as you noticed I left away the lib prefix, I don't know how Meson lets you do this but CMake lets you add a library as MODULE which is exactly for this purpose and causes it to leave away the prefix when linking (you can see this used with Qt plugins for example):
(from add_library documentation) |
Beta Was this translation helpful? Give feedback.
-
Update: I got it to work on my actual PC! Also submitted a PR to include it in nixpkgs: NixOS/nixpkgs#269247 |
Beta Was this translation helpful? Give feedback.
-
I packaged Louvre and SRM for NixOS. Package files here and here.
Right now this patches the hardcoded paths since Nix doesn't have /usr, hopefully that will get better in the future (#13).
To run the examples, for example louvre-views:
nix shell sourcehut:~dblsaiko/nix-extras#louvre -c louvre-views
. It doesn't work yet though and just exits with status 1, will have to figure out what's going on.Beta Was this translation helpful? Give feedback.
All reactions