3
我使用以下生成命令來構建OpenH264項目。NDK編譯錯誤:「致命錯誤:stdint.h:沒有這樣的文件或目錄」Mac OS X
make OS=android ARCH=arm64 NDKROOT=~/Library/Android/android-ndk-r10d/ TARGET=android-12
但我得到了以下錯誤:
/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.
錯誤依然存在'make OS = android NDKROOT =〜/ Library/Android/android-ndk-r10d/ARCH = arm64 TARGET = android-21' –
由於某些原因,我們必須設置平臺兩次。答案已更新。 –
舊錯誤未發生,但遇到新錯誤:'codec/common/src/cpu-features.o:錯誤添加符號:文件格式錯誤collect2:錯誤:ld返回1退出狀態' –