1. 修改ffmpeg的library.mak
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS) $(SUBDIR)lib$(NAME).ver
$(SLIB_CREATE_DEF_CMD)
-$$(LD) $(SHFLAGS) $(LDFLAGS) $$(LD_O) $$(filter %.o,$$^) $(FFEXTRALIBS)
+$$(LD) $(subst $$(@F),$(SLIBNAME),$(SHFLAGS)) $(LDFLAGS) $$(LD_O) $$(filter %.o,$$^) $(FFEXTRALIBS)
$(SLIB_EXTRA_CMD)
2. 执行auto_config_for_android.sh
ARM_SYSROOT=/home/simon.chen/Workspace/android/android-ndk-r9d/platforms/android-17/arch-arm
ARM_TOOLCHAIN_PATH=/home/simon.chen/Workspace/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-
FFMPEG_SRC_DIR=/home/simon.chen/Workspace/mediaplayer/ffmpeg/ffmpeg-2.2.9
FFMPEG_BUILD_DIR=/home/simon.chen/Workspace/mediaplayer/ffmpeg/ffmpeg-2.2.9/build
./configure --target-os=linux \
--arch=arm \
--enable-cross-compile \
--enable-runtime-cpudetect \
--disable-everything --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-ffserver \
--disable-avdevice --disable-avfilter --disable-swresample --disable-network \
--enable-muxer=mpegts --enable-demuxer=mpegts \
--enable-muxer=mjpeg --enable-demuxer=mjpeg \
--enable-decoder=mjpeg --enable-encoder=mjpeg --enable-decoder=mpeg4 --enable-encoder=mpeg4 --enable-decoder=h264 \
--enable-decoder=h263p --enable-encoder=h263p --enable-decoder=h263 --enable-encoder=h263 \
--disable-static --enable-shared \
--sysroot=$ARM_SYSROOT --cross-prefix=$ARM_TOOLCHAIN_PATH --enable-pic
阅读(2832) | 评论(0) | 转发(0) |