[FFmpeg-devel] [RFC] Support dynamic loading of third-party libs

Nicolas George george at nsup.org
Wed Jan 14 21:33:25 CET 2015


Le quintidi 25 nivôse, an CCXXIII, Marc Giger a écrit :
>			   For example if they want use libfaac then
> they should be able to do so without that much hassle a full compilation
> inclusive all dependencies can be.

I was expecting something like that. Unfortunately, it does not work that
way: dlopen()ing libfaac will not allow you to omit --enable-nonfree and to
redistribute the resulting binary, because the libfaac wrapper still
includes the faac headers, which contain non-trivial code (including a big
structure definition) that get translated into the resulting object file.

Apart from that, I fully agree with Michael's last comment: using dynamic
linker black magic to make this lazy linking transparent is the best option
to implement that feature if it is deemed useful.

>				     On Linux/OpenSource OS's things are
> easy, on proprietary platforms ...

Nothing prevents users on proprietary platforms from adopting automated
repositories like Debian's apt system and everything that imitated it since
to install Libre software, except the users' habits. Using such a repository
to distribute your project is a good way of pushing users to change their
habits for the better.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150114/9b0b4bf2/attachment.asc>


More information about the ffmpeg-devel mailing list