[Ffmpeg-devel] Build ffmpeg on Win32

yj yunjnz
Fri Mar 10 08:26:28 CET 2006


Hi,
As I parsed yesterday, the error information after
issuing command: ./configure:


big/little test failed
Error, no memalign() but SSE enabled, disable it or
use --enable-memalign-hack

if issue configure command with option
--enable-memalign-hack,

configuration will be successful, but still prompt the
information: big/little test failed.

after the configuration, Type make, here is the error
information:

make -C libavutil all
make[1]: Entering directory
`/h/linuxproj/mpegtest/ffmpeg/libavutil'
gcc -O3 -g -Wall -Wno-switch 
-Wdeclaration-after-statement -DHAVE_AV_CONFIG_H
-DBUILD_AVUTIL -I.. -D_FILE_OFFSET_BITS=64 -D
_LARGEFILE_SOURCE -D_GNU_SOURCE  -c -o mathematics.o
mathematics.c
In file included from mathematics.c:24:
common.h:162: error: syntax error before
"uint_fast64_t"
common.h:162: warning: type defaults to `int' in
declaration of `uint_fast64_t'
common.h:162: warning: data definition has no type or
storage class
In file included from common.h:257,
                 from mathematics.c:24:
bswap.h:20: error: syntax error before "bswap_16"
bswap.h:20: error: syntax error before "x"
bswap.h:21: warning: return type defaults to `int'
bswap.h: In function `bswap_16':
bswap.h:23: error: `x' undeclared (first use in this
function)
bswap.h:23: error: (Each undeclared identifier is
reported only once
bswap.h:23: error: for each function it appears in.)
bswap.h: At top level:
bswap.h:28: error: syntax error before "bswap_32"
bswap.h:28: error: syntax error before "x"
bswap.h:29: warning: return type defaults to `int'
bswap.h: In function `bswap_32':
bswap.h:32: error: `x' undeclared (first use in this
function)
bswap.h: At top level:
bswap.h:43: error: syntax error before "bswap_64"
bswap.h:43: error: syntax error before "x"
bswap.h:44: warning: return type defaults to `int'
bswap.h: In function `bswap_64':
bswap.h:52: error: syntax error before "uint64_t"
bswap.h:52: warning: no semicolon at end of struct or
union
bswap.h:54: error: syntax error before "uint32_t"
bswap.h:54: warning: no semicolon at end of struct or
union
bswap.h: At top level:
bswap.h:55: warning: type defaults to `int' in
declaration of `l'
bswap.h:55: warning: data definition has no type or
storage class
bswap.h:56: error: syntax error before '}' token
bswap.h:56: warning: type defaults to `int' in
declaration of `r'
bswap.h:56: warning: data definition has no type or
storage class
bswap.h:57: error: syntax error before '.' token
In file included from mathematics.c:24:
common.h:313: error: syntax error before "inverse"
common.h:313: warning: type defaults to `int' in
declaration of `inverse'
common.h:313: warning: data definition has no type or
storage class
common.h:357: error: syntax error before "ff_log2_tab"
common.h:357: warning: type defaults to `int' in
declaration of `ff_log2_tab'
common.h:357: warning: data definition has no type or
storage class
common.h:435: error: syntax error before "ff_sqrt_tab"
common.h:435: warning: type defaults to `int' in
declaration of `ff_sqrt_tab'
common.h:435: warning: data definition has no type or
storage class
common.h:437: error: syntax error before "ff_gcd"
common.h:437: error: syntax error before "a"
common.h:437: warning: type defaults to `int' in
declaration of `ff_gcd'
common.h:437: warning: data definition has no type or
storage class
In file included from mathematics.c:25:
integer.h:33: error: syntax error before "uint16_t"
integer.h:33: warning: no semicolon at end of struct
or union
integer.h:34: warning: type defaults to `int' in
declaration of `AVInteger'
integer.h:34: warning: data definition has no type or
storage class
integer.h:36: error: syntax error before "av_add_i"
integer.h:36: error: syntax error before "a"
integer.h:36: warning: type defaults to `int' in
declaration of `av_add_i'
integer.h:36: warning: data definition has no type or
storage class
integer.h:37: error: syntax error before "av_sub_i"
integer.h:37: error: syntax error before "a"
integer.h:37: warning: type defaults to `int' in
declaration of `av_sub_i'
integer.h:37: warning: data definition has no type or
storage class
integer.h:38: error: syntax error before "a"
integer.h:39: error: syntax error before "av_mul_i"
integer.h:39: error: syntax error before "a"
integer.h:39: warning: type defaults to `int' in
declaration of `av_mul_i'
integer.h:39: warning: data definition has no type or
storage class
integer.h:40: error: syntax error before "a"
integer.h:41: error: syntax error before "av_shr_i"
integer.h:41: error: syntax error before "a"
integer.h:41: warning: type defaults to `int' in
declaration of `av_shr_i'
integer.h:41: warning: data definition has no type or
storage class
integer.h:42: error: syntax error before "av_mod_i"
integer.h:42: error: syntax error before '*' token
integer.h:42: warning: type defaults to `int' in
declaration of `av_mod_i'
integer.h:42: warning: data definition has no type or
storage class
integer.h:43: error: syntax error before "av_div_i"
integer.h:43: error: syntax error before "a"
integer.h:43: warning: type defaults to `int' in
declaration of `av_div_i'
integer.h:43: warning: data definition has no type or
storage class
integer.h:44: error: syntax error before "av_int2i"
integer.h:44: error: syntax error before "a"
integer.h:44: warning: type defaults to `int' in
declaration of `av_int2i'
integer.h:44: warning: data definition has no type or
storage class
integer.h:45: error: syntax error before "av_i2int"
integer.h:45: error: syntax error before "a"
integer.h:45: warning: type defaults to `int' in
declaration of `av_i2int'
integer.h:45: warning: data definition has no type or
storage class
In file included from mathematics.h:4,
                 from mathematics.c:26:
rational.h: In function `av_cmp_q':
rational.h:42: error: syntax error before "tmp"
rational.h:44: error: `tmp' undeclared (first use in
this function)
rational.h: At top level:
rational.h:61: error: syntax error before "int64_t"
In file included from mathematics.c:26:
mathematics.h:18: error: syntax error before
"av_rescale"
mathematics.h:18: error: syntax error before "a"
mathematics.h:18: warning: type defaults to `int' in
declaration of `av_rescale'
mathematics.h:18: warning: data definition has no type
or storage class
mathematics.h:24: error: syntax error before
"av_rescale_rnd"
mathematics.h:24: error: syntax error before "a"
mathematics.h:24: warning: type defaults to `int' in
declaration of `av_rescale_rnd'
mathematics.h:24: warning: data definition has no type
or storage class
mathematics.h:29: error: syntax error before
"av_rescale_q"
mathematics.h:29: error: syntax error before "a"
mathematics.h:29: warning: type defaults to `int' in
declaration of `av_rescale_q'
mathematics.h:29: warning: data definition has no type
or storage class
mathematics.c:28: error: syntax error before
"ff_sqrt_tab"
mathematics.c:28: warning: type defaults to `int' in
declaration of `ff_sqrt_tab'
mathematics.c:33: warning: data definition has no type
or storage class
mathematics.c:35: error: syntax error before
"ff_log2_tab"
mathematics.c:35: warning: type defaults to `int' in
declaration of `ff_log2_tab'
mathematics.c:44: warning: data definition has no type
or storage class
mathematics.c:46: error: syntax error before "ff_gcd"
mathematics.c:46: error: syntax error before "a"
mathematics.c:46: warning: return type defaults to
`int'
mathematics.c: In function `ff_gcd':
mathematics.c:47: error: `b' undeclared (first use in
this function)
mathematics.c:47: error: `a' undeclared (first use in
this function)
mathematics.c: At top level:
mathematics.c:51: error: syntax error before
"av_rescale_rnd"
mathematics.c:51: error: syntax error before "a"
mathematics.c:51: warning: return type defaults to
`int'
mathematics.c: In function `av_rescale_rnd':
mathematics.c:52: error: syntax error before "ai"
mathematics.c:53: error: `int64_t' undeclared (first
use in this function)
mathematics.c:58: error: `a' undeclared (first use in
this function)
mathematics.c:58: error: `b' undeclared (first use in
this function)
mathematics.c:58: error: `c' undeclared (first use in
this function)
mathematics.c:58: error: `rnd' undeclared (first use
in this function)
mathematics.c:70: error: `ai' undeclared (first use in
this function)
mathematics.c: At top level:
mathematics.c:76: error: syntax error before
"av_rescale"
mathematics.c:76: error: syntax error before "a"
mathematics.c:76: warning: return type defaults to
`int'
mathematics.c: In function `av_rescale':
mathematics.c:77: error: `a' undeclared (first use in
this function)
mathematics.c:77: error: `b' undeclared (first use in
this function)
mathematics.c:77: error: `c' undeclared (first use in
this function)
mathematics.c: At top level:
mathematics.c:80: error: syntax error before
"av_rescale_q"
mathematics.c:80: error: syntax error before "a"
mathematics.c:80: warning: return type defaults to
`int'
mathematics.c: In function `av_rescale_q':
mathematics.c:81: error: `int64_t' undeclared (first
use in this function)
mathematics.c:81: error: syntax error before "b"
mathematics.c:83: error: `a' undeclared (first use in
this function)
mathematics.c:83: error: `b' undeclared (first use in
this function)
mathematics.c:83: error: `c' undeclared (first use in
this function)
make[1]: *** [mathematics.o] Error 1
make[1]: Leaving directory
`/h/linuxproj/mpegtest/ffmpeg/libavutil'
make: *** [lib] Error 2



--- Steve Lhomme <steve.lhomme at free.fr> wrote:

> Again, you are not supposed to make any changes to
> FFMPEG to make it 
> work on MinGW+MSys.
> 
> Just:
> ./configure
> make
> 
> And you're ready to use it. Whatever changes you
> have to make means 
> there is a problem on your system. I suggest you
> revert to a clean CVS 
> version and post here compilation error logs.
> 
> yj wrote:
> > I've compiled successfully, 
> > but can't use.
> > I copied the sample code from:
> >
>
http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html
> > 
> > and modified a little for matching the new ffmpeg
> > code.
> > compiled the console project with setting the
> right
> > path for ffmpeg libraries and include files.
> > but I noticed that the execute file crashed right
> > after it call the av_register_all().
> > 
> > what happened?
> > I've modified the project Run Time DLL to
> Multi-Thread
> > (Debug) DLL.
> > 
> > 
> > --- Steve Lhomme <steve.lhomme at free.fr> wrote:
> > 
> >> yj wrote:
> >>> Hi,
> >>> I've made some modification on FFMPEG,
> >>> and currently the error message is:
> >>>
> >>> In file included from
> >>> c:/mingw/........./include/windows.h:48,
> >>>                from w32thread.c:25:
> >>> include/windef.h:223: error: syntax error before
> >> ','
> >>> token
> >>> include/winnt.h:120: error: syntax error before
> >> "void"
> >>> Can anyone help me for the problem?
> >> FFMPEG compiles out of the box on MinGW. Make
> sure
> >> you use MSys with it. 
> >> These errors you're getting suggest that there's
> >> something wrong with 
> >> your MinGW installation.
> >>
> >> _______________________________________________
> >> ffmpeg-devel mailing list
> >> ffmpeg-devel at mplayerhq.hu
> >> http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
> >>
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > 
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at mplayerhq.hu
> > http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
> > 
> 
> -- 
> robUx4 on blog <http://robux4.blogspot.com/>
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 





More information about the ffmpeg-devel mailing list