Friday, December 19, 2014

Genymotion on Debian Jessie

Genymotion is the next generation of the AndroVM opensource project. it's even easier to use and offers lots more features (www.genymotion.com)

The goal of this post is to install Genymotion into Debian Jessie 64 bit to emulate android.

Genymotion needs virtualbox to be installed first on the computer.

#apt-get install virtualbox

Download the Genymotion file here.
Registration is needed to download the file.

Sign in to download the file.
Save the file into your harddisk.

Browse the directory where the file is saved.

For example I keep it at /home/username/bin.
 
Change the permission of the file

$chmod u=rwx genymotion-2.3.1_x64_debian.bin

Execute the file :

$ ~/bin/genymotion-2.3.1_x64_debian.bin



















When i try to launch genymotion after the installation, genymotion won't start. Instead it will result some error.

~/bin/genymotion$ ./genymotion
















The genymotion.log shows what went wrong.

$ nano ~/bin/.Genymotion/genymotion.log

Genymotion shows the error is about "cannot mix incompatible Qt library".













Now we are going to remove all the Qt library from genymotion directory to force it to use system Qt library.

$ mkdir libQt-old
$ mv *Qt* libQt-old/

Depending on your system, you might or might not meet the dependency library to run Genymotion.

When Genymotion throws another error, try to satisfy the request written from the output of the shell.

for example :


libqtwebkit.so.4 not found.

solution :
install libqtwebkit.

#apt-get install libqtwebkit4.







As for my system (cinnamon desktop), i have to install  the following:

1. libqtwebkit4
2. libqt4-script
3. libqt4-svg
4. libqt4-sql

#apt-get install libqtwebkit4 libqt4-script libqt4-svg libqt4-sql

And here it is. genymotion






















---------------------------------------------------------------------
For the curious:


Qt is a cross-platform C++ application framework. Qt's primary feature is its rich set of widgets that provide standard GUI functionality.

libqtwebkit4
Web content engine library for Qt

QtWebKit provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application.

libqt4-script
Qt 4 script module

The QtScript module provides classes for making Qt applications scriptable.

libqt4-svg
Qt 4 SVG module

The QtSvg module provides classes for displaying the contents of SVG files.

Scalable Vector Graphics (SVG) is a language for describing two-dimensional graphics and graphical applications in XML.

libqt4-sql
Qt 4 SQL module

The QtSql module helps you provide seamless database integration to your Qt applications.

If you wish to use the SQL module for development, you should install the libqt4-dev package.

The Error Message :




3 comments:

  1. As a note, it might be sufficient to install the "qtscript-tools" package rather than installing individual QT related packages.

    ReplyDelete
  2. Getting this error:

    The following packages have unmet dependencies:
    libcairo2 : Breaks: libwebkitgtk-1.0-0 (< 2.4.5-2~) but 1.8.1-3.4 is to be installed
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

    ReplyDelete