ubuntu 12.04 13.04 下安装BOCHS注意事项
2013-08-12 16:41
246 查看
这些是必须要用的环境。
sudo apt-get install build-essential
sudo apt-get install g++
sudo apt-get install libgtk2.0-dev
安装命令
$tar-vxzf bochs-2.6.2tar.gz
$cd bochs-2.6.2
$./configure --enable-debugger --enable-disasm
$make
$sudo make install
错误:checking for default gui on this platform... x11
ERROR: X windows gui was selected, but X windows libraries were not found.
这个貌似只好换高版本的bochs了,按照网上可以成功的方法是不装界面的。
关于make报错:
错误:没有多线程库
/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.4' 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就可以了)
运行bochs时错误:
错误 bochs-biin: symbol lookup error: /usr/lib/bochs/plugins/libbx_x.so: undefined symbol: XpmCreatePixmapFromData
sudo apt-get install bochs-sdl
在我们的bochsrc配置文件中,加入一句话:
display_library: sdl
再贴上一个配置文件 最主要的问题还是路径
###############################################################
# Configuration file for Bochs
###############################################################
# how much memory the emulated machine will have #内存
megs: 32
# filename of ROM images
romimage:file=/usr/local/share/bochs/BIOS-bochs-latest
# what disk images will be used
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest
#虚拟镜像
# what disk images will be used
#软盘
#floppya: 1_44=a.img, status=inserted
#虚拟硬盘
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="a.img"
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
ata1-master: type=none
ata1-slave: type=none
ata2: enabled=0
ata3: enabled=0
# choose the boot disk. #启动的介质
boot: disk #floppy
# where do we send log messages?
# log: bochsout.txt
# disable the mouse
mouse: enabled=0
# enable key mapping, using US layout as default.
keyboard_mapping: enabled=1, map=/usr/local/share/bochs/keymaps/x11-pc-us.map
红色地方标注都是要注意的地方 查找该文件究竟在哪里存放,还有可能是这个目录 /usr/share/bochs
sudo apt-get install build-essential
sudo apt-get install g++
sudo apt-get install libgtk2.0-dev
安装命令
$tar-vxzf bochs-2.6.2tar.gz
$cd bochs-2.6.2
$./configure --enable-debugger --enable-disasm
$make
$sudo make install
错误:checking for default gui on this platform... x11
ERROR: X windows gui was selected, but X windows libraries were not found.
这个貌似只好换高版本的bochs了,按照网上可以成功的方法是不装界面的。
关于make报错:
错误:没有多线程库
/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.4' 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就可以了)
运行bochs时错误:
错误 bochs-biin: symbol lookup error: /usr/lib/bochs/plugins/libbx_x.so: undefined symbol: XpmCreatePixmapFromData
sudo apt-get install bochs-sdl
在我们的bochsrc配置文件中,加入一句话:
display_library: sdl
再贴上一个配置文件 最主要的问题还是路径
###############################################################
# Configuration file for Bochs
###############################################################
# how much memory the emulated machine will have #内存
megs: 32
# filename of ROM images
romimage:file=/usr/local/share/bochs/BIOS-bochs-latest
# what disk images will be used
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest
#虚拟镜像
# what disk images will be used
#软盘
#floppya: 1_44=a.img, status=inserted
#虚拟硬盘
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="a.img"
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
ata1-master: type=none
ata1-slave: type=none
ata2: enabled=0
ata3: enabled=0
# choose the boot disk. #启动的介质
boot: disk #floppy
# where do we send log messages?
# log: bochsout.txt
# disable the mouse
mouse: enabled=0
# enable key mapping, using US layout as default.
keyboard_mapping: enabled=1, map=/usr/local/share/bochs/keymaps/x11-pc-us.map
红色地方标注都是要注意的地方 查找该文件究竟在哪里存放,还有可能是这个目录 /usr/share/bochs
相关文章推荐
- ubuntu server 12.04上的skyeye1.3.5安装和使用(打造最精确的安装步骤和注意事项)
- ubuntu 12.04 安装snort acidbase相关注意事项
- ubuntu 13.04安装注意事项和ROOT密码设置
- Oracle12c 在 Ubuntu 12.04 ~ 18.04 的安装注意事项
- ubuntu14.04安装搜狗输入法注意事项
- Ubuntu 12.04安装带调试功能的Bochs 2.6.2, 调试linux 0.11 内核
- ubuntu 12.04 安装 chrome 需要注意的地方
- 在Ubuntu server13.04下安装vmtools需要注意的地方
- 怎样在Ubuntu 13.04,12.10,12.04安装Qmmp 0.7.2
- ubuntu下安装cscope的注意事项
- Ubuntu 12.04/13.04 安装 Oracle11gR2:该笔记已经陈旧!请参考后续的笔记
- ubuntu server 安装注意事项
- 安装ubuntu server的注意事项
- Ubuntu 12.04 & 13.04 安装 GCC4.8.1
- NS2.34 在Ubuntu 11.04及以后版本的安装注意事项
- virtualbox ubuntu虚拟机安装配置android开发环境(eclipse+ndk+sdk)及注意事项
- ubuntu安装注意事项
- Ubuntu16.04 部署安装Docker容器 & 注意事项
- 在具有NVidia独立显卡的台式机上安装Ubuntu的流程和注意事项
- 在Ubuntu系统下安装luci的步骤和注意事项