1。去http://bochs.sourceforge.net 网站 下载bochs源码安装包
2。使用 tar -xzvf bochs-2.5.1.tar.gz 解压文件,执行右面的命 cd bochs-2.2.5
4。执行下面的命令 /configure --enable-debugger --enable-disasm //使用bochs自身的调试
或者执行 /configure --enable-gdb-stub //使用gdb调试
出现下面错误。
主要是c++的问题,执行下面的命令 sudo apt-get install build-essentialchecking how to run the C++preprocessor... /lib/cpp configure: error: C++ preprocessor"/lib/cpp" fails sanity check See `config.log' for more details.
5。很遗憾的是bochs不给力呀,还是没有安装成功,又出了新的问题了,
ERROR: X windows gui was selected, but X windows libraries were not found.这个应该是X Windows桌面的问题
执行命令sudo apt-get install xorg-dev
6。离成功安装还是有距离的,又出现了错误了,
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
ERROR: pkg-config was not found, or unable to access the gtk+-2.0package.
Install pkg-config and thegtk+ development package,or disable the gui debugger, or the wxWidgets display library (whichever is being used).
需要安装libgtk2.0-dev sudo apg-get install libgtk2.0-dev
7。总算是没有错误了,然后使用 make 编译一下,发现成功了,
执行 make install 安装bochs
8。但是使用bochs时候如果出现了 bochs-bin:symbol lookuperror:/usr/lib/bochs/plugins/libbx_x.so:undefined symbol XpmCreatePixmapFrom错误
执行命令: sudo apt-get install bochs-sdl
安装好后在bochs的配置文件里面加一句 display_library: sdl 就OK,
9。如果在调试内核的时候,模拟器无法出现
This VGA/ VBE Bios is resleased under the GUN LGPL,
Please visit:
.......,也不显示bochs的版本,bochs界面一直为黑屏,
或者提示 vgabios有错误的,(这个界面忘记记录不好意思)
请执行下面命令:sudo apt-get install vgabios bochs-x bximage
ubuntu bochs2.5.1安装
最新推荐文章于 2021-04-30 05:46:57 发布