ubuntu上安装bochs

我的ubuntu版本信息如下:
Linux aichong-laptop 2.6.31-22-generic #68-Ubuntu SMP Tue Oct 26 16:38:35 UTC 2010 i686 GNU/Linux
1.尝试安装源码包。
   2.4及之后的源码包,make过程中 会提示"element "ENTRY" undefined"等类似错误。
   2.3及之前的源码包,make过程中会提示“error: ISO C++ forbids declaration of ‘hash_map’ with no type”等类似错误。
   因此,这条路走不通
2. 使用apt-get命令
    2.1
   apt-get install bochs
   启动bochs后,提示:
Event type: PANIC
Device: [     ]
Message: dlopen failed for module 'x': file not found
   安装x模块:apt-get install bochs-x
   启动bochs后,提示:
Event type: PANIC
Device: [XGUI ]
Message: bochs: cannot connect to X server
google搜索后,发现问题解决方法:
这个问题是图形库的问题。默认地,bochs使用“ display_library: x”即x server图形库,但是在系统中找不到。
sudo apt-get install bochs-sdl安装sdl库,然后使用“ display_library: sdl ”选项指定使用sdl库。
但是再运行bochs,还是会出错。
(*) DirectFB/Core: Single Application Core. (2009-06-02 06:33) 
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!

2.2 安装svga图形库
sudo apt-get install bochs-svga
然后图形选项改为display_library: sdl,再启动bochs。结果竟然进入了60*80的字符界面,而且所有按键都被Orange系统抓取,无法从bochs中退出!!
2.3 安装term图形库
sudo apt-get install bochs-term
然后图形选项改为display_library: term,再启动bochs。这次还好,Orange系统启动,显示当前的终端;但是,无法接收
alt+f1/f2/f3键盘信号,即,无法切换Orange系统的终端。截图如下:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值