Error compiling with FFmpeg on linux

Hello.

I have successfully built and installed ffmpeg-0.11 (latest release at this date) on my machine (linux 3.4 on intel x86, 32-bits, with gcc 4.5.2).

However, when I configure and build audacity 2.0 from source, I get a bunch of errors like these (only first errors shown):

FFmpeg.h:556:4: error: use of enum ‘SampleFormat’ without previous declaration
FFmpeg.h:556:4: error: use of enum ‘SampleFormat’ without previous declaration
FFmpeg.h:593:4: error: ‘AVFormatParameters’ has not been declared
FFmpeg.h:593:4: error: ‘AVFormatParameters’ has not been declared
FFmpeg.h:610:4: warning: ‘av_register_protocol_fp’ initialized and declared ‘extern’

Is it my FFmpeg version that has been miscompiled, or is ffmpeg-0.11 incompatible with audacity 2.0?

Thanks.


F. Delente

It may be a compatibility issue. ffmpeg-0.11 was only released last week so I doubt that many people have tried it yet (I haven’t) and most distros are still shipping 0.7.x

Ok, I’ll remove 0.11 and try with 0.7 if I can find a tarball.

Thanks!


F. Delente

You can probably just use the one from your distro repository.
If you want to self compile, the source code should be available from the repository, or get the tarball here: http://ffmpeg.org/download.html