[Spice-devel] Difficulty in building qemu with spice enabled

Songwen Liao songwen.liao at gmail.com
Mon Feb 21 18:57:41 PST 2011


Hi,
you should install spice-protocol.
download the spice-protocol-0.6.3.tar.gz or later,and run
configure;make;make install.
then install spice,it will be work for you.

thanks.

在 2011年2月22日 上午9:45,wangfeng wangfeng <wangfeng.v1.1985 at gmail.com>写道:

> hi,
> When I compile spice following the Building_Instructions,
> an error appears after " ./autogen.sh --prefix=$INST_ROOT " :
> ***************************************************
> ...
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking for x86 or x86-64 platform... 64 bit
> checking for native Win32... no
> checking for some Win32 platform... no
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for PROTOCOL... configure: error: Package requirements
> (spice-protocol >= 0.6.0) were not met:
>
> No package 'spice-protocol' found
>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
>
> Alternatively, you may set the environment variables PROTOCOL_CFLAGS
> and PROTOCOL_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> ************************************************************************
> How can I solve the problem?
>
> 2011/2/21 Songwen Liao <songwen.liao at gmail.com>
>
> Hi,
>> If you just compile the spice server,there is no spice-server.pc in your
>> PKG_CONFIG_PATH.
>> So,you can find the .pc file and move it to your PKG_CONFIG_PATH or the
>> standard path.
>> just let the qemu can find spice-server library..
>>
>> thanks.
>>
>> ---------------------------------------------------------------
>>
>>> Message: 2
>>> Date: Mon, 21 Feb 2011 13:05:37 +0100 (CET)
>>> From: Fr?d?ric Grelot <fredericg_99 at yahoo.fr>
>>> Subject: [Spice-devel] Difficulty in building qemu with spice enabled
>>> To: spice-devel at freedesktop.org
>>> Message-ID: <b997c0e5-a178-4fd0-b354-a69aad385e48 at zimbra.grelot.net>
>>> Content-Type: text/plain; charset=utf-8
>>>
>>>
>>> Hello everyone,
>>>
>>> Because of a bug I mentioned on the virt at lists.fedoraproject.org mailing
>>> list (available here :
>>> http://lists.fedoraproject.org/pipermail/virt/2011-February/002539.html), I tried to manually build my own copy of qemu-kvm, with spice enabled.
>>> I'm not sure if that is a "./configure" pre-requisite problem, but I
>>> spent few hours before understanding the following message :
>>> ./configure --enable-spice
>>> ERROR
>>> ERROR: User requested feature spice
>>> ERROR: configure was not able to find it
>>> ERROR
>>>
>>> So, for information to anyone encountering the same problem : this does
>>> not mean that your source repository hasn't got the feature, but this means
>>> that pkg-config could not find the "spice-server" description file.
>>> In my case, I had to set "PKG_CONFIG_PATH=/usr/local/lib/pkg-config"
>>> before launching configure.
>>>
>>> Maybe this information can find a place on the wiki... I'll see if I have
>>> time to do it tomorrow.
>>>
>>> Frederic.
>>>
>>> PS : By the way, after building qemu by myself (tag spice.kvm.v28 from
>>> git), the above-mentioned bug was solved.
>>>
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Spice-devel mailing list
>>> Spice-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>>>
>>>
>>> End of Spice-devel Digest, Vol 13, Issue 81
>>> *******************************************
>>>
>>
>>
>>
>> --
>> Name:   Kyle
>>
>> -----------------------------------------------------------------------------------------------
>> Mobile:  15800910495
>> Msn:    liaosongwen at live.cn
>>
>>
>> _______________________________________________
>> Spice-devel mailing list
>> Spice-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>>
>>
>


-- 
Name:   Kyle
-----------------------------------------------------------------------------------------------
Mobile:  15800910495
Msn:    liaosongwen at live.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110222/413439fc/attachment-0001.htm>


More information about the Spice-devel mailing list