Installing Bochs

Refs:

  1. http://blog.csdn.net/jinzhuojun/article/details/8604335

  2. 《自己动手写操作系统》

Steps:

  1. Download bochs source file from sourceforge

  2. 

apt-get install libsdl1.2-dev 
apt-get build-dep bochs

  3. cd <bochs_source_dir>,  and then 

./configure --with-sdl --enable-debugger  --enable-disasm --enable-all-optimizations --enable-readline --enable-long-phy-address  --enable-debugger-gui --enable-long-phy-address --enable-smp --enable-x86-64 --enable-pci --enable-vmx --enable-logging --enable-fpu --enable-cdrom --enable-iodebug --enable-3dnow

  4. There is some error in my platform, "Linux lubt-vbox 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux"

  (got by "uname -a"), by the way, lubuntu renders chinese chars very great, even I installed english language edition, it‘s great out of the box.

  so I googled, got these two websites: http://*.com/questions/19901934/strange-linking-error-dso-missing-from-command-line

                                                        http://*.com/questions/12898287/how-to-add-compile-flag-g-to-a-make-file

  then, i added suffix " -lz -lrt -lm -lpthread" to "LIBS = ***", then "make", it works~ 

  

bochs

  <enter> several times,  I got these

  Installing Bochs

  "sudo make install", done

 

## By the way, if you run "bochs"/"bochs -f bochsrc" now, you will see nothing an empty window, it‘s not wrong, just type "c" in command line, and

you got what you want, (I just troubled by it ...)

Installing Bochs

Installing Bochs

上一篇:上传文件表单file,限制上传文件类型的方法--参数accept


下一篇:qt下的跨目录多工程编译