NDK构建错误:“严重错误:stdint.h:无此类文件或目录"在Mac Os X上 [英] NDK build error: "fatal error: stdint.h: No such file or directory" on Mac Os X

查看:105
本文介绍了NDK构建错误:“严重错误:stdint.h:无此类文件或目录"在Mac Os X上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下构建命令来构建 OpenH264 项目.

I use the following build command to build OpenH264 project.

make OS=android ARCH=arm64 NDKROOT=~/Library/Android/android-ndk-r10d/ TARGET=android-12

但是我遇到了以下错误:

But i got the following error:

/Users/jerikc/Library/Android/android-ndk-r10d/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9/include-fixed/limits.h:168:61: error: no include path in which to search for limits.h
 #include_next <limits.h>  /* recurse down to the real one */
                                                             ^
In file included from ./codec/common/inc/typedefs.h:48:0,
                 from ./codec/common/inc/wels_common_defs.h:37,
                 from codec/common/src/common_tables.cpp:33:
/Users/jerikc/Library/Android/android-ndk-r10d/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
 # include_next <stdint.h>
                          ^
compilation terminated.

推荐答案

您请求的目标平台12不支持 arm64 .此体系结构的最低 TARGET android-21 .

You request target platform 12, which does not support arm64. The lowest TARGET for this architecture is android-21.

脚本中可能存在一些故障,我们必须在build命令中将平台设置两次:

There is probably some glitch in the script, and we must set the platform twice in the build command:

make OS=android ARCH=arm64 TARGET=android-21 NDKLEVEL=21

确保正确设置 NDKROOT PATH .

这篇关于NDK构建错误:“严重错误:stdint.h:无此类文件或目录"在Mac Os X上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆