android - Running AOSP build on Mac (Yosemite and later) -
i able source code android-5.0.1_r1 working directory. however, have trouble building , running code on emulator because lunch command giving me trouble.
repo has been initialized in /volumes/aospdiskimage/aosp nikhils-mbp:aosp nikhil$ . build/envsetup.sh including device/asus/deb/vendorsetup.sh including device/asus/flo/vendorsetup.sh including device/asus/fugu/vendorsetup.sh including device/asus/grouper/vendorsetup.sh including device/asus/tilapia/vendorsetup.sh including device/generic/mini-emulator-arm64/vendorsetup.sh including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh including device/generic/mini-emulator-mips/vendorsetup.sh including device/generic/mini-emulator-x86/vendorsetup.sh including device/generic/mini-emulator-x86_64/vendorsetup.sh including device/lge/hammerhead/vendorsetup.sh including device/lge/mako/vendorsetup.sh including device/moto/shamu/vendorsetup.sh including device/samsung/manta/vendorsetup.sh including sdk/bash_completion/adb.bash nikhils-mbp:aosp nikhil$ lunch you're building on darwin lunch menu... pick combo: 1. aosp_arm-eng 2. aosp_arm64-eng 3. aosp_mips-eng 4. aosp_mips64-eng 5. aosp_x86-eng 6. aosp_x86_64-eng 7. aosp_deb-userdebug 8. aosp_flo-userdebug 9. full_fugu-userdebug 10. aosp_fugu-userdebug 11. aosp_grouper-userdebug 12. aosp_tilapia-userdebug 13. mini_emulator_arm64-userdebug 14. mini_emulator_arm-userdebug 15. mini_emulator_mips-userdebug 16. mini_emulator_x86-userdebug
which like? [aosp_arm-eng]
everytime, picked 1 of options kept getting message looks like:
which like? [aosp_arm-eng] 6 build/core/combo/mac_version.mk:38: ***************************************************** build/core/combo/mac_version.mk:39: * can not find sdk 10.6 @ /developer/sdks/macosx10.6.sdk build/core/combo/mac_version.mk:40: ***************************************************** build/core/combo/mac_version.mk:41: *** stop.. stop. ** don't have product spec for: 'aosp_x86_64' ** have right repo manifest?
what missing? should do?
assuming you're encountering issue on yosemite, it's known issue.
while there's no official workaround @ moment, assuming have xcode installed, should able fix symlinking current sdk:
sudo ln -s /developer/sdks/macosx10.10.sdk /developer/sdks/macosx10.6.sdk
and modifying build/core/combo/mac_version.mk
, , changing:
mac_sdk_versions_supported := 10.6 10.7 10.8
to
mac_sdk_versions_supported := 10.9 10.10
it's issue xcode versioning , way hardcoded build process.
Comments
Post a Comment