Cloned the git master (last commit 7f3fecbdf581faf7e98135d5cac535dee6faedf5) 
and when building get the
following error with libavutil 52.3.0 installed:

make  all-am
make[1]: Entering directory `/home/bson/src/mpd'
g++ -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -isystem /usr/include/glib-2.0 
-isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include 
-DSYSTEM_CONFIG_FILE_LOCATION='"/usr/local/etc/mpd.conf"'              
-I/usr/include/opus     -I/usr/include/libbinio    -D_GNU_SOURCE -std=gnu++0x 
-pthread -g -O2 -fvisibility=hidden -fno-threadsafe-statics 
-fmerge-all-constants -fno-exceptions -fno-rtti -ffast-math -ftree-vectorize 
-ffunction-sections -fdata-sections -Wall -Wextra -Wmissing-declarations 
-Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wsign-compare -MT 
src/decoder/plugins/libdecoder_a-FfmpegDecoderPlugin.o -MD -MP -MF 
src/decoder/plugins/.deps/libdecoder_a-FfmpegDecoderPlugin.Tpo -c -o 
src/decoder/plugins/libdecoder_a-FfmpegDecoderPlugin.o `test -f 
'src/decoder/plugins/FfmpegDecoderPlugin.cxx' || echo 
'./'`src/decoder/plugins/FfmpegDecoderPlugin.cxx
In file included from src/decoder/plugins/FfmpegDecoderPlugin.cxx:30:0:
./src/lib/ffmpeg/Buffer.hxx: In destructor ‘FfmpegBuffer::~FfmpegBuffer()’:
./src/lib/ffmpeg/Buffer.hxx:53:15: error: ‘av_free’ was not declared in this 
scope
   av_free(data);
               ^
make[1]: *** [src/decoder/plugins/libdecoder_a-FfmpegDecoderPlugin.o] Error 1
make[1]: Leaving directory `/home/bson/src/mpd'
make: *** [all] Error 2

Looking at Buffer.hxx it doesn’t seem as if I got libavutil/mem.h included.  
The following change gets it
building cleanly:

diff --git a/src/lib/ffmpeg/Buffer.hxx b/src/lib/ffmpeg/Buffer.hxx
index eab1be8..795a0f6 100644
--- a/src/lib/ffmpeg/Buffer.hxx
+++ b/src/lib/ffmpeg/Buffer.hxx
@@ -27,6 +27,7 @@ extern "C" {
 #define HAVE_AV_FAST_MALLOC
 #include <libavutil/mem.h>
 #else
+#include <libavutil/mem.h>
 #include <libavcodec/avcodec.h>
 #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 25, 0)
 #define HAVE_AV_FAST_MALLOC

But I’m not familiar enough with libavutil to know what would be the right fix 
is here...

-Jan.

_______________________________________________
mpd-devel mailing list
[email protected]
http://mailman.blarg.de/listinfo/mpd-devel

Reply via email to