ffmpeg2.5编译方法

<pre name="code" class="plain">export NDK_ROOT=D:/ndk/android-ndk-r9
export PREBUILT=$NDK_ROOT/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin
export PLATFORM=$NDK_ROOT/platforms/android-9/arch-arm


export TMPDIR=d:/cygwin/tmp
./configure \
--target-os=linux \
--arch=arm \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-avdevice \
--disable-avfilter \
--disable-postproc \
--disable-swresample \
--disable-avresample \
--disable-symver \
--disable-debug \
--disable-stripping \
--disable-yasm \
--disable-asm \
--disable-gpl \
--disable-version3 \
--disable-nonfree \
--disable-doc \
--enable-static \
--disable-shared \
--enable-cross-compile \
--prefix=/home \
--sysroot=$PLATFORM \
--cc=$PREBUILT/arm-linux-androideabi-gcc \
--cross-prefix=$PREBUILT/arm-linux-androideabi- \
--nm=$PREBUILT/arm-linux-androideabi-nm \
--extra-cflags="-I${PLATFORM}/usr/include -fPIC -DANDROID -std=c99" \
--extra-ldflags="-L${PLATFORM}/usr/lib -nostdlib"

需要对config.h文件做一些改到,不然有编译时出错
 
#define CC_IDENT "gcc 4.6 (GCC)"一定是要在同一行
/*#define getenv(x) NULL*/这要注释掉
<pre name="code" class="plain">下面的都把0改为1
 
#define HAVE_LOCALTIME_R 1
#define HAVE_GMTIME_R 1
#define HAVE_ISINF 1
#define HAVE_ISNAN 1
#define HAVE_TRUNC 1
#define HAVE_RINT 1
#define HAVE_ROUND 1
#define HAVE_LRINT 1
#define HAVE_LRINTF 1
#define HAVE_CBRT 1
如果想知道错误是什么,自己改回来看一下就OK
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This is a FFmpeg Win64 shared build by Kyle Schwarz. Zeranoe's FFmpeg Builds Home Page: This build was compiled on: Dec 30 2014, at: 17:29:04 FFmpeg version: 2.5.2 libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat 56. 15.102 / 56. 15.102 libavdevice 56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 This FFmpeg build was configured with: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib This build was compiled with the following external libraries: bzip2 1.0.6 Fontconfig 2.11.91 Frei0r 20130909-git-10d8360 GnuTLS 3.2.20 libiconv 1.14 libass 0.12.0 libbluray 0.6.2 libbs2b 3.1.0 libcaca 0.99.beta18 FreeType 2.5.4 Game Music Emu 0.6.0 GSM 1.0.13-4 iLBC 20141214-git-ef04ebe Modplug-XMMS 0.8.8.5 LAME 3.99.5 OpenCORE AMR 0.1.3 OpenJPEG 1.5.2 Opus 1.1 RTMPDump 20140707-git-a1900c3 Schroedinger 1.0.11 libsoxr 0.1.1 Speex 1.2rc2 Theora 1.1.1 TwoLAME 0.3.13 vid.stab 0.98 VisualOn AAC 0.1.3 VisualOn AMR-WB 0.1.2 Vorbis 1.3.4 vpx 1.3.0 WavPack 4.70.0 WebP 0.4.2 x264 20141220-git-40bb568 x265 1.4 XAVS svn-r55 Xvid 1.3.3 XZ Utils 5.2.0 zlib 1.2.8 The source code for this FFmpeg build can be found at: This build was compiled on Debian 8.0 (64-bit): GCC 4.9.2 was used to compile this FFmpeg build: This build was compiled using the MinGW-w64 toolchain: Licenses for each library can be found in the 'licenses' folder.
This is a FFmpeg Win64 shared build by Kyle Schwarz. Zeranoe's FFmpeg Builds Home Page: This build was compiled on: Dec 30 2014, at: 17:29:04 FFmpeg version: 2.5.2 libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat 56. 15.102 / 56. 15.102 libavdevice 56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 This FFmpeg build was configured with: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib This build was compiled with the following external libraries: bzip2 1.0.6 Fontconfig 2.11.91 Frei0r 20130909-git-10d8360 GnuTLS 3.2.20 libiconv 1.14 libass 0.12.0 libbluray 0.6.2 libbs2b 3.1.0 libcaca 0.99.beta18 <http://caca.zoy.org
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值