系统版本:Ubuntu 14.04.1 LTS
1.install SDL
apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
或者:
sudo apt-get install libsdl1.2-dev
sudo apt-get install libsdl-image1.2-dev
sudo apt-get install libsdl-mixer1.2-dev
sudo apt-get install libsdl-ttf2.0-dev
sudo apt-get install libsdl-gfx1.2-dev
install tools
sudo apt-get install qemu
sudo apt-get install nasm
sudo apt-get install git
2.Code
git clone https://github.com/zzyjsjcom/os_diy.git os_diy
3.build and run
cd hello0
make build
make run
make clean
4.注意
QEMU必须在本机运行,SSH下会出错!
francis@Aspire-5100:~/os_diy/01_30days/day01/hello0$ sudo make run
qemu-system-i386 -no-kvm -m 32 -vga std -fda os.img
Could not initialize SDL(No available video device) - exiting
make: *** [run] 错误 1
Linux入门学习教程:虚拟机体验之QEMU篇:http://www.linuxdiyf.com/linux/9132.html
linux内核调试环境的搭建(使用qemu):http://www.linuxdiyf.com/linux/2456.html
使用QEMU调试Linux内核代码:http://www.linuxdiyf.com/linux/1826.html