QEMU在ARM-Ubuntu-18.04上编译安装
一、解压qemu源码4.0.0
1、./configure --prefix=/usr --target-list="arm-softmmu,i386-softmmu,\
x86_64-softmmu,arm-linux-user,i386-linux-user,x86_64-linux-user" \
--enable-rbd --enable-debug --enable-vnc --enable-vnc-jpeg\
--enable-vnc-png --enable-kvm --enable-spice --enable-curl\
--enable-snappy --enable-tools --enable-libusb --enable-usb-redir
遇到的错误
1、ERROR: Python not found. Use --python=/path/to/python
解决:apt-get install python
2、ERROR: "cc" either does not exist or does not work
解决:apt install gcc
3、ERROR: "cc" cannot build an executable (is your linker broken?)
解决: apt-get install libc6=2.27-3ubuntu1.5
apt-get install libc6-dev
apt-get install libpcre3=2:8.39-9
apt-get install libpcre3-dev
apt-get install zlib1g=1:1.2.11.dfsg-0ubuntu2
apt-get install git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev
4、ERROR: User requested feature libsnappy
Install libsnappy devel
解决:apt install libsnappy-dev
5、ERROR: User requested feature vnc-jpeg
Install libjpeg-turbo devel
解决:apt-get install libjpeg-dev
6、ERROR: User requested feature vnc-png
Install libpng devel
解决:apt install libpng-dev
7、ERROR: User requested feature curl
Install libcurl devel
解决: apt install libcurl4=7.58.0-2ubuntu3.16
apt install libcurl4-openssl-dev
8、ERROR: User requested feature rados block device
Install librbd/ceph devel
解决: apt-get install librbd-dev
9、ERROR: User requested feature spice
解决: Install spice-server(>=0.12.5) and spice-protocol(>=0.12.3) devel
10、 ERROR: User requested feature spice
需要安装spice-server 和spice-protocol
http://spice-space.org/download/releases/
分别解压 配置安装 spice-server
tar -xjf spice-0.12.2.tar.bz2
cd spice-0.12.2
./configure
make;make install
checking for CELT051... no
configure: error: Package requirements (celt051 >= 0.5.1.1) were not met:
10.1、No package 'celt051' found
下载地址celt_0.5.1.3.orig.tar.gz https://launchpad.net/~dev-zero/+archive/spice/+packages
同样解压 configure build=arm-linux ; make; make install
10.2、configure: error: Package requirements (openssl) were not met
apt-get install libssl-dev
10.2.1 Depends: libssl1.1 (= 1.1.1-1ubuntu2.1~18.04.14)
10.3、Missing required Cyrus SASL development package
apt-get install libsasl2-dev
11、ERROR: User requested feature libusb
Install libusb devel >= 1.0.13
下载 http://libusb.info/ 解压
./configure, make, make install
error: udev support requested but libudev header not installed
apt-get install libudev-dev
Depends: libudev1 (= 237-3ubuntu10.53) but 237-3ubuntu10.56 is to be installed
12、ERROR: User requested feature usb-redir
Install usbredir devel
下载https://gitlab.freedesktop.org/spice/usbredir/-/releases
解压编译安装 ./configure, make , make install
[1]: cnblogs.com/elian91/p/15890808.html gnutls安装参考

本文档详细介绍了如何在ARM架构的Ubuntu 18.04系统上编译和安装QEMU 4.0.0。在解压源码过程中,可能会遇到一些问题,但通过参考gnutls的安装教程,可以解决这些问题。
2111

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



