[Spice-devel] How to compile spice-vd_agent?

王正浩 wangzhenghao at zuler.io
Wed Feb 8 05:14:35 UTC 2023


Thx a lot. 
Finally, I use docker container fedora:37, install deps as @Frediano Ziglio said(in .gitlab-ci.yml file). 
Then  build it as @Victor Toso said, everything worked well. 
Thanks for your reply.



wangzhenghao at zuler.io
 
From: Victor Toso
Date: 2023-02-07 20:48
To: 王正浩
CC: spice-devel at lists.freedesktop.org
Subject: Re: [Spice-devel] How to compile spice-vd_agent?
Hi,
 
On Tue, Feb 07, 2023 at 05:10:53PM +0800, 王正浩 wrote:
> Hi Team,
>     I'd like to build my own spice-vd_agent(for windows 10). Is
>     there any guide to build it?  I failed to build it with
>     mingw64 on ubuntu 20.04 and vs2019 on win10. 
>     On windows it blocked by " LNK1181: cannot open input file
>     zlibwapi.lib", and  on ubuntu it shows "configure: error:
>     Package requirements (libpng) were not met:"
 
That means you need to install libpng mingw version.
 
>     If I shouldn't ask this question here, Plz tell me the correct mail list.
>     Thx a lot. 
 
You can ask, no problem.
 
In my Fedora 37 box, as of now, I had to install
mingw64-libpng-static and mingw64-zlib-static. Build steps:
 
    $ autoreconf -if
    $ mingw64-configure
...
    vdagent-win 0.10.0.68-5017
    ================
 
    prefix:   /usr/x86_64-w64-mingw32/sys-root/mingw
    datadir:  /usr/x86_64-w64-mingw32/sys-root/mingw/share
    compiler: x86_64-w64-mingw32-g++
    cxxflags: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
    cppflags:
 
   $ mingw64-make
...
   $ ll *.xe
.rwxr-xr-x@ 605k toso  7 Feb 13:45   -I  vdagent.exe*
.rwxr-xr-x@ 210k toso  7 Feb 13:45   -I  vdservice.exe*
 
   $ make msi
...
    GEN      spice-vdagent-x64-0.10.0.68-5017.msi
 
 
Feel free to submit a documentation patch for build process ;)
 
Cheers,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20230208/2126c0c3/attachment.htm>


More information about the Spice-devel mailing list