chromaprint does not build with >=ffmpeg-2.0

Issue #8 resolved
Former user created an issue

Steps to produce the error: cmake -DBUILD_TOOLS=ON -DCMAKE_BUILD_TYPE=Release . make

The tool fpcollect does not compile: In file included from /home/ci3nt/sourcecode/chromaprint/tools/fpcollect.cpp:13:0: /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h:56:33: Fehler: »AVCODEC_MAX_AUDIO_FRAME_SIZE« wurde in diesem Gültigkeitsbereich nicht definiert /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h: In Destruktor »Decoder::~Decoder()«: /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h:83:3: Warnung: »void av_close_input_file(AVFormatContext)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1797) [-Wdeprecated-declarations] /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h:83:35: Warnung: »void av_close_input_file(AVFormatContext)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1797) [-Wdeprecated-declarations] /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h: In Elementfunktion »bool Decoder::Open()«: /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h:92:74: Fehler: »av_open_input_file« wurde in diesem Gültigkeitsbereich nicht definiert /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h:97:6: Warnung: »int av_find_stream_info(AVFormatContext)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1620) [-Wdeprecated-declarations] /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h:97:38: Warnung: »int av_find_stream_info(AVFormatContext)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1620) [-Wdeprecated-declarations] /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h:127:37: Fehler: »avcodec_open« wurde in diesem Gültigkeitsbereich nicht definiert /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h:132:33: Fehler: »SAMPLE_FMT_S16« wurde in diesem Gültigkeitsbereich nicht definiert /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h: In Elementfunktion »void Decoder::Decode(Chromaprint::AudioConsumer, int)«: /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h:178:19: Warnung: »int avcodec_decode_audio3(AVCodecContext, int16_t, int, AVPacket)« ist veraltet (deklariert bei /usr/include/libavcodec/avcodec.h:3767) [-Wdeprecated-declarations] /home/ci3nt/sourcecode/chromaprint/tools/../src/ext/ffmpeg_decoder.h:180:17: Warnung: »int avcodec_decode_audio3(AVCodecContext, int16_t, int, AVPacket*)« ist veraltet (deklariert bei /usr/include/libavcodec/avcodec.h:3767) [-Wdeprecated-declarations]

The bug is also reported at: https://bugs.gentoo.org/show_bug.cgi?id=472966

Comments (5)

  1. Lukáš Lalinský

    I'm not planning on maintaining fpcollect, so I'll fix this by removing the BUILD_TOOLS option.

  2. gerione

    As far as I know BUILD_TOOLS also builds fpcalc and fpcalc is used by Musicbrainz Picard (I think, one of the main projects, that use acousticID is picard).

  3. Log in to comment