使用 SPICE 支持编译 QEMU

使用 SPICE 支持编译 QEMU

我正在尝试编译 QEMU 1.3Ubuntu 12.04(精准穿山甲)香料已启用,但出现此错误:

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

我读了一遍,似乎应该编辑 pkg 配置路径。我正在运行 Ubuntu,并尝试更改 pkg 配置,但我猜...有帮助吗?

答案1

您需要spice-protocol先安装。不幸的是(至少在 12.10 上)它在主存储库中不可用,因此您必须下载并编译它:

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

如果你愿意,你可以使用 git:

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

如果您已经build-essentail安装,则编译应该不会有任何问题。

此后,只需继续编译 qemu 并启用 spice,然后进行--enable-spiceconfigure:

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

希望这可以帮助。

答案2

现在(2021 年)有适用于 Ubuntu 的 spice 包。使用这些

sudo apt install libspice-protocol-dev
sudo apt install libspice-server-dev

记得使用 --enable-spice 配置 qemu。

作为参考,这些是我拥有的与香料相关的包装。

username@username-H81 ~/b/q/qemu (master)> apt list --installed | grep spice

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libspice-client-glib-2.0-8/groovy,now 0.38-2ubuntu1 amd64 [installed,automatic]
libspice-client-gtk-3.0-5/groovy,now 0.38-2ubuntu1 amd64 [installed,automatic]
libspice-protocol-dev/groovy,groovy,now 0.14.1-2 all [installed]
libspice-server-dev/groovy,now 0.14.3-1ubuntu2 amd64 [installed]
libspice-server1/groovy,now 0.14.3-1ubuntu2 amd64 [installed,automatic]
spice-client-glib-usb-acl-helper/groovy,now 0.38-2ubuntu1 amd64 [installed,automatic]
spice-client-gtk/groovy,now 0.38-2ubuntu1 amd64 [installed]
spice-vdagent/groovy-security,groovy-updates,now 0.20.0-1ubuntu0.1 amd64 [installed]
spice-webdavd/groovy,now 2.5-1 amd64 [installed]

相关内容