OS X 10.10.5 compiling Android5.1.1 source code

Source: Internet
Author: User

--------------------------------------------------written in front--------------------------------------------------

Because in the compilation process encountered a lot of strange, difficult to solve problems ~ ~ ~

To the back, in fact, installed in the Macmini Ubuntu system, finally completed in the Ubuntu system Android source code compiled.

The following are some of the problems and workarounds that are encountered in compiling the OS X system and are logged.

--------------------------------------------------written in front--------------------------------------------------

Reference: Build Android 5.1.1 on OSX 10.10 Yosemite with Xcode7

First, the Environment configuration

PC: Mac Mini (OS X 10.10.5)

Memory: 2 GB 1333 MHz DDR3

Xcode:xcode 7.1 Beta

Second, error

(1)

Select ' Xcodebuild ' ' /library/developer/commandlinetools ' is a command line tools instance

Workaround:

sudo xcode-Select --switch/applications/xcode-beta.app

(2)

BUILD/CORE/COMBO/MAC_VERSION.MK:*****************************************************Build /core/combo/mac_version.mk:10.10 find at/developer/sdks/macosx10. Ten . Sdkbuild/core/combo/mac_version.mk:*****************************************************

Workaround: Increase Mac_supported_versions by 10.11 in the Build/core/combo/mac_version.mk file

mac_sdk_versions_supported: =  10.610.710.810.910.11

(3)

BUILD/CORE/MAIN.MK:************************************************************build/ CORE/MAIN.MK:117case-insensitive filesystem.build/core/main.mk:118Case -Sensitive filesystem.build/core/main.mk:119: ******************************************* build/core/main.mk:: * * * case-insensitive filesystems not supported.  Stop.

The Android source code must be compiled under a case-sensitive file system, and Mac OS is not case-sensitive by default, so you need to create a case-sensitive disk partition.

Workaround:

Use the disk utility to separate a partition (MAC OS journaled, case-sensitive) in the format.

"Partition cannot be verified" error message "Unable to partition", restart the computer, when the computer started to press Command+s, enter the single-user mode, enter the FSCK-F command, repair the disk, enter reboot Restart the computer, again with Disk utility partition.

(4)

Host C + +: Validatekeymaps <= frameworks/base/tools/validatekeymaps/main.CPP<built-inch:0: Error:unknown value '10.11' of-mmacosx-version-MinInfileIncluded from System/core/include/cutils/log.h:1, from System/core/include/utils/keyedvector.h: -, from Frameworks/native/include/input/input.h: -, from Frameworks/native/include/input/keycharactermap.h: -, from Frameworks/base/tools/validatekeymaps/main.CPP: -: System/core/include/log/log.h: *: -: Error:stdarg.h:no Suchfileor directory Make: * * * [OUT/HOST/DARWIN-X86/OBJ32/EXECUTABLES/VALIDATEKEYMAPS_INTERMEDIATES/MAIN.O] Error1

Workaround:

In build/core/combo/host_darwin-x86.mk, add 10.10 to 10.11 judgment:

10.8 10.9 10.10 10.11  10.8+ no longer has stdarg.h, Etchost_toolchain_header:= $ ($ (combo_2nd_arch_prefix) Host_ Toolchain_root)/lib/gcc/i686-apple-darwin$ (gcc_darwin_version)/4.2. 1/+ =-Isystem $ (host_toolchain_header) endif

(5)

<built-in,:0: Error:unknown value '10.11' of-mmacosx-version-minmake  1

Workaround:

Download the low version of Xcode (Xcode 6.1.1) and get the SDK for OS X 10.9.

OS X 10.10.5 compiling Android5.1.1 source code

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.