[FFmpeg-trac] #3368(build system:new): FATE tests don't build when SDL is installed.

FFmpeg trac at avcodec.org
Tue Mar 4 22:10:21 CET 2014


#3368: FATE tests don't build when SDL is installed.
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  GregoryJWolfe                      |                   Status:  new
                 Type:  defect       |                Component:  build
             Priority:  normal       |  system
              Version:  git-master   |               Resolution:
             Keywords:  fate sdl     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by Timothy_Gu):

 * cc: timothygu99@… (added)
 * keywords:   => fate sdl


Old description:

> Have the latest git on a Win7/32-bit system with MinGW-32/msys
> environment.  Downloaded, built, and installed SDL.  After successfully
> building ffmpeg, attempted to "make fate" and got the following error:
>

> make fate SAMPLES=fate-suite/
> CC      libavcodec/fft-test.o
> <command-line>:0:6: error: no previous prototype for 'SDL_main' [-Werror
> =missing-prototypes]
> c:/Data/ffmpeg/libavcodec/fft-test.c:243:5: note: in expansion of macro
> 'main'
>  int main(int argc, char **argv)
>      ^
> cc1.exe: some warnings being treated as errors
> make: *** [libavcodec/fft-test.o] Error 1
>

> A little research showed this to be the same problem as described in
> ticket #256.  Applied same change and the problem was resolved.  However,
> the same problem exists in a number of source files.  Here is the list of
> files to which I applied the change to get the FATE regression tests to
> build and run:
>
> libavcodec/dct-test.c
> libavcodec/fft-test.c
> libavcodec/golomb-test.c
> libavcodec/iirfilter.c
> libavcodec/rangecoder.c
> libavdevice/timefilter.c
> libavfilter/drawutils.c
> libavfilter/filtfmts.c
> libavfilter/formats.c
> libavformat/noproxy-test.c
> libavformat/seek-test.c
> libavformat/srtp.c
> libavformat/url-test.c
> libavutil/adler32.c
> libavutil/aes.c
> libavutil/atomic.c
> libavutil/avstring.c
> libavutil/base64.c
> libavutil/blowfish.c
> libavutil/bprint.c
> libavutil/cpu.c
> libavutil/crc.c
> libavutil/des.c
> libavutil/error.c
> libavutil/eval.c
> libavutil/fifo.c
> libavutil/hmac.c
> libavutil/integer.c
> libavutil/lfg.c
> libavutil/lls1.c
> libavutil/lls2.c
> libavutil/lzo.c
> libavutil/md5.c
> libavutil/murmur3.c
> libavutil/opt.c
> libavutil/parseutils.c
> libavutil/pca.c
> libavutil/random_seed.c
> libavutil/rational.c
> libavutil/ripemd.c
> libavutil/sha.c
> libavutil/sha512.c
> libavutil/softfloat.c
> libavutil/tree.c
> libavutil/utf8.c
> libavutil/xtea.c
>
> Maybe it would be easier to fix this in the Makefile?
>
> Greg W.

New description:

 Have the latest git on a Win7/32-bit system with MinGW-32/msys
 environment.  Downloaded, built, and installed SDL.  After successfully
 building ffmpeg, attempted to "make fate" and got the following error:

 {{{
 make fate SAMPLES=fate-suite/
 CC      libavcodec/fft-test.o
 <command-line>:0:6: error: no previous prototype for 'SDL_main' [-Werror
 =missing-prototypes]
 c:/Data/ffmpeg/libavcodec/fft-test.c:243:5: note: in expansion of macro
 'main'
  int main(int argc, char **argv)
      ^
 cc1.exe: some warnings being treated as errors
 make: *** [libavcodec/fft-test.o] Error 1
 }}}


 A little research showed this to be the same problem as described in
 ticket #256.  Applied same change and the problem was resolved.  However,
 the same problem exists in a number of source files.  Here is the list of
 files to which I applied the change to get the FATE regression tests to
 build and run:

 libavcodec/dct-test.c
 libavcodec/fft-test.c
 libavcodec/golomb-test.c
 libavcodec/iirfilter.c
 libavcodec/rangecoder.c
 libavdevice/timefilter.c
 libavfilter/drawutils.c
 libavfilter/filtfmts.c
 libavfilter/formats.c
 libavformat/noproxy-test.c
 libavformat/seek-test.c
 libavformat/srtp.c
 libavformat/url-test.c
 libavutil/adler32.c
 libavutil/aes.c
 libavutil/atomic.c
 libavutil/avstring.c
 libavutil/base64.c
 libavutil/blowfish.c
 libavutil/bprint.c
 libavutil/cpu.c
 libavutil/crc.c
 libavutil/des.c
 libavutil/error.c
 libavutil/eval.c
 libavutil/fifo.c
 libavutil/hmac.c
 libavutil/integer.c
 libavutil/lfg.c
 libavutil/lls1.c
 libavutil/lls2.c
 libavutil/lzo.c
 libavutil/md5.c
 libavutil/murmur3.c
 libavutil/opt.c
 libavutil/parseutils.c
 libavutil/pca.c
 libavutil/random_seed.c
 libavutil/rational.c
 libavutil/ripemd.c
 libavutil/sha.c
 libavutil/sha512.c
 libavutil/softfloat.c
 libavutil/tree.c
 libavutil/utf8.c
 libavutil/xtea.c

 Maybe it would be easier to fix this in the Makefile?

 Greg W.

--

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3368#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list