[Buildroot] [PATCH v2] mediastreamer: fix avcodec functions conflict

Giulio Benetti giulio.benetti at micronovasrl.com
Mon Sep 3 20:32:24 UTC 2018


Hello,

Il 03/09/2018 21:14, Giulio Benetti ha scritto:
> Autotools miss avcodec function check leading to conflicts between local
> functions and avcodec functions.
> 
> Add patch to append -ldrm to FFMPEG_LIBS which are checked when
> AC_CHECK_LIB on avcodec_* functions.
> 
> Fixes:
> http://autobuild.buildroot.net/results/394/3945e06ea0dd1e16013184fbab5b67b3561c87ce/
> http://autobuild.buildroot.net/results/576/576c7d71313c45753848462717200b2b8ff5bb0e/
> http://autobuild.buildroot.net/results/f33/f339ac6ea30815eeb8ecb144c971f56c06a9f995
> 
> Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
> ---
> Changes V1->V2:
> * merge -ldrm into FFMPEG_LIBS instead of repeating it thrice.

Sorry I did it too much of a hurry.
It's not about -lavcodec but -lavutil and it's better to swap
$FFMPEG_LIBS and -lavutil this way:
from this:
FFMPEG_LIBS="$FFMPEG_LIBS -lavutil"
to this:
FFMPEG_LIBS="-lavutil $FFMPEG_LIBS"

This way -ldrm is contained in $FFMPEG_LIBS, after -lavutil(the library 
which needs -ldrm).

I wait for other comments before submittin v3.

Sorry again

Best regards
Giulio Benetti



More information about the buildroot mailing list