使用或者编译 x264.a 提示 Cortex-A8 erratum because it has no mapping symbols. 的解决方案


参考了这边两个文章


http://stackoverflow.com/questions/15247569/warning-cannot-scan-executable-section-for-cortex-a8-erratum-because-it-has-no


http://stackoverflow.com/questions/15247569/warning-cannot-scan-executable-section-for-cortex-a8-erratum-because-it-has-no


我的解决方法是把x264目录下的makefile 里面所有包含 (strip) -x的段删掉(140版的只有2段)


在sh里面添加自己的STRIP 并开启 --enalbe-strip

build_x264.sh

export NDK=/home/mtb0157/workspace/android-ndk-r9
export PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64
export CC=$PREBUILT/bin/arm-linux-androideabi-gcc
export LD=$PREBUILT/bin/arm-linux-androideabi-ld
export AS=$PREBUILT/bin/arm-linux-androideabi-gcc
export AR=$PREBUILT/bin/arm-linux-androideabi-ar
export RANLIB=$PREBUILT/bin/arm-linux-androideabi-ranlib
export STRIP=$PREBUILT/bin/arm-linux-androideabi-strip
export PLATFORM=$NDK/platforms/android-8/arch-arm 
export PREFIX=/home/mtb0157/Project/lib
export STRIP=$PREBUILT/bin/arm-linux-androideabi-strip
./configure --prefix=$PREFIX \
--enable-static \
--enable-pic \
--enable-strip \
--disable-cli \
--extra-cflags= "-march=armv7-a  -mfloat-abi=softfp -mfpu=neon" \
--host=arm-linux \
--cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
--sysroot=$PLATFORM

关键:

export STRIP=$PREBUILT/bin/arm-linux-androideabi-strip


你可能感兴趣的:(使用或者编译 x264.a 提示 Cortex-A8 erratum because it has no mapping symbols. 的解决方案)