只需要编译h264解码器,编码器也不要。一般的编译会编译各种编解码器,这样编译后的so文件就会有6.0MB左右。
解决方案 »
- 高分求教widget动画??
- 请教下android手机测试的问题
- ListView中放EditText后滑动的问题
- 如何把android里的几个img dump出来
- android:layout_marginBottom相对应的代码
- eclipse打开时出现“Failed to load the jni shared library……”怎么解决?
- 如何实现这样的动画效果
- Eclipse An error has occurred. See error log for more details.
- android开发的界面UI布局问题
- android 插件开发框架征集贴
- Android 混淆如何在debug模式下也能混淆?
- android_touchkey_input输入子系统的问题
./configure \
--disable-everything \
--enable-decoder=h264_decoder \ --cross-prefix=/root/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- \
--enable-cross-compile \
--target-os=linux \
--extra-cflags='-I/root/android-ndk-r6/platforms/android-9/arch-arm/usr/include' \
--extra-ldflags='-L/root/android-ndk-r6/platforms/android-9/arch-arm/usr/lib -nostdlib' \
--arch=arm \ sed -i 's/HAVE_LRINT 0/HAVE_LRINT 1/g' config.h
sed -i 's/HAVE_LRINTF 0/HAVE_LRINTF 1/g' config.h
sed -i 's/HAVE_ROUND 0/HAVE_ROUND 1/g' config.h
sed -i 's/HAVE_ROUNDF 0/HAVE_ROUNDF 1/g' config.h
sed -i 's/HAVE_TRUNC 0/HAVE_TRUNC 1/g' config.h sed -i 's/HAVE_TRUNCF 0/HAVE_TRUNCF 1/g' config.h
--enable-decoder=h264_decoder \
这两个是关键。