[Ffmpeg-devel] Re: Compiling FFmpeg using ISO/C89 compiler

Halawani, Abdelmalek abdelmalek.halawani
Wed Dec 6 16:48:45 CET 2006


As a reminder, here I compile "drffmpeg" using "gcc version 3.4.3 (Mandrake Linux 10.2 3.4.3-7mdk)", which is the same compiler that has no problem compiling the most recent "ffmpeg".

I expect that drffmpeg should compile using gcc with no problems. I really think that there is something missing.
 
I disabled snow.c and then vp3.c. However, the error stream continues. Below is a chunk of the stream.
 
mp3sencoder.h:79: warning: type defaults to `int' in declaration of `Mp3sEnc_Open'
mp3sencoder.h:79: warning: data definition has no type or storage class
mp3sencoder.h:89: error: syntax error before "Mp3sEnc_Init"
mp3sencoder.h:90: warning: type defaults to `int' in declaration of `Mp3sEnc_Init'
mp3sencoder.h:90: warning: data definition has no type or storage class
mp3sencoder.h:98: error: syntax error before "Mp3sEnc_GetInfo"
mp3sencoder.h:98: warning: type defaults to `int' in declaration of `Mp3sEnc_GetInfo'
mp3sencoder.h:98: warning: data definition has no type or storage class
mp3sencoder.h:105: error: syntax error before "Mp3sEnc_Free"
mp3sencoder.h:105: warning: type defaults to `int' in declaration of `Mp3sEnc_Free'
mp3sencoder.h:105: warning: data definition has no type or storage class
mp3sencoder.h:112: error: syntax error before "Mp3sEnc_EncodeFrame"
mp3sencoder.h:118: warning: type defaults to `int' in declaration of `Mp3sEnc_EncodeFrame'
mp3sencoder.h:118: warning: data definition has no type or storage class
mp3sencoder.h:130: error: syntax error before "Mp3sEnc_GetLibraryInfo"

Cheers,
Abed
 
----------------------------------------------------------------------

Message: 1
Date: Wed, 06 Dec 2006 13:47:45 +0100
From: Steve Lhomme <slhomme at divxcorp.com>
Subject: Re: [Ffmpeg-devel] Compiling FFmpeg using ISO/C89 compiler
To: FFmpeg development discussions and patches
        <ffmpeg-devel at mplayerhq.hu>
Message-ID: <4576BBF1.3060603 at divxcorp.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Halawani, Abdelmalek wrote:
> The drffmpeg does not compile. I did the following:
> 
> svn checkout https://svn.sourceforge.net/svnroot/drdivx/DrDivX/trunk/drffmpeg drffmpeg
>
> cd drffmpeg
> 
> ./configure
> 
> added "-I$(SRC_PATH)/export/drffmpeg" to the CFLAGS in the "common.mak" file.
> 
> make
> 
> The error messages are attached. Am i missing something.

Your attachment is kinda hard to read (winmail.dat)...
It seems that the problem is the non-C99 inline assembly used in snow.c.
You can disable the snow codec unless you really need it.

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5337 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061206/ac16eede/attachment.bin>



More information about the ffmpeg-devel mailing list