3

Android 용 사용자 정의 ROM을 빌드하려고합니다. 현재 빌드 환경을 설정하고 소스 코드를 다운로드했습니다. source build/envsetup.shlunch을 실행하는 동안Android OS 소스 코드 실패 MAKE for

내가 https://source.android.com/source/building#build-the-code

모든 것을 지침에 따라거야 작동하지만, 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

그것이 9. https://forums.developer.apple.com/thread/87814을 볼 엑스 코드에 의해 발생되는 것으로 보인다. 이 문제도 발생했습니다. xcode 8.3으로 전환 할 계획입니다. 나는 xcode 8.3과 sdk 10.11로 안드로이드 7.1.2를 컴파일했다.

+0

오늘 xcode 8.3.3을 확인했습니다. 안드로이드 7.1.2를 빌드해도 좋습니다. 너에게 행운을 빌어. –

+0

당신은 내 목숨을 구했습니다. 감사. – JohnWatsonDev