转
在Windows下作用bochsdbg习惯了,在Ubuntu下,发现bochs包里竟然没有bochsdbg,要自己编译
$ apt-get
source bochs
$ cd bochs-2.3.7
$ ./configure --enable-debugger
--enable-disasm --prefix=/usr
$ make
$ sudo cp bochs
/usr/bin/bochsdbg
编译错误解决办法
错误一: ISO C++ forbids declaration of
‘hash_map’ with no type
修改:加入hash_map的命名空间,修改bx_debug/symbols.cc
#include
<ext/hash_map>
using namespace __gnu_cxx;
错误二:没有找到yacc命令
修
改:安装yacc包
sudo apt-get install bison++
本文介绍了在Ubuntu环境下,如何自行编译Bochs软件包并解决编译过程中遇到的错误,特别是针对未包含Bochsdbg的问题,通过修改源代码文件和安装依赖包来实现Bochsdbg的正确配置。
1629

被折叠的 条评论
为什么被折叠?



