红联Linux门户
Linux帮助

Ubuntu 16.10启动android虚拟机,报libGL error

发布时间:2017-01-18 12:08:12来源:blog.csdn.net/soslinken作者:宁惊蛰
无法打开虚拟机?
使用Ubuntu 16.10,启动Android虚拟机会报LibGL的异常,而该异常会使虚拟机无法启动。错误如下:
libGL error: unable to load driver: r600_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: r600
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range    for  operation)
Major opcode of failed request:  155 (GLX)
Minor opcode of failed request:  24 (X_GLXCreateNewContext)
Value in failed request:  0x0
Serial number of failed request:  33
Current serial number in output stream:  34
QObject::~QObject: Timers cannot be stopped from another thread
 
解决方案:
STEP1.检查是否安装了lib64stdc++6
32位系统
$ sudo apt search lib64stdc++6
64位系统
$ sudo apt search lib64stdc++6:i386
STEP2.安装lib64stdc++6(如果安装,则跳转至SETP3)
32位系统
$ sudo apt install lib64stdc++6
64位系统
$ sudo apt install lib64stdc++6:i386
SETP3.创建libstdc++的软链接至Android SDK中tools目录下lib64目录下
$ cd $ANDROID_HOME/android-sdk-linux_x86/tools/lib64/libstdc++
$ mv libstdc++ libstdc++.bak
$ ln -s /usr/lib64/libstdc++.so.6 $ANDROID_HOME/android-sdk-linux_x86/tools/lib64/libstdc++
完美解决!

参考:
Ubuntu 16.10启动android虚拟机,报libGL error
 
本文永久更新地址:http://www.linuxdiyf.com/linux/27918.html