ubuntu bochs环境

操作系统:ubuntu13.04

内核: 3.8.6


$ tar zxvf bochs-2.6.2.tar.gz

$ ./configure --enable-debugger --enable-disasm   ## 打开编译功能和反汇编

$ make

$ sudo make install 


关于make报错:

1,没有多线程库

/usr/bin/ld: gui/libgui.a(gtk_enh_dbg_osdep.o): undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [bochs] Error 1

解决方法:

打开Makefile,在92行左右找到 LIBS = 。。。一行,在这一行最后面添加 -lpthread

(注意修改完成之后不能重新configure,不然添加的-lpthread会消失,添加后直接make就可以了)


可能遇到下面的问题:

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

解决办法: sudo apt-get install xorg-dev

2.ERROR: pkg-config was not found, or unable to access the gtk+-2.0 package.

解决办法:sudo apt-get install libgtk2.0-dev

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值