3

Android用のカスタムROMを作成しようとしています。 現在、ビルド環境をセットアップしてソースコードをダウンロードしました。私はhttps://source.android.com/source/building#build-the-codeAndroid OSソースコードの作成に失敗する

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) #### 
+0

解決方法を見つけましたか? – RisingUp

答えて

2

それはhttps://forums.developer.apple.com/thread/87814を見る9. Xcodeのが原因で発生しているようです。私もこの問題に遭遇しました。私はxcode 8.3に切り替える予定です。私はアンドロイド7.1.2をxcode 8.3とsdk 10.11でコンパイルしていましたが、それは問題ありませんでした。

+0

今日私はxcode 8.3.3を検証しました。アンドロイド7.1.2をビルドするのは大丈夫です。あなたに幸運を祈ります。 –

+0

あなたは私の人生を救った。ありがとう。 – JohnWatsonDev

関連する問題