gpt4 book ai didi

android - MAKE for Android 操作系统源代码失败

转载 作者:太空狗 更新时间:2023-10-29 13:07:10 26 4
gpt4 key购买 nike

我正在尝试为 Android 构建自定义 ROM。目前,我已经设置了构建环境并下载了源代码。

我正在按照 https://source.android.com/source/building#build-the-code 中的说明进行操作

在执行 source build/envsetup.shlunch 时一切正常,但在执行 make 时出现错误:

external/libcxx/include/cmath:679:9: note: using declaration
using ::acos;
^
external/libcxx/include/cmath:684:46: error: declaration conflicts with target of using declaration already in scope
inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return acosl(__lcpp_x);}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:708:46: note: target of using declaration
inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);}
^
external/libcxx/include/cmath:679:9: note: using declaration
using ::acos;
^
external/libcxx/include/cmath:690:1: error: declaration conflicts with target of using declaration already in scope
acos(_A1 __lcpp_x) _NOEXCEPT {return acos((double)__lcpp_x);}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:714:1: note: target of using declaration
acos(_A1 __lcpp_x) _NOEXCEPT {return ::acos((double)__lcpp_x);}

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[ 0% 163/43987] host C++: libprotobuf-cpp-full_32 <= external/protobuf/src/google/protobuf/descriptor.cc
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (27 seconds) ####

最佳答案

看来是xcode 9引起的,见https://forums.developer.apple.com/thread/87814 .我也遇到了这个问题。我打算切换到 xcode 8.3。我用 xcode 8.3 和 sdk 10.11 编译了 android 7.1.2,没问题,没问题。

关于android - MAKE for Android 操作系统源代码失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46396933/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com