Building Android SDK on ARM

77 views
Skip to first unread message

Monte Yates

unread,
Sep 26, 2015, 6:36:49 PM9/26/15
to android-platform
Hello all,

I am currently trying to build the Android SDK for ARM under Ubuntu 12.04 and am having some difficulty in compiling.
Here's where I've gotten:

user@localhost:~/path/to/AndroidSource$ make sdk

============================================
PLATFORM_VERSION_CODENAME
=REL
PLATFORM_VERSION
=5.1.51
TARGET_PRODUCT
=aosp_arm
TARGET_BUILD_VARIANT
=eng
TARGET_BUILD_TYPE
=release
TARGET_BUILD_APPS
=
TARGET_ARCH
=arm
TARGET_ARCH_VARIANT
=armv7-a
TARGET_CPU_VARIANT
=generic
TARGET_2ND_ARCH
=
TARGET_2ND_ARCH_VARIANT
=
TARGET_2ND_CPU_VARIANT
=
HOST_ARCH
=arm
HOST_OS
=linux
HOST_OS_EXTRA
=Linux-3.14.0-armv7l-with-Ubuntu-12.04-precise
HOST_CROSS_OS
=windows
HOST_BUILD_TYPE
=release
BUILD_ID
=AOSP
OUT_DIR
=out
============================================

Unknown option: -C usage: git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] [-c name=value] [--help] <command> [<args>]

prebuilts
/clang/linux-x86/host/3.6/bin/clang++ -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wsign-promo -DNDEBUG -UDEBUG -Wno-inconsistent-missing-override -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -o out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/dep.o build/kati/dep.cc

build
/kati/dep.cc:68:24: error: no member named 'emplace' in 'std::unordered_map<char, (anonymous namespace)::RuleTrie *, std::hash<char>, std::equal_to<char>, std::allocator<std::pair<const char, (anonymous namespace)::RuleTrie *> > >'

auto p = children_.emplace(c, nullptr);
         
~~~~~~~~~ ^
1 error generated. make: *** [out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/dep.o]
Error 1 #### make failed to build some targets (30 seconds) ####

I have managed to change the prebuilt clang to link (ln -s) to my own clang-3.7 binary, and I also followed this guide: 
      http://www.timelesssky.com/blog/building-android-sdk-build-tools-aapt-for-debian-arm
in setting everything else up to get to this point.

Does anyone have any pointers that could help?

Regards,

Monte

Reply all
Reply to author
Forward
0 new messages