I am trying to use the development branch (emu-master-dev) of the emulator because I believe I have come across the bug reported in
https://code.google.com/p/android/issues/detail?id=194627 and fixed in
https://android-review.googlesource.com/#/c/183333/2. (The symptoms match, but I found it running the latest ARM64 AOSP prebuilt under Ubuntu.)
I've tried following the instructions in
https://android.googlesource.com/platform/external/qemu/+/emu-master-dev/docs/DEVELOPMENT.TXT, but have come unstuck at the "android/scripts/build-qemu-android.sh" stage. The first problem is that there seems to be a missing include path for the following line in various source files:
#include "android/globals.h" /* for android_hw */
I found the header file and changed the invocation to:
> C_INCLUDE_PATH=$(pwd) android/scripts/build-qemu-android.sh
The next problem seems to be a missing header file:
#include "android/avd/hw-config-defs.h"
This is generated by a Python script, "gen-hw-config.py", but I've not been able to work out how to convince the build system to execute it.
At this point I'm wondering if I'm not using the right build tools or there is an additional step in the that hasn't yet been documented. (To check things I tried building the "studio-1.5" branch and it worked.)