Re: compile error: ‘avformat_close_input’ was not declared in this scope

Sergey Ivanov 123kash at gmail.com
Fri Jul 20 05:10:18 UTC 2012


Yes, It's my fault. I'll fix It today evening or tomorrow morning. So,
just a little bit more patience. :) Or you can disable musicdns
support by passing -DWITH_LIBOFA=ON to cmake.

2012/7/19 Mathias Panzenböck <grosser.meister.morti at gmx.net>:
> This issue still persists in GIT. Is there a way to deactivate this feature
> (musicbrainz)? I don't use it anyway.
>
>         -panzi
>
>
> On 07/14/2012 04:22 PM, Sam wrote:
>>
>> On 14 July 2012 15:15, Mathias Panzenböck <grosser.meister.morti at gmx.net>
>> wrote:
>>>
>>> Since (I think) yesterday I get these compile errors:
>>>
>>> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp: In
>>> member function ‘virtual void MusicDNSAudioDecoder::run()’:
>>>
>>> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:146:47:
>>> error: ‘avformat_close_input’ was not declared in this scope
>>>
>>> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:161:47:
>>> error: ‘avformat_close_input’ was not declared in this scope
>>>
>>> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:170:47:
>>> error: ‘avformat_close_input’ was not declared in this scope
>>>
>>> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:177:47:
>>> error: ‘avformat_close_input’ was not declared in this scope
>>>
>>> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:185:47:
>>> error: ‘avformat_close_input’ was not declared in this scope
>>>
>>> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:214:104:
>>> error: ‘avcodec_decode_audio4’ was not declared in this scope
>>>
>>> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:227:109:
>>> error: ‘AVFrame’ has no member named ‘nb_samples’
>>>
>>> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:227:145:
>>> error: ‘av_samples_get_buffer_size’ was not declared in this scope
>>>
>>> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:259:43:
>>> error: ‘avformat_close_input’ was not declared in this scope
>>> make[2]: ***
>>> [src/CMakeFiles/amaroklib.dir/musicbrainz/MusicDNSAudioDecoder.o] Error 1
>>>
>>>
>>> avformat_close_input is from ffmpeg, right? I have ffmpeg-devel installed
>>> (version 0.8.12). cmake does not complain about anything.
>>>
>>>          -panzi
>>
>>
>> This is likely the commit that's causing problems:
>>
>> http://quickgit.kde.org/index.php?p=amarok.git&a=commit&h=5e609a6dccb523655205eabc29d26cda503796c2
>> Something it changed must have been introduced after version 0.7.
>> (Easy to do, ffmpeg's API changes are a nightmare.) Sergey, could you
>> look at this please?
>
>
>
>
> _______________________________________________
> Amarok-devel mailing list
> Amarok-devel at kde.org
> https://mail.kde.org/mailman/listinfo/amarok-devel



-- 
Sergey Ivanov


More information about the Amarok-devel mailing list