现在的位置: 首页 > 综合 > 正文

安装带调试功能的bochs

2018年01月24日 ⁄ 综合 ⁄ 共 1797字 ⁄ 字号 评论关闭

学习操作系统,下载了bochs最新版本,但是不会编译安装,老是出错,用了一会简单的无调试功能的bochs但是感觉缺少点什么,想用带调试功能的,网上搜索了好多资料,终于自己完成了编译安装的bochs,不容易啊,赶紧分享一下,linux版本是ubuntu 9.04 虚拟己版本是bochs 2.4.1

不带调试功能的简单安装方法:
sudo apt-get install bochs

带调试功能的bochs安装

sudo apt-get install build-essential  安装编译环境

tar vxzf bochs-2.4.1.tar.gz
cd bochs-2.3.5
./configure --enable-debugger --enable-disasm
这一步问题出来了,没注意配置时出现的问题就接着make了,导致make的时候,老是说83行遗漏分隔符。后来注意到了configure 的时候最后一行出现了一句:

> ERROR: X windows gui was selected, but X windows libraries were not found.

后来解决了,sudo aptitude install xorg-dev
(参考http://blog.163.com/i.kenting/blog/static/1226902032009625102310341/)

When install bochs, While I compile come file with ./configure there give a msg:

> configure: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it

> checking for default gui on this platform... x11

> ERROR: X windows gui was selected, but X windows libraries were not found.

I just follow this :

You need to install the development libraries. To compile a wxWidgets

program you need libwxbase2.4-dev, libwxbase2.4-dev, and

libwxgtk2.4-contrib-dev (for a wx2.4 program) or libwxgtk2.6-dev (for a

wx2.6 program). For an X11 program you need x-window-system-dev, which

should pull in all the dependencies you need.

but I couldn't install the x-window-system-dev with: sudo apt-get install x-window-system-dev

the to solved this just:

sudo aptitude install xorg-dev  everything is fine with the ./configure now .

 

sudo apt-get install xorg-dev无法安装,吼吼,又学到了个aptitude 。

再./configure 试试,晕,又有错误,错误提示是
checking for display libraries...  X11
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.0 package.
Install pkg-config and the gtk+ development package,
or disable the gui debugger, or the wxWidgets display library (whichever is being used).

这个安装了个 gtk就解决了 
sudo aptitude install libgtk2.0-dev (这个是自己猜的,安装上果然可以了,呵呵,还有点天分)

抱歉!评论已关闭.