Compiling QEMU with SPICE support

7,619

You need to install spice-protocol first. Unfortunately (atleast on 12.10) it is not available in the main repositories, so you will have to download and compile it:

wget http://spice-space.org/download/releases/spice-protocol-0.12.3.tar.bz2
tar -xjf spice-protocol-0.12.3.tar.bz2
cd spice-protocol*
./configure
make
sudo make install

If you prefer you can use git:

git clone git://git.freedesktop.org/git/spice/spice-protocol

If you have build-essentail installed, the compilation should go without any problem.

After this just proceed to the compilation of qemu enabling spice, passing --enable-spice to configure:

./configure --enable-spice
# make & make install

Hope this helps.

Share:
7,619
user1640204
Author by

user1640204

Updated on September 18, 2022

Comments

  • user1640204
    user1640204 over 1 year

    I am trying to compile QEMU 1.3 with Ubuntu 12.04 (Precise Pangolin) with SPICE enabled, but I get this error:

    ERROR
    ERROR: User requested feature spice
    ERROR: configure was not able to find it
    ERROR
    

    I have read around, and it seems I should edit the pkg configuration path. I am running Ubuntu, and I tried changing the pkg configuration, but I am guessing...help?

  • user1640204
    user1640204 over 11 years
    I have both installed spice-protocol and spice server: pkg-config spice-protocol --modversion 0.12.3 pkg-config spice-server --modversion 0.12.2
  • geethujoseph
    geethujoseph over 11 years
    what is the output of pkg-config --cflags spice-protocol spice-server?