Le 11/06/2026 à 11:20, Kyle Robbertze a écrit :
I suspect libffmpeg-ocaml is (statically) linked into the liquidsoap
executable, and not referenced by the libraries installed by the
liquidsoap binary package.
Yes, that appears to be what is happening - ffmpeg forms part of the
liquidsoap core that produces /usr/bin/liquidsoap and not any additional
ocaml libraries. Is there a way to get dune to link to the shared
library instead of statically linking to ocaml-ffmpeg?
It cannot be done at the dune level. With OCaml, dynamic linking is
supported only for plugins (à la dlopen) and an executable that wants to
use shared libraries has to be explicitly designed to do so.
But there is another problem to be solved first: one has be sure that
the ABI in libffmpeg-ocaml-<ABI> encompasses the "ABI details" of ffmpeg
it depends on.
Cheers,
--
Stéphane