Error compiling with FFmpeg on linux

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
fdelente
Posts: 4
Joined: Thu May 24, 2012 5:21 pm
Operating System: Please select

Error compiling with FFmpeg on linux

Post by fdelente » Thu May 31, 2012 12:50 pm

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

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

Re: Error compiling with FFmpeg on linux

Post by steve » Thu May 31, 2012 1:51 pm

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
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

fdelente
Posts: 4
Joined: Thu May 24, 2012 5:21 pm
Operating System: Please select

Re: Error compiling with FFmpeg on linux

Post by fdelente » Thu May 31, 2012 1:58 pm

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

Thanks!

--
F. Delente

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

Re: Error compiling with FFmpeg on linux

Post by steve » Thu May 31, 2012 2:17 pm

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
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply