- 平台ubuntu 18.04
- 资源:https://github.com/yuan-xy/Linux-0.11
- 问题: 使用该项目中的make start启动qemu时,出现could not initialize SDL.
- 资料:https://stackoverflow.com/questions/39257634/could-not-initialize-sdlno-available-video-device-qemu-system-windows-subsys
- https://www.jianshu.com/p/ab4fa7f12f06
- 解决过程: 安装
apt-get install grub-pc-bin无果, 于是在makefile qemu start处加上参数-nographic也不行,于是手工构建命令:
<br /><br /><br /><br /><br />qemu-system-x86_64 -nographic -m 16 -boot a -fda Image -hda hdc-0.11.img -s -S
开启:

gdb tools/system
target remote localhost:1234
对于上图这个问题,起初去掉命令中的-S, 无果。 直接把主机换成32位的了x D

附
通过编译qemu来解决SDL问题:https://blog.csdn.net/jasonLee_lijiaqi/article/details/80967912
