我正在尝试使用 qemu-android 在 Ubuntu 20.10 上虚拟化 Android x86https://www.android-x86.org我正在关注本教程:
https://www.android-x86.org/releases/releasenote-7-1-r5.html
因此我按照教程中的说明发出了以下命令:
sudo apt install alien
sudo alien -ci android-x86-7.1-r5.x86_64.rpm
sudo qemu-android
瞧瞧,事情是这样的:
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
qemu-system-x86_64: Display 'sdl' is not available.
有人知道该怎么解决这个问题吗?之前我在 ubuntu 20.10 上安装了这些软件包:
apt install libepoxy-dev libdrm-dev libgbm-dev libpulse-dev mesa-common-dev libgbm-dev libsdl2-dev libsdl2-2.0-0 libvirglrenderer-dev libsdl2-dev
缺少了什么?谢谢。
更新:我读到我应该选择 gtk 而不是 SDL,并且还应该将 gl=off。事实上,如果将 gl=on,就会发生此错误:
Detecting Android-x86... found at /dev/vda
gl_version 45 - core profile enabled
x86_64:/ # vrend_renderer_fill_caps: Entering with stale GL error: 1280
GLSL feature level 430
并且无法启动。因此我修改了 android-qemu 文件,如下所示:
但它无论如何都不起作用。请查看这些日志消息:
Android 卡在启动时,无法启动。