qemu 编译
来源:互联网 发布:sql2005附加数据库 编辑:程序博客网 时间:2024/05/17 07:01
在ubuntu1104中,使用 sudo apt-get source qemu 下载到 qemu-kvm-0.14.0+noroms
然后sudo ./configure 报告错误
===
Error: zlib check failed
Make sure to have the zlib libs and headers installed.
===
这需要安装zlib
用如下的命令
sudo apt-get install zlib1g-dev
安装好后,再运行configure,就会有下面的这堆配置。
===
ldm@ldm-TOP2:/usr/src/qemu-kvm-0.14.0+noroms$ sudo ./configure
Error: libpci header check failed
Disable KVM Device Assignment capability.
Install prefix /usr/local
BIOS directory /usr/local/share/qemu
binary directory /usr/local/bin
config directory /usr/local/etc
Manual directory /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path /usr/src/qemu-kvm-0.14.0+noroms
C compiler gcc
Host C compiler gcc
CFLAGS -O2 -g
QEMU_CFLAGS -m32 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits
LDFLAGS -Wl,--warn-common -m32 -g
make make
install install
host CPU i386
host big endian no
target list x86_64-softmmu
tcg debug enabled no
Mon debug enabled no
gprof enabled no
sparse enabled no
strip binaries yes
profiler no
static build no
-Werror enabled no
SDL support no
curses support yes
curl support no
check support no
mingw32 support no
Audio drivers oss
Extra audio cards ac97 es1370 sb16 hda
Block whitelist
Mixer emulation no
VNC TLS support no
VNC SASL support no
VNC JPEG support no
VNC PNG support no
VNC thread no
xen support no
CPU emulation yes
brlapi support no
bluez support no
Documentation no
NPTL support yes
GUEST_BASE yes
PIE user targets no
vde support no
IO thread no
Linux AIO support no
ATTR/XATTR support no
Install blobs yes
KVM support yes
KVM PIT support yes
KVM device assig. no
fdt support no
preadv support yes
fdatasync yes
madvise yes
posix_madvise yes
uuid support no
vhost-net support yes
Trace backend nop
Trace output file trace-<pid>
spice support no
rbd support no
xfsctl support no
ldm@ldm-TOP2:/usr/src/qemu-kvm-0.14.0+noroms$
===
然后make,成功,编译出了x86_64-softmmu/qemu-system-x86_64
如果想编qemu-system-arm,可以用如下命令
sudo ./configure --target-list=arm_softmmu
make
Error: libpci header check failed
sudo apt-cache search libpci
sudo apt-get install libpci-dev
正确的命令应该是
sudo ./configure --target-list=arm-softmmu
查看target-list的配置可以打开qemu源根目录下的configure文件,搜索target-list 关键字。
会在arm-softmmu目录下生成qemu-system-arm文件。
安装未执行。另外,./configure --prefix=目录,可以指定安装目录。
从配置时的输出消息中可以看到,安装目录默认为/usr/local
然后sudo ./configure 报告错误
===
Error: zlib check failed
Make sure to have the zlib libs and headers installed.
===
这需要安装zlib
用如下的命令
sudo apt-get install zlib1g-dev
安装好后,再运行configure,就会有下面的这堆配置。
===
ldm@ldm-TOP2:/usr/src/qemu-kvm-0.14.0+noroms$ sudo ./configure
Error: libpci header check failed
Disable KVM Device Assignment capability.
Install prefix /usr/local
BIOS directory /usr/local/share/qemu
binary directory /usr/local/bin
config directory /usr/local/etc
Manual directory /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path /usr/src/qemu-kvm-0.14.0+noroms
C compiler gcc
Host C compiler gcc
CFLAGS -O2 -g
QEMU_CFLAGS -m32 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits
LDFLAGS -Wl,--warn-common -m32 -g
make make
install install
host CPU i386
host big endian no
target list x86_64-softmmu
tcg debug enabled no
Mon debug enabled no
gprof enabled no
sparse enabled no
strip binaries yes
profiler no
static build no
-Werror enabled no
SDL support no
curses support yes
curl support no
check support no
mingw32 support no
Audio drivers oss
Extra audio cards ac97 es1370 sb16 hda
Block whitelist
Mixer emulation no
VNC TLS support no
VNC SASL support no
VNC JPEG support no
VNC PNG support no
VNC thread no
xen support no
CPU emulation yes
brlapi support no
bluez support no
Documentation no
NPTL support yes
GUEST_BASE yes
PIE user targets no
vde support no
IO thread no
Linux AIO support no
ATTR/XATTR support no
Install blobs yes
KVM support yes
KVM PIT support yes
KVM device assig. no
fdt support no
preadv support yes
fdatasync yes
madvise yes
posix_madvise yes
uuid support no
vhost-net support yes
Trace backend nop
Trace output file trace-<pid>
spice support no
rbd support no
xfsctl support no
ldm@ldm-TOP2:/usr/src/qemu-kvm-0.14.0+noroms$
===
然后make,成功,编译出了x86_64-softmmu/qemu-system-x86_64
如果想编qemu-system-arm,可以用如下命令
sudo ./configure --target-list=arm_softmmu
make
Error: libpci header check failed
sudo apt-cache search libpci
sudo apt-get install libpci-dev
正确的命令应该是
sudo ./configure --target-list=arm-softmmu
查看target-list的配置可以打开qemu源根目录下的configure文件,搜索target-list 关键字。
会在arm-softmmu目录下生成qemu-system-arm文件。
安装未执行。另外,./configure --prefix=目录,可以指定安装目录。
从配置时的输出消息中可以看到,安装目录默认为/usr/local
- qemu 编译
- Windows下编译QEMU
- 如何编译qemu-kvm
- QEMU编译问题
- 交叉编译qemu
- qemu编译&创建虚拟机
- QEMU编译及使用方法
- qemu-kvm编译错误
- qemu for windows编译
- 为fuchsia编译qemu
- ubuntu编译安装qemu
- QEMU编译及使用方法
- 用cygwin编译qemu源代码
- qemu的windows版本编译
- 搭建qemu windows编译环境
- 编译qemu时添加选项
- qemu编译运行的问题
- ubuntu14.04编译安装qemu
- MongoDB VS. MySQL
- MS Visio软件的XML文档结构
- HibernateUtil
- linux无线网卡驱动编译
- sharepoint:为页面中的list添加简单的item总数显示
- qemu 编译
- 知识扫盲_常用电平标准(TTL、CMOS、LVTTL、LVCMOS、ECL、PECL、LVPECL、RS232)
- 源代码获取的网站项目类库经常丢失并报错的解决方法
- GDB十分钟教程
- 5.21阿里面试
- C++编码规范与指导
- Oracle中sql语句及分析
- typedef
- 在线挂载虚拟磁盘流程