Re: How to compile spice-vd_agent?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx
 
From: Victor Toso
Date: 2023-02-07 20:48
To: 王正浩
CC: spice-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: 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

[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]