Mac编译android 5.0源码报错

我使用mac编译android源码,踩了无数的坑,但最后有的是在网上找到解决方法了,有的靠自己试出来了,但是今天这个问题我实在是找不到解决方法,求各位大神帮忙解答:
错误信息如下:
host C++: validatekeymaps <= frameworks/base/tools/validatekeymaps/Main.cpp
host C++: libinput_32 <= frameworks/native/libs/input/Input.cpp
host C++: libinput_32 <= frameworks/native/libs/input/InputDevice.cpp
host C++: libinput_32 <= frameworks/native/libs/input/Keyboard.cpp
:0: error: Unknown value ‘10.12’ of -mmacosx-version-min
:0: error: Unknown value ‘10.12’ of -mmacosx-version-min
:0: error: Unknown value ‘10.12’ of -mmacosx-version-min
:0: error: Unknown value ‘10.12’ of -mmacosx-version-min
In file included from system/core/include/cutils/log.h:1,
from system/core/include/utils/KeyedVector.h:24,
from frameworks/native/include/input/Input.h:26,
from frameworks/native/include/input/KeyCharacterMap.h:26,
from frameworks/base/tools/validatekeymaps/Main.cpp:17:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
In file included from system/core/include/cutils/log.h:1,
from system/core/include/utils/KeyedVector.h:24,
from frameworks/native/include/input/Input.h:26,
from frameworks/native/libs/input/Input.cpp:23:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
In file included from system/core/include/cutils/log.h:1,
from system/core/include/utils/KeyedVector.h:24,
from frameworks/native/include/input/Input.h:26,
from frameworks/native/include/input/InputDevice.h:20,
from frameworks/native/libs/input/InputDevice.cpp:23:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
In file included from system/core/include/cutils/log.h:1,
from system/core/include/utils/KeyedVector.h:24,
from frameworks/native/include/input/Input.h:26,
from frameworks/native/include/input/Keyboard.h:20,
from frameworks/native/libs/input/Keyboard.cpp:23:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
make: *** [out/host/darwin-x86/obj32/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Input.o] Error 1
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/InputDevice.o] Error 1
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Keyboard.o] Error 1

make failed to build some targets (01:01 (mm:ss))

2个回答

你的mac操作系统版本是否升级为10.12最新了。

qq_28899635
Preacher_Qiao 是的,我的版本是最新的
3 年多之前 回复

看代码提示的错误是资源编译错了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐