Skip to content

Instantly share code, notes, and snippets.

@xavetar
Created May 10, 2022 04:32
Show Gist options
  • Select an option

  • Save xavetar/0ae34ee670cd75f1192188f57cd4c850 to your computer and use it in GitHub Desktop.

Select an option

Save xavetar/0ae34ee670cd75f1192188f57cd4c850 to your computer and use it in GitHub Desktop.
Build Android Emulator (aarch64/arm64 and etc.)
# Original from https://developer.android.com/studio/releases/emulator#emulator_for_arm64_hosts
mkdir emu
cd emu
repo init -u https://android.googlesource.com/platform/manifest -b emu-master-dev --depth=1
repo sync -qcj 24
cd external/qemu
pip install absl-py
pip install urlfetch
# sudo apt-get install crossbuild-essential-arm64
python3 android/build/python/cmake.py --noqtwebengine --noshowprefixforinfo --target linux_aarch64
@xavetar
Copy link
Author

xavetar commented Sep 18, 2024

x86_64-binfmt-P

I think a machine with x86_64 architecture is needed for cross-assembly to aarch64. Android Emulator does not natively support building on aarch64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment