编译 FFMPEG静态库

来源:互联网 发布:mac vmware 装win7 编辑:程序博客网 时间:2024/05/16 11:06
(make distclean      ./connfigure --arg     make     make install )


cd /C/ffmpeg


Then you have to configure FFmpeg, choosing what you want to install, how, and where.
If you want extra libraries (such as mp3lame, or xvid), checkout the Using External Libraries page after you're done with this step and the next one.
If you don't know what you want, just enter:

./configure --enable-memalign-hack

The --enable-memalign-hack option is necessary for FFmpeg to compile on Windows.
After a while, when it finishes configuring, it will go back to the prompt (the $ line, where you enter commands). You should see the following list:

If there are no errors, you're all set to make FFmpeg. Enter this in the prompt:
make

The program is already compiled. You can find the ffmpeg.exe executable on FFmpeg's folder.
After that, all you have to do is install the program, with the command:
炽
make install

按照以上步骤,编译,在MAKE时遇到以下错误:

“make: *** No rule to make target `libavdevice/libavdevice.a', needed by `all'.  Stop”


Fri Apr 11 23:55:06 CEST 2008
I downloaded from SVN the latest version 128xx something. Someone told me the 
older version works correctly. How can I get the older version?



Newsgroups: gmane.comp.video.ffmpeg.user
Date: 2008-04-11 14:45:43 GMT
(2 weeks, 1 day, 18 hours and 30 minutes ago)

(http://arrozcru.no-ip.org/ffmpeg_forum/viewtopic.php?p=2446&sid=987be785d208e369d6c9586f7dff59ab)
sgood, get a
make-3.81-MSYS-1.0.11-2 and enjoy ... http://sourceforge.net/project/showfiles.php?group_id=2435










$ make install
install -d "/usr/local/lib"
install -m 644 libavdevice/libavdevice.a "/usr/local/lib"
ranlib "/usr/local/lib/libavdevice.a"
install -d "/usr/local/lib"
install -m 644 libavformat/libavformat.a "/usr/local/lib"
ranlib "/usr/local/lib/libavformat.a"
install -d "/usr/local/lib"
install -m 644 libavcodec/libavcodec.a "/usr/local/lib"
ranlib "/usr/local/lib/libavcodec.a"
install -d "/usr/local/lib"
install -m 644 libavutil/libavutil.a "/usr/local/lib"
ranlib "/usr/local/lib/libavutil.a"
install -d "/usr/local/include/libavdevice"
install -d "/usr/local/lib/pkgconfig"
install -m 644 "/d/ffmpeg/libavdevice"/avdevice.h "/usr/local/include/libavdevic e"
install -m 644 "/d/ffmpeg"/libavdevice.pc "/usr/local/lib/pkgconfig"
install -d "/usr/local/include/libavformat"
install -d "/usr/local/lib/pkgconfig"
install -m 644 "/d/ffmpeg/libavformat"/avformat.h "/d/ffmpeg/libavformat"/avio.h "/d/ffmpeg/libavformat"/rtsp.h "/d/ffmpeg/libavformat"/rtspcodes.h "/usr/local/ include/libavformat"
install -m 644 "/d/ffmpeg"/libavformat.pc "/usr/local/lib/pkgconfig"
install -d "/usr/local/include/libavcodec"
install -d "/usr/local/lib/pkgconfig"
install -m 644 "/d/ffmpeg/libavcodec"/avcodec.h "/d/ffmpeg/libavcodec"/opt.h "/u sr/local/include/libavcodec"
install -m 644 "/d/ffmpeg"/libavcodec.pc "/usr/local/lib/pkgconfig"
install -d "/usr/local/include/libavutil"
install -d "/usr/local/lib/pkgconfig"
install -m 644 "/d/ffmpeg/libavutil"/adler32.h "/d/ffmpeg/libavutil"/avstring.h "/d/ffmpeg/libavutil"/avutil.h "/d/ffmpeg/libavutil"/base64.h "/d/ffmpeg/libavut il"/common.h "/d/ffmpeg/libavutil"/crc.h "/d/ffmpeg/libavutil"/fifo.h "/d/ffmpeg /libavutil"/intfloat_readwrite.h "/d/ffmpeg/libavutil"/log.h "/d/ffmpeg/libavuti l"/lzo.h "/d/ffmpeg/libavutil"/mathematics.h "/d/ffmpeg/libavutil"/md5.h "/d/ffm peg/libavutil"/mem.h "/d/ffmpeg/libavutil"/random.h "/d/ffmpeg/libavutil"/ration al.h "/d/ffmpeg/libavutil"/sha1.h "/usr/local/include/libavutil"
install -m 644 "/d/ffmpeg"/libavutil.pc "/usr/local/lib/pkgconfig"
install -d "/usr/local/bin"
install -c -m 755 ffmpeg.exe "/usr/local/bin"