2017-01-02 72 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”