参考http://blog.csdn.net/jwzhangjie/article/details/8721612
在tools下
source ../configure $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS" --extra-cxxflags="$EXTRA_CXXFLAGS" | tee $DEST/configuration.txt
会导致configure认为当前目录是tools下。。。
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpeg-1.2/tools#
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpeg-1.2/tools#
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpeg-1.2/tools#
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpeg-1.2/tools# source jwzhangjie.shFetching Android system headers
fatal: destination path '../android-source/frameworks/base' already exists and is not an empty directory.
fatal: destination path '../android-source/frameworks/av' already exists and is not an empty directory.
fatal: destination path '../android-source/frameworks/native' already exists and is not an empty directory.
fatal: destination path '../android-source/hardware/libhardware' already exists and is not an empty directory.
fatal: destination path '../android-source/system/core' already exists and is not an empty directory.
Fetching Android libraries for linking
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/allcodecs.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/allcodecs.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/allcodecs.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/allcodecs.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/allcodecs.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavformat/allformats.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavformat/allformats.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavdevice/alldevices.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavdevice/alldevices.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavformat/allformats.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavfilter/allfilters.c: No such file or directory
install prefix ../build/stagefright/armeabi-v7a source path /home/zhangbin/ffmpeg/ffmpeg-1.2/tools
C compiler /home/zhangbin/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
ARCH arm (armv7-a)
big-endian no
runtime cpu detection yes
ARMv5TE enabled yes
ARMv6 enabled yes
ARMv6T2 enabled yes
VFP enabled yes
NEON enabled yes
THUMB enabled no
debug symbols yes
strip symbols yes
optimize for size no
optimizations yes
static yes
shared no
postprocessing support no
new filter support yes
network support no
threading support pthreads
safe bitstream reader yes
SDL support no
texi2html enabled no
perl enabled yes
pod2man enabled yes
makeinfo enabled no
External libraries:
libstagefright_h264
Enabled decoders:
Enabled encoders:
Enabled hwaccels:
Enabled parsers:
Enabled demuxers:
Enabled muxers:
Enabled protocols:
Enabled filters:
Enabled bsfs:
Enabled indevs:
Enabled outdevs:
License: LGPL version 2.1 or later
Creating config.mak and config.h...
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavdevice/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavfilter/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavformat/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavresample/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavutil/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libpostproc/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libswresample/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libswscale/version.h' for reading (No such file or directory)
WARNING: Option --disable-decoder=h264 did not match anything
WARNING: Option --disable-decoder=h264_vdpau did not match anything
WARNING: arm-linux-androideabi-pkg-config not found, library detection may fail.
make: Makefile: Too many levels of symbolic links
make: stat: Makefile: Too many levels of symbolic links
make: *** No rule to make target `Makefile'. Stop.
make: Makefile: Too many levels of symbolic links
make: stat: Makefile: Too many levels of symbolic links
make: *** No rule to make target `Makefile'. Stop.
/home/zhangbin/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-ar: creating libavcodec/libavcodec.a
/home/zhangbin/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-ld: error: cannot open libavformat/libavformat.a: No such file or directory
/home/zhangbin/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-ld: error: cannot open libavutil/libavutil.a: No such file or directory
/home/zhangbin/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-ld: error: cannot open /opt/android-ndk-r8d/sources/cxx-stl/stlport/libs/armeabi-v7a/libstlport_static.a: No such file or directory
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpeg-1.2/tools#