Rev r11212 Error on make

Hi there,

rev r11210 compiled fine on my Xubuntu 10.04.2 32bit system. Today’s rev r11212 stops the “make”-process with the following lines:

FFmpeg.o
In file included from FFmpeg.cpp:21:
FFmpeg.h:787: warning: ‘AVMetadataTag’ is deprecated (declared at /usr/include/libavformat/avformat.h:125)
FFmpeg.h:787: warning: ‘AVMetadata’ is deprecated (declared at /usr/include/libavutil/dict.h:40)
FFmpeg.h:787: warning: ‘AVMetadataTag’ is deprecated
FFmpeg.h:787: warning: ‘AVMetadataTag’ is deprecated (declared at /usr/include/libavformat/avformat.h:125)
FFmpeg.h:787: warning: ‘AVMetadata’ is deprecated (declared at /usr/include/libavutil/dict.h:40)
FFmpeg.h:787: warning: ‘AVMetadataTag’ is deprecated
FFmpeg.h:793: warning: ‘AVMetadata’ is deprecated (declared at /usr/include/libavutil/dict.h:40)
FFmpeg.h:793: warning: ‘AVMetadata’ is deprecated (declared at /usr/include/libavutil/dict.h:40)
FFmpeg.h:799: warning: ‘AVMetadata’ is deprecated (declared at /usr/include/libavutil/dict.h:40)
FFmpeg.h:799: warning: ‘AVMetadata’ is deprecated (declared at /usr/include/libavutil/dict.h:40)
FFmpeg.cpp: In function ‘int ufile_fopen(AVIOContext**, const wxString&, int)’:
FFmpeg.cpp:275: warning: ‘int url_open(URLContext**, const char*, int)’ is deprecated (declared at FFmpeg.h:647)
FFmpeg.cpp:275: warning: ‘int url_open(URLContext**, const char*, int)’ is deprecated (declared at FFmpeg.h:647)
FFmpeg.cpp:281: warning: ‘int url_fdopen(AVIOContext**, URLContext*)’ is deprecated (declared at FFmpeg.h:653)
FFmpeg.cpp:281: warning: ‘int url_fdopen(AVIOContext**, URLContext*)’ is deprecated (declared at FFmpeg.h:653)
FFmpeg.cpp:283: warning: ‘int url_close(URLContext*)’ is deprecated (declared at FFmpeg.h:659)
FFmpeg.cpp:283: warning: ‘int url_close(URLContext*)’ is deprecated (declared at FFmpeg.h:659)
FFmpeg.cpp: In function ‘int ufile_fopen_input(AVFormatContext**, wxString&)’:
FFmpeg.cpp:319: error: ‘AVERROR_NOMEM’ was not declared in this scope
FFmpeg.cpp:384: error: ‘AVERROR_NOFMT’ was not declared in this scope
FFmpeg.cpp:389: warning: ‘int av_open_input_stream(AVFormatContext**, AVIOContext*, const char*, AVInputFormat*, AVFormatParameters*)’ is deprecated (declared at FFmpeg.h:565)
FFmpeg.cpp:389: warning: ‘int av_open_input_stream(AVFormatContext**, AVIOContext*, const char*, AVInputFormat*, AVFormatParameters*)’ is deprecated (declared at FFmpeg.h:565)
FFmpeg.cpp: In member function ‘bool FFmpegLibs::InitLibs(wxString, bool)’:
FFmpeg.cpp:924: warning: ‘int av_register_protocol2(URLProtocol*, int)’ is deprecated (declared at FFmpeg.h:823)
FFmpeg.cpp:924: warning: ‘int av_register_protocol2(URLProtocol*, int)’ is deprecated (declared at FFmpeg.h:823)
make[1]: *** [FFmpeg.o] Fehler 1
make[1]: Verlasse Verzeichnis ‘/home/babarosa/audacity-read-only/src’
make: *** [audacity] Fehler 2

I updated ffmpeg yesterday from 4:0.7 to 4:0.8 from here “https://launchpad.net/~jon-severinsson/+archive/ffmpeg”, so this could be responsable too for the error message :wink:

It is intended for your information, maybe someone has got a clue.

Cheers, Michael

This is from a reply to a similar post a few weeks ago, it may or may not apply to your situation:

Fixes for this stuff are known, but it seems the Audacity code and Ubuntu still need a few common burrs filed down before all will be good.

I think the issue stopping Audacity HEAD compiling on (x)ubuntu 10.04 is if the FFmpeg version is the old 0.5.

The changes between 11210 and 11212 would not create the errors you see, so I suggest going back to FFmpeg 4:0.7. Audacity HEAD does not officially support FFmpeg > 0.6.2 - anything later may or may not break compilation of Audacity.



Gale

Thanks for the answers,

@ Gale Andrews
You are right, after going back to ffmpeg 4:0.7 Audacity’s latest svn compiles fine again :sunglasses:

Now I have to find a solution to get rid of the colour-corrupted screencasts produced with ffmpeg 4:0.7, which worked fine with ffmpeg 4:0.8 :laughing:

Greetings, Michael