Compile fails at ffmpeg

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
widgeteye
Posts: 2
Joined: Sat Jul 12, 2008 12:30 am
Operating System: Please select

Compile fails at ffmpeg

Post by widgeteye » Wed Mar 20, 2013 7:43 pm

Slackware ver 14.0
Kernel version Linux version 3.2.29-smp

I'm wondering what version of ffmpeg this iteration of Audacity is built with. I installed the latest ffmpeg version from their git repository a couple of days ago.
It is version:
ffmpeg version N-45599-g9de5b11 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 16 2012 13:44:46 with gcc 4.5.2 (GCC)

Anyway when I try to build Audacity 2.0.3 I get the following errors:

In file included from AudacityApp.cpp:70:0:
FFmpeg.h:356:4: error: 'SampleFormat' does not name a type
FFmpeg.h:585:4: error: use of enum 'SampleFormat' without previous declaration
FFmpeg.h:585:4: error: use of enum 'SampleFormat' without previous declaration
FFmpeg.h:622:4: error: 'AVFormatParameters' has not been declared
FFmpeg.h:622:4: error: 'AVFormatParameters' has not been declared
FFmpeg.h:639:4: warning: 'av_register_protocol_fp' initialized and declared 'extern' [enabled by default]
FFmpeg.h:639:4: error: 'URLProtocol' was not declared in this scope
FFmpeg.h:639:4: error: 'protocol' was not declared in this scope
FFmpeg.h:639:4: error: 'av_register_protocol' declared as an 'inline' variable
FFmpeg.h:639:4: error: 'URLProtocol' was not declared in this scope
FFmpeg.h:639:4: error: 'protocol' was not declared in this scope
FFmpeg.h:639:4: error: expected ',' or ';' before '{' token
FFmpeg.h: In function 'AVCodec* av_codec_next(AVCodec*)':
FFmpeg.h:686:4: error: declaration of C function 'AVCodec* av_codec_next(AVCodec*)' conflicts with

etc, etc, etc

FFmpeg.h:908:4: error: expected ',' or ';' before '{' token
AudacityApp.cpp:217:13: warning: 'void wxOnAssert(const wxChar*, int, const wxChar*)' defined but not used [-Wunused-function]
make[1]: *** [AudacityApp.o] Error 1
make[1]: Leaving directory `/usr/local/src/audacity/src'
make: *** [audacity] Error 2

Any Help greatly appreciated.

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Compile fails at ffmpeg

Post by steve » Wed Mar 20, 2013 7:52 pm

Audacity should support building against FFmpeg 0.5 through 0.8. It may not currently be possible to build Audacity against later versions of FFmpeg.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply