Build Louvre and SRM as subprojects #23
Replies: 2 comments 1 reply
-
With SRM, you can do that, but with Louvre, this is more challenging because the backends and assets are installed in different directories and loaded at runtime. When you only compile, the meson build directory does not have the structure Louvre needs, so as you may have noticed, it doesn't work. I believe the best option would be to continue installing but with a different prefix: $ meson setup build --prefix=/path/to/install I am also considering adding an option for linking the backends statically, but this would be available later on. |
Beta Was this translation helpful? Give feedback.
-
I am also interested in this. It helps for two reasons:
I was able to build and install Louvre in a local prefix using SRM as a submodule with these two changes: For searching for backends, I think we could use build_rpath and install_rpath meson options to set the default path for looking up backends. Then you could dlopen a relative path. It would also be good if it only required one environment variable to override the search path (instead of both LOUVRE_BACKENDS_PATH and LOUVRE_GRAPHIC_BACKEND/LOUVRE_INPUT_BACKEND). The issue is due to mismatch between build folder layout and install folder layout. |
Beta Was this translation helpful? Give feedback.
-
It would be nice to compile and use Louvre and SRM as a subproject without needing to install them (for debugging purposes). Is this something that's on your radar? :)
Beta Was this translation helpful? Give feedback.
All reactions