2017-01-02 70 views
2

我想安裝構建Android和模擬器上運行它的環境建設AOSP時。我最近進入了AOSP,目前正在閱讀一些關於它的書。與它周圍想惹我我得到了以下錯誤:錯誤使用-make

external/libcxx/include/cmath:1345:9: error: no member named 'llrint' in the global namespace; did you mean 'lrint'? 
external/libcxx/include/cmath:1348:91: error: use of undeclared identifier 'llrintf' 
external/libcxx/include/cmath:1349:91: error: use of undeclared identifier 'llrintl' 
external/libcxx/include/cmath:1358:9: error: no member named 'llround' in the global namespace; did you mean 'lround'? 

12 errors generated. 
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/src/hash.o] Error 1 
make: *** Waiting for unfinished jobs.... 
12 errors generated. 
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/src/debug.o] Error 1 
12 errors generated. 
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/src/random.o] Error 1 
12 errors generated. 
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/src/algorithm.o] Error 1 

在這些錯誤的總共12個,與文字之間,但我沒有複製所有這些,因爲他們是完全一樣的。 (全部爲:error沒有名爲「{double L} [SOMETHING]」的成員);你的意思是:{single L} [SOMETHING])

這是運行結果:1:source build/envsetup。 SH 2:午餐3:須藤使-j4

我使用埃爾卡皮坦跟從the official instructions。我遇到的唯一問題是XCode沒有在其中創建一個帶有正確SDK的/ developer/SDKs文件夾,所以我從Github手動下載SDK並將其放入SDK SDK文件夾(我製作的)中。這可能是問題嗎?

,我試圖建立的代碼是未經修改的Android 6.0.1_r1。我試着再次運行repo-init和repo sync(以修復代碼),但沒有任何效果。

我意識到這是一個相當誇張地問,但我不知道如何解決這個問題。提前致謝。

回答

0

,你可以嘗試使用MacOSX10.11.sdk爲您的MacOSX的-SDK

你可以從GitHub下載MacOSX10.11.sdk:https://github.com/phracker/MacOSX-SDKs

的MacOSX10.11.sdk複製到一個特定的路徑(如〜/ lib)並創建軟鏈接到/Applications/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs

$ ln -s〜/ lib/MacOSX10.11.sdk /Applications/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

(I也複製到MacOSX10.11.sdk /開發人員/的SDK /)

並修改該文件INT Android源代碼:建立/型芯/組合/ mac_version.mk

mac_sdk_versions_supported:= 10.9 10.10 10.11

完成! 嘗試再次編譯源代碼!


OS:MacOS的塞拉利昂10.12

Android源代碼:android6.0.1_r1C

的XCode:版本8.2.1

JDK:Java版本 「1.8.0_101」