操作系统:ubuntu 12.04 http://gbk.chinaunix.net/uid-23817499-id-3418083.html
- vgaromimage: /usr/share/vgabios/vgabios.bin
- vgaromimage: file=/usr/share/vgabios/vgabios.bin
错误二:
- sudo apt-get install bochs-x
作者指出,我们换一种显示的方案就可以了。
首先按照bochs-sdl,用apt-get可以安装。
- sudo apt-get install bochs-sdl
在我们的bochsrc文件中,加入一句话:
- display_library: sdl
- #keyboard_mapping: enabled=1, map=/usr/share/bochs/keymaps/x11-pc-us.map
然后那红色的hello world就出来了
http://blog.sina.com.cn/s/blog_71c44ef8010184ga.html
1、bochs-bin: symbol lookup error: /usr/lib/bochs/plugins/libbx_x.so: undefined symbol: XpmCreatePixmapFromData
错误:
========================================================================
Bochs x86 Emulator 2.4.6
Build from CVS snapshot, on February 22, 2011
Compiled at Nov 11 2011, 09:31:18
========================================================================
00000000000i[ ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib/bochs/plugins'
00000000000i[ ] BXSHARE not set. using compile time default '/usr/share/bochs'
00000000000i[ ] reading configuration from bochsrc.bxrc
00000000000i[ ] lt_dlhandle is 0x2d7b960
00000000000i[PLGIN] loaded plugin libbx_x.so
00000000000i[ ] installing x module as the Bochs GUI
00000000000i[ ] using log file bochsout.txt
bochs-bin: symbol lookup error: /usr/lib/bochs/plugins/libbx_x.so: undefined symbol: XpmCreatePixmapFromData
最后这一条百思不得其解……居然连源文件都不能使用了……跪求大神解决……
下面是配置文件原文(注释去掉了)
megs: 32
romimage: file=/usr/share/bochs/BIOS-bochs-latest
vgaromimage: file=/usr/share/vgabios/vgabios.bin
floppya: 1_44=a.img, status=inserted
floppyb: 1_44=floppyb.img, status=inserted
boot: floppy
log: bochsout.txt
mouse: enabled=0
keyboard_mapping: enabled=1, map=/usr/local/share/bochs/keymaps/x11-pc-us.map
关于keyboard_mapping的错误。
使用# enable key mapping, using US layout as default.
keyboard_mapping: enabled=1, map=/usr/share/bochs/keymaps/x11-pc-us.map
启动以后,出现如下提示:
注释掉bochsrc里的关于keyboard_mapping就可以正常启动