M BUZZ CRAZE NEWS
// general

How to use Intel Hardware Assisted Virtualization on Ubuntu to emulate Android phones with Android Studio

By Emma Martinez

I have been trying to install and use KVM on Ubuntu 16.04 for emulating Android phones which run the apps I build with Android Studio. For some reason launching the emulator on Ubuntu seems to be a lot more complex than on Windows; maybe I am not seeing something but on Windows all I have to do is to download Android Studio and install Intel HAXM. But on Ubuntu I need to install KVM and other software. I started with following this link and I ran into issues with the emulator not finding Qt.5.7; here are the exact messages:

@:~/Android/Sdk$ ./emulator/emulator64-x86 -avd Nexus -qemu -m 2047 -enable-kvm
./emulator/emulator64-x86: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.7' not found (required by ./emulator/emulator64-x86)
./emulator/emulator64-x86: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by ./emulator/emulator64-x86)
./emulator/emulator64-x86: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by ./emulator/emulator64-x86)
./emulator/emulator64-x86: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by ./emulator/emulator64-x86)
./emulator/emulator64-x86: /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5: version `Qt_5' not found (required by ./emulator/emulator64-x86)

So I installed Qt at

/home/sansari/Qt5.7.0

And set the environment variable LD_LIBRARY_PATH to

export LD_LIBRARY_PATH=/home/sansari/Qt5.7.0/Tools/QtCreator/lib
$ printenv LD_LIBRARY_PATH
/home/sansari/Qt5.7.0/Tools/QtCreator/lib

I have also tried

export LD_LIBRARY_PATH=/home/sansari/Qt5.7.0/Tools/QtCreator/lib/

But I still see the original error about the emulator not finding Qt_5.7. How can I fix this please? I did notice that the earlier versions of Qt are in /usr/lib/x86_64-linux-gnu Does that have anything to do with my error?

Update: I just tried the following command and it seems like the new Qt install did not propogate through my system. Would this help figure out what might be the issue and the fix?

qmake -version

QMake version 3.0

Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu
5 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy