16

I found a lot of problems similar to mine on the web, but still no real solution. I'm having the annoying

Cannot mix incompatible Qt library (version 0x40806) with this library (version 0x40802)

message whenever I try to launch genymotion. It seems that the problem is either in environment variables or different libraries installed. So, I'm trying to see the output of various commands

  1. echo $LD_LIBRARY_PATH returns nothing (actually there is no environment variable with this name.

  2. dpkg -al | grep libqt (*) returns this list

(*) not sure that is the right command btw

  1. Also tried this command echo LD_LIBRARY_PATH=. ldd ./genymotion and this is the output

4.

qmake --version
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu

Any idea?

tigerjack
  • 2,575
  • 7
  • 25
  • 38

3 Answers3

34

Solved the problem using this solution:

I have fixed this issue doing the following:

  1. Installing the libs:

    apt-get install libxi-dev libxmu-dev
    
  2. (Re-)moving the Qt libs inside the Genymotion installation directory:

    mkdir QtLibs && mv *Qt*.so* QtLibs
    

This last command will make Genymotion use the system's Qt libs.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
tigerjack
  • 2,575
  • 7
  • 25
  • 38
4

After you have run the following command:mkdir QtLibs && mv *Qt*.so* QtLibs

you will need to install system libs. For me it was:

    libqtwebkit4
    libqt4-svg

You can find out what your system needs by running genymotion from within the command line terminal

P.-H. Lin
  • 2,824
Urban
  • 41
2

This command helped me to start qtcreator without that error:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/tools/qtcreator-3.6.1/lib/Qt/lib

where qtcreator-3.6.1 is the installation directory.

techraf
  • 3,316
sbond
  • 21