Skip to content

build: install libsoundpool.so, and load it from where it is installed - #416

Merged
jwinarske merged 1 commit into
mainfrom
build/install-soundpool
Dec 3, 2026
Merged

jwinarske merged 1 commit into
mainfrom
build/install-soundpool

Conversation

@jwinarske

Copy link
Copy Markdown
Contributor

Summary

meson install installed the executable alone. libsoundpool.so, which ART loads for SoundPool, stayed in the build tree, and a4l found it only through LD_LIBRARY_PATH as set by tools/run-apk.sh. A packager installed it by hand and wrote a launcher to name its directory.

  • libsoundpool.so is installed to <libdir>/a4l.
  • a4l opens it there by path before the VM starts. A boot class's System.loadLibrary reaches the dynamic linker with the bare name, and the linker searches LD_LIBRARY_PATH as it was at exec; neither -Djava.library.path nor a later setenv is consulted. A library already open under that name is handed back.
  • --split binds that directory read-only into the app process.
  • Catch2 is a test dependency: it is no longer installed with a4l, and its own SelfTest is no longer built or run.

A wayland-cxx-scanner built from the wrap still installs its headers. meson install --skip-subprojects leaves them out, and the README says so; a4l cannot switch that off from its side.

Test status (x86-64)

Installed to a prefix, no ACL_ART_LIBPATH, the build tree's copy of the library moved away.

Check Result
split-audio (SoundPool), single-process and --split Passes: 112128 frames at the sink, none dropped
Same, installed library removed Reports the library missing
A WebView app on the installed executable 564 frames in 22 s
Suite, fresh default build 134 of 134, no warning
Plain meson install bin/a4l, lib64/a4l/libsoundpool.so, 36 wayland-cxx-scanner files
meson install --skip-subprojects the first two only

The suite has one test fewer than before: Catch2's SelfTest.

Not tested: arm64, and an install under /usr.

`meson install` installed the executable alone. libsoundpool.so, which
ART loads for SoundPool, stayed in the build tree, and a4l found it
only through LD_LIBRARY_PATH as set by tools/run-apk.sh. A packager
installed it by hand and wrote a launcher to name its directory.

- libsoundpool.so is installed to <libdir>/a4l.
- a4l opens it there by path before the VM starts. A boot class's
  System.loadLibrary reaches the dynamic linker with the bare name,
  and the linker searches LD_LIBRARY_PATH as it was at exec; neither
  -Djava.library.path nor a later setenv is consulted. A library
  already open under that name is handed back.
- --split binds that directory read-only into the app process.
- Catch2 is a test dependency: it is no longer installed with a4l,
  and its own SelfTest is no longer built or run.

A wayland-cxx-scanner built from the wrap still installs its headers;
`meson install --skip-subprojects` leaves them out (README).

Tested, x86-64, installed to a prefix, no ACL_ART_LIBPATH, the build
tree's copy moved away:
- split-audio (SoundPool) passes single-process and under --split:
  112128 frames at the sink, none dropped. With the installed library
  removed it reports the library missing.
- A WebView app runs on the installed executable: 564 frames in 22 s.
- Suite on a fresh default build: 134 of 134 (one fewer than before:
  Catch2's SelfTest). No warning.
- Plain install: bin/a4l, lib64/a4l/libsoundpool.so and 36 files of
  wayland-cxx-scanner; with --skip-subprojects, the first two.

Signed-off-by: Joel Winarske <joel.winarske@linux.com>
@jwinarske
jwinarske merged commit b057d26 into main Dec 3, 2026
11 checks passed
@jwinarske
jwinarske deleted the build/install-soundpool branch December 3, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant