<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 14px; font-family: "Microsoft YaHei UI"; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Thx a lot. </div><div>Finally, I use docker container fedora:37, install deps as @<span style="white-space: nowrap; font-weight: 700; background-color: transparent; font-size: 13px; font-family: "Microsoft YaHei UI", Tahoma;">Frediano Ziglio </span><span style="background-color: transparent;">said(in </span><span style="background-color: transparent; font-family: "Microsoft YaHei UI", Tahoma;">.gitlab-ci.yml file</span><span style="background-color: transparent;">). </span></div><div><span style="background-color: transparent;">Then build it as @</span><span style="background-color: transparent;"><b>Victor Toso </b>said, everything worked well. </span></div><div><span style="background-color: transparent;">Thanks for your reply.</span></div><div><span style="background-color: transparent;"><br></span></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>wangzhenghao@zuler.io</div></div></span></div>
<blockquote style="margin-Top: 0px; margin-Bottom: 0px; margin-Left: 0.5em; margin-Right: inherit"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:victortoso@redhat.com" class="">Victor Toso</a></div><div><b>Date:</b> 2023-02-07 20:48</div><div><b>To:</b> <a href="mailto:wangzhenghao@zuler.io">王正浩</a></div><div><b>CC:</b> <a href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a></div><div><b>Subject:</b> Re: [Spice-devel] How to compile spice-vd_agent?</div></div></div><div><div>Hi,</div>
<div> </div>
<div>On Tue, Feb 07, 2023 at 05:10:53PM +0800, 王正浩 wrote:</div>
<div>> Hi Team,</div>
<div>> I'd like to build my own spice-vd_agent(for windows 10). Is</div>
<div>> there any guide to build it? I failed to build it with</div>
<div>> mingw64 on ubuntu 20.04 and vs2019 on win10. </div>
<div>> On windows it blocked by " LNK1181: cannot open input file</div>
<div>> zlibwapi.lib", and on ubuntu it shows "configure: error:</div>
<div>> Package requirements (libpng) were not met:"</div>
<div> </div>
<div>That means you need to install libpng mingw version.</div>
<div> </div>
<div>> If I shouldn't ask this question here, Plz tell me the correct mail list.</div>
<div>> Thx a lot. </div>
<div> </div>
<div>You can ask, no problem.</div>
<div> </div>
<div>In my Fedora 37 box, as of now, I had to install</div>
<div>mingw64-libpng-static and mingw64-zlib-static. Build steps:</div>
<div> </div>
<div> $ autoreconf -if</div>
<div> $ mingw64-configure</div>
<div>...</div>
<div> vdagent-win 0.10.0.68-5017</div>
<div> ================</div>
<div> </div>
<div> prefix: /usr/x86_64-w64-mingw32/sys-root/mingw</div>
<div> datadir: /usr/x86_64-w64-mingw32/sys-root/mingw/share</div>
<div> compiler: x86_64-w64-mingw32-g++</div>
<div> cxxflags: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4</div>
<div> cppflags:</div>
<div> </div>
<div> $ mingw64-make</div>
<div>...</div>
<div> $ ll *.xe</div>
<div>.rwxr-xr-x@ 605k toso 7 Feb 13:45 -I vdagent.exe*</div>
<div>.rwxr-xr-x@ 210k toso 7 Feb 13:45 -I vdservice.exe*</div>
<div> </div>
<div> $ make msi</div>
<div>...</div>
<div> GEN spice-vdagent-x64-0.10.0.68-5017.msi</div>
<div> </div>
<div> </div>
<div>Feel free to submit a documentation patch for build process ;)</div>
<div> </div>
<div>Cheers,</div>
<div>Victor</div>
</div></blockquote>
</body></html>