How to build / run AOSP Car on the emulator from sources?

444 views
Skip to first unread message

andrada anca

unread,
Apr 8, 2020, 3:46:13 PM4/8/20
to Android Building

How to build / run AOSP Car on the emulator from sources?

My goal is to enable the hidden features of "multi-display" on the emulator. For that, I pulled the emulator sources from the 'emu-master-dev' branch, made the changes, build.

The problem is that, I can't run the emulator with the aosp_car_x86_64 images. The emulator hangs and android is not starting.


This is the lunch combo I use to build the images:

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=10

TARGET_PRODUCT=aosp_car_x86_64

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=x86_64

TARGET_ARCH_VARIANT=x86_64

TARGET_2ND_ARCH=x86

TARGET_2ND_ARCH_VARIANT=x86_64

HOST_ARCH=x86_64

HOST_OS=darwin

HOST_OS_EXTRA=Darwin-19.3.0-x86_64-10.15.3

HOST_BUILD_TYPE=release

BUILD_ID=QQ2A.200305.004.A1

OUT_DIR=out

============================================


The system runs on the prebuilts emulator.


Any idea what I am doing wrong?

Frank Yang

unread,
Apr 8, 2020, 6:52:14 PM4/8/20
to android-...@googlegroups.com
BTW I use https://github.com/phracker/MacOSX-SDKs to download older macos sdks but if anyone else has a better suggestion I'm all ears

On Wed, Apr 8, 2020 at 1:39 PM Frank Yang <l...@google.com> wrote:
I notice you're on a macOS host; you'll need to build the emu-master-dev linked against macos 10.13 sdk, not 10.15 (The latest has issues where there is a crash on startup).

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/45b4595d-b9e9-46f7-a369-c498c7cb56e6%40googlegroups.com.

andrada anca

unread,
Apr 9, 2020, 10:53:11 AM4/9/20
to Android Building
Hi there,

You were right, it was the MacOS SDK issue.
I replaced SDK v. 10.15 with 10.13 as you suggested, and now I can launch the emulator with the AOSP-car image.
I use the same GitHub repo to obtain the SDKs.

By the way, where should I look that it's a crash at startup? besides running the emulator with
-verbose
is there a log file to check ?

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages