4b4c90fb0c
On linux-aarch64 the conda gst-libav package has an unfixable ABI mismatch (libdav1d.so.6 missing, libicuuc.so.78 via libxml2-16). Fix: use system gstreamer1.0-libav installed via apt with GST_PLUGIN_PATH, and preload system libgomp.so.1 to avoid static TLS block errors when dlopen loads libgstlibav.so. avdec_h264 and avdec_aac now register correctly on device. These vars are stored in conda activate.d/gst-env.sh and in deploy/run.sh.
12 lines
591 B
Bash
12 lines
591 B
Bash
#!/usr/bin/env bash
|
|
# Launch wrapper for r36s-dlna-browser on ArkOS / R36S
|
|
# Requires: conda env r36s-dlna-browser, system gstreamer1.0-libav installed via apt.
|
|
#
|
|
# System plugin path makes avdec_h264/aac available (conda gst-libav has broken deps on aarch64).
|
|
# LD_PRELOAD is required to work around "cannot allocate memory in static TLS block" for libgomp.
|
|
export GST_PLUGIN_PATH=/usr/lib/aarch64-linux-gnu/gstreamer-1.0
|
|
export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1
|
|
|
|
CONDA_ENV=/home/ark/miniconda3/envs/r36s-dlna-browser
|
|
exec "$CONDA_ENV/bin/python" -m r36s_dlna_browser "$@"
|