[libcamera-devel] Static linking libcamera
Christian Rauch
Rauch.Christian at gmx.de
Wed May 10 20:16:36 CEST 2023
Hi Elias,
I was looking into this a while ago:
- https://patchwork.libcamera.org/patch/17901/
- https://patchwork.libcamera.org/patch/17941/
Back then, there was not really interest in statically linking libcamera
due to potential ABI incompatibility with dynamic IPA modules of
different versions. I was also hitting other issues as libcamera was
trying to resolve paths to modules via dynamic symbols in the core library.
Best,
Christian
Am 10.05.23 um 04:35 schrieb Elias Naur via libcamera-devel:
> Hi,
>
> I'd like to build a static binary for Raspberry Pi with libcamera. A
> single static binary
> is much easier to package for an embedded setup than a binary plus its
> transitive
> dependency libraries.
> However, I can't figure out how to do that with libcamera; I tried passing
> --default-library static to meson but that didn't make any difference
> as far as I can tell.
>
> Is it possible to static link libcamera? If so, can the IPA loading
> and signature checking
> also be skipped altogether? Currently I patch out the signature
> checking for simplicity
> and to preserve reproducible builds.
>
> Thanks,
> Elias
More information about the libcamera-devel
mailing list