2017-01-02 8 views
2

アンドロイドをビルドしてエミュレータで実行する環境をセットアップしようとしています。最近私はAOSPに入って、それについていくつかの本を読んでいます。間でテキストを、これらのエラーの合計12で-makeを使ってAOSPをビルドする際のエラー

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 

が、それらは全く同じですので、私はそれらすべてをコピーしていない:それを周りの混乱に自分自身を望む私は、次のエラーを得ました。 (これらのすべてがエラーです:{double L} [SOMETHING] "という意味のエラーはありませんでした);

これは、1:source build/envsetupの実行結果です。 sh 2:lunch 3:sudo make -j4

私はエルキャピタンを使用しており、the official instructionsに従っています。私が遭遇した唯一の問題は、XCodeが適切なSDKを含む/ developer/SDKsフォルダを作成しないため、SDKをGithubから手動でダウンロードしてSDKフォルダに入れたことです。これが問題である可能性はありますか?

ビルドしようとしているコードは、アンドロイド6.0.1_r1の未修正です。私はrepo-initとrepo syncを実行してみましたが(コードを修正するために)、効果はありませんでした。

私はそれが非常にわかりやすいと思っていますが、私はこれをどのように修正するのか手がかりがありません。前もって感謝します。

答えて

0

あなたはGitHubのからMacOSX10.11.sdkをダウンロードすることができ、あなたのMacOSX-SDK

として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

は(私も/ MacOSX10.11.sdkへ/開発/ SDKをコピー)

とファイルint型アンドロイドのソースコードを変更:構築/コア/コンボ/ 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"