[FFmpeg-devel] Specifying lib path when building ffmpeg

Matteo Naccari Matteo.Naccari at bbc.co.uk
Thu Nov 3 20:02:57 EET 2016

Dear FFmpeg developers,

I'm trying to build a fork of ffmpeg under Linux (Ubuntu 14.04, gcc 4.82) which then integrates the codec I'm working on (https://github.com/bbc/turingcodec). This codec uses some boost libraries which ship with the source code. However, when I build ffmpeg enabling the Turing codec (--enable-libturing) I can see that the executable of ffmpeg links the system's boost libraries. Is there a way to link to the libraries associated with the Turing codec? I've tried the --extra-ldflags option but no joy. The way I configure the build is the following:

PATH="/path/to/source/code/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib-L/path/to/turing/source/code/build/release/boost" --bindir="$HOME/bin" --enable-gpl --enable-nonfree --enable-libturing

Many thanks for your help!
Best regards,

Matteo Naccari, Ph.D., Senior Research Engineer BBC R&D, Centre House, London, 56 Wood lane, W12 7SB
Phone: +44 (0)303 0409640      Skype: matteo_naccari
Alternative emails: matteo.naccari at polimi.it, matteo.naccari at gmail.com
Webpage: http://sites.google.com/site/matteonaccari

This e-mail (and any attachments) is confidential and
may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in
error, please delete it from your system.
Do not use, copy or disclose the
information in any way nor act in reliance on it and notify the sender
Please note that the BBC monitors e-mails
sent or received.
Further communication will signify your consent to

More information about the ffmpeg-devel mailing list