下载和安装genymotion
https://www.genymotion.com/download/
wget https://dl.genymotion.com/releases/genymotion-3.5.1/genymotion-3.5.1-linux_x64.bin
chmod +x genymotion-3.5.1-linux_x64.bin
sudo ./genymotion-3.5.1-linux_x64.bin
默认位置为:/opt/genymobile/genymotion
安装vritual box
genymotion模拟器需要virbox支持,需要安装一下
sudo apt install virtualbox virtualbox-ext-pack
运行出错
运行程序,出现以下错误:
/opt/genymobile/genymotion/genymotion: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15’ not found (required by /opt/genymobile/genymotion/genymotion)
原因是ubuntu20.04默认qt5版本是qt5.12,而genymotion3.5.1需要qt5.15。
安装qt5.15
https://download.qt.io/official_releases/online_installers/
下载后,启动会进入安装界面,需要注册一个账号,安装好了的话,会在/opt/Qt目录下看到5.15.2目录,这个下面就包含了libQt5Core。
启动脚本
因为默认会链接qt5.12,所以需要写一个启动脚本,让程序优先链接qt5.15
export LD_LIBRARY_PATH=/opt/Qt/5.15.2/gcc_64/lib:$LD_LIBRARY_PATH && /opt/genymobile/genymotion/genymotion
若无意外,就能进入genymotion了