(1) sudo apt-get install build-essential autoconfgit-core libtool liblog4cpp5-dev libavcodec-dev libssl-devxlibmesa-glu-dev libasound-dev libpng12-dev libfreetype6-devlibfontconfig1-dev libogg-dev libxrandr-dev libgcrypt-devlibsdl-dev libnss3-dev libpixman-1-dev libxfixes-dev libsasl2-devpython-pyparsing
(2) 在/etc/apt/sources.list中添加deb-src http://http.us.debian.org/debian wheezy mainnon-free contrib
apt-get source libpixman-1-dev
cd pixman-0.22.2/
./configure
make
sudo make install
(3)
git clonegit://anongit.freedesktop.org/~alon/libcacard
cd libcacard
./autogen.sh
make
sudo make install
cd ..
(4)
wget http://spice-space.org/download/releases/spice-protocol-0.8.0.tar.bz2
tar xjvf spice-protocol-0.8.0.tar.bz2
cd spice-protocol-0.8.0
mkdir m4
./configure
make
sudo make install
cd ..
(5)
wget http://downloads.us.xiph.org/releases/celt/celt-0.5.1.3.tar.gz
tar xvzf celt-0.5.1.3.tar.gz
cd celt-0.5.1.3/
./configure
make
sudo make install
cd ..
(6) 正式编译spiceclient
wget http://spice-space.org/download/releases/spice-0.8.1.tar.bz2
tar xjvf spice-0.8.1.tar.bz2
cd spice-0.8.1
修改./configure:
15538 echo Only x86 and x86-64 are supported
15539exit 1(去掉这一行)
./configure --enable-smartcard
cd client
make
sudo make install
(7)解决运行时动态链接的问题
许多相关的动态库都放在/usr/local/lib中,所以需要在/etc/ld.so.conf.d/libc.conf中添加/usr/local/lib,并执行sudo ldconfig即可