关于编译x264时出现的for Cortex-A8 erratum because it has no mapping symbols问题
2016-12-27 17:55
387 查看
linux下编译x264库时提示警告信息:cannot scan executable section 1 of libx264.a(dct-a.o) for Cortex-A8 erratum because it has no mapping symbols
要去掉该警告信息,将Makefile中含有 (STRIP) -x 的地方语句
-@ $(if $(STRIP), $(STRIP) -x $@) #delete local/anonymous symbols, so they don't show up in oprofile, except the mapping symbols
替换为
-@ $(if $(STRIP), $(STRIP) -x -K \$$a -K \$$t -K \$$d $@) #delete local/anonymous symbols,
so they don't show up in oprofile, except the mapping symbols
即可。
注:红色部分是增加的内容,Makefile中总共有2处需要修改。
附上NDK编译脚本:
#!/bin/bash
export NDK=/opt/android-ndk-r10e
export PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.9/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=./build_android
export STRIP=$PREBUILT/bin/arm-linux-androideabi-strip
./configure --prefix=$PREFIX \
--enable-static \
--enable-pic \
--enable-strip \
--disable-cli \
--extra-cflags="-fPIC -DANDROID -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=neon -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__ -Wno-psabi -msoft-float -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wa,--noexecstack -MMD -MP " \
--extra-ldflags="-fuse-ld=bfd -Wl,--fix-cortex-a8" \
--host=arm-linux \
--cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
--sysroot=$PLATFORM
要去掉该警告信息,将Makefile中含有 (STRIP) -x 的地方语句
-@ $(if $(STRIP), $(STRIP) -x $@) #delete local/anonymous symbols, so they don't show up in oprofile, except the mapping symbols
替换为
-@ $(if $(STRIP), $(STRIP) -x -K \$$a -K \$$t -K \$$d $@) #delete local/anonymous symbols,
so they don't show up in oprofile, except the mapping symbols
即可。
注:红色部分是增加的内容,Makefile中总共有2处需要修改。
附上NDK编译脚本:
#!/bin/bash
export NDK=/opt/android-ndk-r10e
export PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.9/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=./build_android
export STRIP=$PREBUILT/bin/arm-linux-androideabi-strip
./configure --prefix=$PREFIX \
--enable-static \
--enable-pic \
--enable-strip \
--disable-cli \
--extra-cflags="-fPIC -DANDROID -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=neon -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__ -Wno-psabi -msoft-float -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wa,--noexecstack -MMD -MP " \
--extra-ldflags="-fuse-ld=bfd -Wl,--fix-cortex-a8" \
--host=arm-linux \
--cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
--sysroot=$PLATFORM
相关文章推荐
- 关于编译x264时出现的for Cortex-A8 erratum because it has no mapping symbols问题
- 使用或者编译 x264.a 提示 Cortex-A8 erratum because it has no mapping symbols. 的解决方案
- 关于vc6++编译DDK驱动出现的问题fatal error C1083: Cannot open include file: 'specstrings.h': No such file or dir
- Unity5.4.1与NGUI出现的问题Ignoring menu item NGUI because it is in no submenu!
- Unity5.4.1与NGUI出现的问题Ignoring menu item NGUI because it is in no submenu!
- 关于python里运行出现'module' object has no attribute 'xxxx'等问题解决方法
- Unable to update the EntitySet 'T_JsAPI' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.
- Unity5.4.1与NGUI出现的问题Ignoring menu item NGUI because it is in no submenu!
- eclipse中tomcat 编写web 出现 servlet-api.jar has no source attachment 问题
- 关于编译内核时候出现__gnu_mcount_nc的问题以及解决办法
- 关于No Dialect mapping for JDBC type :-9 hibernate执行原生sql语句问题
- 谈谈关于程序员或者IT人员的健康问题,因为自己出现了
- 关于linux内核 linux-2.6.34 编译报 unable to find suitable fs in /proc/mount,is it mounted? 问题说明
- 谈谈关于程序员或者IT人员的健康问题,因为自己出现了
- (转载)symbian编译问题MR编译通过,FP2编译失败出现问题 APP' has initialised data
- 谈谈关于程序员或者IT人员的健康问题,因为自己出现了
- 谈谈关于程序员或者IT人员的健康问题,因为自己出现了
- The service cannot be started, either because it is disabled or because it has no enabled deices ass
- Erlang 编译时出现"no such file or directory" 与 当前工作目录问题
- command line warning #10006: ignoring unknown option '/NODEFAULTLIB'错误解决(XPDF编译时出现的问题)