我正在运行CentOS 6.x(64位),我安装了glibc.i686。我想让我的Android模拟器执行此操作(调用Android模拟器):
/var/opt/android-sdk-linux/tools/emulator -avd somedevice_android-19_armeabi
你猜,现在发生了什么:
SDL init failure, reason is: No available video device
措施1: 好的,看看其他帖子,我应该安装glibc.i686(yum install glibc.i686 ncurses-libs.i686 libstdc libstdc ++。i686 \ libzip.i686 libX11.i686 libXrandr.i686 SDL.i686)。完成。仍然无效。
措施2: 好的,现在我想用 strace 做一些深度调试并得到这条消息(只是摘录):
execve("/var/opt/android-sdk-linux/tools/emulator", ["/var/opt/android-sdk-linux/tools"..., "-ports", "48578,58389", "-no-boot-anim", "-avd", "hudson_en-US_500_480x800_android"...], [/* 25 vars */]) = 0
[ Process PID=32558 runs in 32 bit mode. ]
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
access("/home/.android/avd/hudson_en-US_500_480x800_android-19_armeabi.avd", F_OK) = 0
access("/home/.android/avd/hudson_en-US_500_480x800_android-19_armeabi.avd/emulator-user.ini", F_OK) = -1 ENOENT (No such file or directory)
access("/home/.android/avd/hudson_en-US_500_480x800_android-19_armeabi.avd/kernel-qemu", F_OK) = -1 ENOENT (No such file or directory)
access("/var/opt/android-sdk-linux/add-ons/addon-google_apis-google-19/images/armeabi-v7a//kernel-qemu", F_OK) = -1 ENOENT (No such file or directory)
write(2, "SDL init failure, reason is: No "..., 55SDL init failure, reason is: No available video device
) = 55
所以有一些错误,但它们是否重要?
措施3: 我试过了,在另一个论坛上说了什么: export DISPLAY =:0 也没用。相同的错误消息。
措施4: export SDL_VIDEODRIVER = dont_know_the_name
嗯,这听起来很明智。但是如何找到已安装的视频驱动程序,如果有的话?我现在对此没有更多的想法。 我还能做些什么来制作该死的视频驱动程序? 感谢。
此致 哈德