17:07DottorLeo: @MrCooper, hi! i've read the logs, Is your setup with ""meson devenv" difficult to use?
17:24soreau: DottorLeo: what I do is configure mesa to --prefix=/opt/mesa (any nonstandard path should work) and install it, then set `LD_LIBRARY_PATH=/opt/mesa/lib/$libdir ./your-app` to use it
17:25soreau: this way, it doesn't mess with your system mesa and you can test what you want
19:07DottorLeo: soreau: you mean compiling with that configuration and then using the LD_LIBRARY command?
19:09soreau: DottorLeo: LD_LIBRARY_PATH is an environment variable that tells ld where to look for libraries (first)
19:10DottorLeo: i should use it on steam on the "additional command" configuration dialog?
19:11soreau: so you 'just' `meson setup --prefix=/opt/mesa build && ninja -C build ....` and then you point LD_LIBRARY_PATH to the lib directory before running a (GL) program
19:11soreau: I'm not sure whether steam overrides or unsets LD_LIBRARY_PATH
19:12DottorLeo: ok, i'll try thanks
19:12soreau: but in theory, it should be as simple as LD_LIBRARY_PATH=/opt/mesa/lib/$libdir steam
19:13soreau: for vulkan games, you'll want to also set i.e. VK_ICD_FILENAMES=/opt/mesa/share/vulkan/icd.d/radeon_icd.x86_64.json
20:53_ds_: Steam does mangle LD_LIBRARY_PATH – you'll need to use something like this:
20:53_ds_: LD_LIBRARY_PATH="/opt/mesa/lib/$libdir:$LD_LIBRARY_PATH" %command%
20:55_ds_: (one for DottorLeo to read via logs)
21:07soreau: sounds about typical
21:07soreau: of course you need to change $libdir to the real name of your library directory
21:20_ds_: soreau, $LIB (or ${LIB}) will be expanded by ld.so to an architecture-dependent string – it belongs exactly where you put “lib/$libdir”. “LD_LIBRARY_PATH='/opt/mesa/$LIB' ld.so --help” to test.
21:20_ds_: (With that test, I get “/opt/mesa/lib/x86_64-linux-gnu (LD_LIBRARY_PATH)” as the first line in the search paths list output by ld.so.)
21:21soreau: _ds_: that part seems to be distro-specific perhaps?
21:21soreau: here $LIB is unset
21:21_ds_: If you're letting the shell expand it, you're doing it wrong.
21:21soreau: well I've never needed to use this
21:22soreau: so idk why I need it
21:24_ds_: Not sure whether it is actually needed here – probably not. But if you're building for both amd64 and i386 and installing in /opt/mesa, you're going to want to set LIBDIR suitably; better to use your distribution's defaults.
21:25_ds_: And that's where $LIB makes things easier at runtime.
21:27_ds_: (Well, something like that. I normally build .debs and I have a suitable chrooted environment.)
23:29kode54: meh: https://gitlab.freedesktop.org/drm/amd/-/issues/3618#note_2620989