一、下载安装mingw安装包到D:\mingw
二、运行msys.bat,在shell状态下安装glib、zlib、sdl源码包,选项--prefix=/mingw,./configure、make、make install。
三、python在mingw下无法编译,可以直接下载python的mingw的版本点击打开链接,
也可以用cygwin的python,点击打开链接
四、在msys窗口下,进入qemu目录下,执行下列命令即可:
make clean
./configure --target-list=i386-softmmu --prefix=/qemu
make
make install
需要设置--prefix,缺省将安装到C盘里
如遇到
version.rc:5: syntax error则修改 config-host.h中FILEVERSION的6个数字为4个数字
五、如果qemu静态链接,则zlib、sdl、glib都需静态连接。
例子:qemu-system-i386.exe -L . -m 4 -boot a -fda mikeos.flp -soundhw all -localtime -k en-us
键盘需设置-k en-us