Re: How to compile spice-vd_agent?

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



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

    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

   $ 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-

Feel free to submit a documentation patch for build process ;)


Attachment: signature.asc
Description: PGP signature

[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]