您尚未登录。

#1 2016-05-17 21:43:46

roadgo
会员
注册时间: 2012-04-07
帖子: 380

运行android sdk

Starting emulator for AVD 'bbb'
sh: glxinfo: command not found
安装mesa-demos

离线

#2 2016-05-17 21:44:43

roadgo
会员
注册时间: 2012-04-07
帖子: 380

Re: 运行android sdk

错误2
ibGL 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:  GLXBadContext
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  49
  Current serial number in output stream:  48
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:  GLXBadContext
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  49
  Current serial number in output stream:  48

离线

#3 2016-05-17 22:48:04

roadgo
会员
注册时间: 2012-04-07
帖子: 380

Re: 运行android sdk

% export LIBGL_DEBUG=verbose
% glxinfo | grep direct
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/r600_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/r600_dri.so
libGL: Can't open configuration file /home/road/.drirc: No such file or directory.
libGL: Can't open configuration file /home/road/.drirc: No such file or directory.
libGL: Using DRI2 for screen 0
direct rendering: Yes
    GL_ARB_depth_buffer_float, GL_ARB_depth_clamp, GL_ARB_direct_state_access,

离线

#4 2016-05-18 13:55:37

farseerfc
会员
注册时间: 2013-07-30
帖子: 210
个人网站

Re: 运行android sdk

所以哪個是問題?libgl 找不到?
試試開 multilib 裝 32 位的驅動


computerは神様だと信じていて
だからVIMの上でずっと指が舞って
自ら恋愛相手を作り出して

离线

#5 2016-05-18 18:56:55

roadgo
会员
注册时间: 2012-04-07
帖子: 380

Re: 运行android sdk

早就装过了,不行啊

离线

#6 2016-05-18 19:31:14

roadgo
会员
注册时间: 2012-04-07
帖子: 380

Re: 运行android sdk

I solved the problem myself shortly after posting the topic:
Something has changed in the permissions policy, which now requires that you are a member of the video group if you want to run libGL. So a simple
# usermod -aG video myuser
followed by an X restart, is sufficient.
Hopefully this will help others with the same problem.

离线

#7 2016-05-19 18:56:56

roadgo
会员
注册时间: 2012-04-07
帖子: 380

Re: 运行android sdk

解决了
Confirmed. I create a symlink and then I can start the emulator without prepending LD_PRELOAD as stated before.

$ cd $ANDROID_HOME/android-sdk-linux_x86/tools/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib64/libstdc++.so.6 $ANDROID_HOME/android-sdk-linux_x86/tools/lib64/libstdc++

Thank you for the hint!

离线

#8 2016-05-20 14:14:11

lijing48301243
会员
注册时间: 2013-04-14
帖子: 137

Re: 运行android sdk

链接到一个目录也行啊……,不是直接到.so……

roadgo 说:

解决了
Confirmed. I create a symlink and then I can start the emulator without prepending LD_PRELOAD as stated before.

$ cd $ANDROID_HOME/android-sdk-linux_x86/tools/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib64/libstdc++.so.6 $ANDROID_HOME/android-sdk-linux_x86/tools/lib64/libstdc++

Thank you for the hint!


archlinux磨合中

离线

页脚