天天看點

編譯FFPLAYER

Building FFplay

To build FFplay, you must have SDL-devel installed.

Go to

http://www.libsdl.org/download-1.2.php, and near the end, at

Development Libraries, get the latest under

Win32,

for MinGW32, not Visual C++.

http://www.libsdl.org/release/SDL-devel-1.2.13-mingw32.tar.gz

Unpack the file.

With Windows Explorer, go to the folder you just unpacked.

Copy all the files from the

lib folder to

C:/msys/mingw/lib/.

Copy the

SDL folder from the

include folder to

C:/msys/mingw/include/.

bin folder to

C:/msys/mingw/bin/.

Edit

c:/msys/mingw/bin/sdl-config with an editor that understands

Unix line endings (like

wordpad.exe).

Change the line that says:

prefix=/Users/hercules/tmp/SDL-1.2.13

to

prefix=/mingw

The

SDL.dll file must be in the

PATH for

ffplay.exe to run correctly.

bin folder it was copied to, is in the PATH for MSys.

But if you want to run

ffplay.exe from outside of MSys, you'll have to copy

SDL.dll.

Now, whenever you run

./configure for FFmpeg, it should find SDL and build FFplay correctly. Build again just like

Building FFmpeg SVN statically or

Building FFmpeg SVN dlls.

$ ./configure --enable-shared --disable-static --enable-memalign-hack

install prefix            /usr/local

source path               /d/ffmpeg

C compiler                gcc

.align is power-of-two    no

ARCH                      x86_32 (generic)

big-endian                no

MMX enabled               yes

CMOV enabled              no

CMOV is fast              no

EBX available             yes

EBP available             no

gprof enabled             no

debug symbols             yes

strip symbols             yes

optimizations             yes

static                    no

shared                    yes

postprocessing support    no

software scaler enabled   no

new filter support        no

filters using lavformat   no

video hooking             no

network support           yes

IPv6 support              no

threading support         no

SDL support               yes

Sun medialib support      no

AVISynth enabled          no

liba52 support            no

liba52 dlopened           no

libamr-nb support         no

libamr-wb support         no

libdc1394 support         no

libfaac enabled           no

libfaad enabled           no

libfaad dlopened          no

libgsm enabled            no

libmp3lame enabled        no

libnut enabled            no

libtheora enabled         no

libvorbis enabled         no

x264 enabled              no

XviD enabled              no

zlib enabled              no