Last active
June 23, 2023 11:41
-
-
Save thekalinga/e358b0f2c4a38de28f5d9c0024101b2f to your computer and use it in GitHub Desktop.
Running hardware accelerated emulator on Ubuntu 14.04 using system images on Intel x64 machines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Follow the instructions from (reference 2) | |
2. Follow the instructions from (reference 3) | |
If you are not able to run `sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils ia32-libs-multiarch` due to ia32-libs-multiarch, run the below commands | |
```sh | |
sudo -i | |
cd /etc/apt/sources.list.d | |
echo "deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse" > ia32-libs-raring.list | |
apt-get update | |
``` | |
and then try running the command again | |
While running the emulator, if you get qt xcb related error, make sure you copy libqxcb.so to <android sdk folder>/tools/lib64/qt/plugins/platforms | |
If qt is not installed on your system, follow the instructions from (reference 4) & run `cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so <android sdk folder>/tools/lib64/qt/plugins/platforms` | |
If you get `lib64OpenglRender.so` related error, make sure you have `LD_LIBRARY_PATH` pointing to `<android sdk folder>/tools/lib64` | |
The final shell script I have to launch my emulator is below | |
```sh | |
cd /home/thekalinga/Android/Sdk/tools | |
LD_LIBRARY_PATH=~/Android/Sdk/tools/lib64 ./emulator64-x86 -avd Nexus_5X_64_API_22 -qemu -m 2047 -enable-kvm -show-kernel | |
``` | |
References | |
--- | |
1. http://stackoverflow.com/a/30651276/211794 | |
2. https://software.intel.com/en-us/blogs/2014/03/06/now-available-android-sdk-x86-system-image-with-google-apis | |
3. https://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-emulator | |
4. https://wiki.qt.io/Install_Qt_5_on_Ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment