Android bdk-build error:libxxx.so/.a use VFP register arguments, output does not解决办法
2017-02-24 11:24
507 查看
修改Application.mk文件如下:
APP_STL := gnustl_static
APP_OPTIM :=release
APP_CFLAGS := -O3
APP_CPPFLAGS := -frtti -fexceptions -mfloat-abi=hard -O3
APP_PLATFORM := android-9
APP_ABI := armeabi-v7a-hard
修改Android,mk文件中LOCAL_LDLIBS与LOCAL_CFLAGS两项如下:
LOCAL_LDLIBS += -O3 -mfpu=vfpv3-d16 -mhard-float -D_NDK_MATH_NO_SOFTFP=1 -mfloat-abi=hard -march=armv7-a -static -mcpu=cortex-a9
LOCAL_CFLAGS += -O3 -mfpu=vfpv3-d16 -mhard-float -D_NDK_MATH_NO_SOFTFP=1 -mfloat-abi=hard -march=armv7-a -static -mcpu=cortex-a9
(-mcpu为指定ARMcpu型号,依据具体ARM处理器而定)
APP_STL := gnustl_static
APP_OPTIM :=release
APP_CFLAGS := -O3
APP_CPPFLAGS := -frtti -fexceptions -mfloat-abi=hard -O3
APP_PLATFORM := android-9
APP_ABI := armeabi-v7a-hard
修改Android,mk文件中LOCAL_LDLIBS与LOCAL_CFLAGS两项如下:
LOCAL_LDLIBS += -O3 -mfpu=vfpv3-d16 -mhard-float -D_NDK_MATH_NO_SOFTFP=1 -mfloat-abi=hard -march=armv7-a -static -mcpu=cortex-a9
LOCAL_CFLAGS += -O3 -mfpu=vfpv3-d16 -mhard-float -D_NDK_MATH_NO_SOFTFP=1 -mfloat-abi=hard -march=armv7-a -static -mcpu=cortex-a9
(-mcpu为指定ARMcpu型号,依据具体ARM处理器而定)
相关文章推荐
- 备份一下手工书写Android JNI工程时mk的模板,以及uses VFP register arguments, output does not问题
- android里出现"resource directory /xxx/res does not exist"问题的解决办法
- ffmpeg交叉编译问题 xxx.elf uses VFP register arguments, yyy.o does not
- setMinDate出现java.lang.IllegalArgumentException: fromDate:xxx does not preced toDate: xxx异常的简单解决办法
- Android之xxx is not a concrete class解决办法
- Apache 安装过程中出错/usr/lib/libexpat.so: could not read symbols: File in wrong format的解决办法
- library libxxx.so not in prelink map错误到解决方法
- android的/system/lib/libhwui.so崩溃分析和解决办法
- android打包问题:xxx is not translated in zh解决办法
- Eclipse does not recognize added Android library projects 添加库项目失败的解决办法
- Android:Exported receiver does not require permission解决办法
- gitlib 上传时出现error: src refspec master does not match any解决办法
- Android xxx is not translated in zh解决办法
- Posts Tagged ‘This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register问题的解决办法
- Android中的ActivityManager: Error: Activity class {XXX} does not exist的问题解决
- Android打包提示xxx is not translated in yyy问题解决办法
- red hat 6.5 红帽企业Linux.6.5 yum This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 解决办法
- 【android工程转为lib工程后提示'R.id.xxx不能作为case语句的表达式'的解决办法】
- android jni eclipse中出现Type XXX could not be resolved解决办法
- 解决利用NDK开发android版本的opencv应用dlopen failed: could not load library libopencv_java.so