编译环境准备:
1)安装编译工具
sudo apt-get install autotools-dev devhelp doxygen pkg-config devscripts
编译安装spice-protocol
下载spice-protocol 0.12.12源代码
./configure
make
sudo make install
pkg-config –print-provides spice-protocol
安装编译spice所需要的第三方库
./configure –prefix=/usr –localstatedir=/var –sysconfdir=/etc
安装celt051
sudo apt-get install libogg-dev
wget -c http://downloads.us.xiph.org/releases/celt/celt-0.5.1.3.tar.gz
./configure
make
sudo make install
其中, asciidoc编译过程中产生问题,建议不要安装。
sudo apt-get install libglib2.0-dev libpixman-1-dev libssl-dev libjpeg-dev libgstreamer1.0-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libgstreamer-plugins-base1.0-dev libcacard-dev
sudo apt-get install dh-autoreconf libpixman-1-dev libxrandr-dev libasound2-dev libssl-dev libxfixes-dev libsasl2-dev libjpeg-dev libxinerama-dev python-pyparsing libglib2.0-dev
sudo apt-get install liblz4-dev
sudo apt-get install libopus-dev
sudo apt-get install asciidoc(建议不要安装)
sudo apt-get install libusbredirhost-dev libusrredirparser-dev usbredirserver
编译qemu
修改configure,其中有一部分是default 的值,用来设置编译支持选项:
linux_aio=”yes”
kvm=”yes”
spice=”yes”