<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div><br></div><p>Hi<br></p><br><blockquote cite="mid:1575837565.3954049.1527167337081.JavaMail.zimbra@redhat.com"><div style="font-family: times new roman, new york, times, serif;
        font-size: 12pt; color: #000000"><blockquote style="border-left:2px solid
#1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div><br></div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello, everyone!</div><div>      I build spice vdagent as [1] in fedora28, but it
              failed as [2], I'm a truly newbie in windows,</div><div>that's helped if I can get some document or a build
              flow. </div><br><div>[1]</div><div># sudo apt-get install mingw-w64-x86-64
              mingw64-filesystem mingw64-cximage-static
              mingw64-jasper-static mingw64-libjpeg-turbo-static
              mingw64-libpng-static mingw64-libtiff-static
              mingw64-zlib-static mingw64-winpthreads-static</div><div><br></div><div># ./autogen.sh</div><div><br></div><div># ./configure
              CXXFLAGS=-I/usr/x86_64-w64-mingw32/sys-root/mingw/include
CXIMAGE_CFLAGS=-I/usr/x86_64-w64-mingw32/sys-root/mingw/include/CxImage
              CXIMAGE_LIBS=-ljasper -ljpeg -lpng -ltiff -lz -lcximage
              LDFLAGS=-L/usr/x86_64-w64-mingw32/sys-root/mingw/lib
              CXX=x86_64-w64-mingw32-g++ CC=gcc</div></div></blockquote><div>CxImage requirement was removed time ago using libpng
          directly (also considering that CxImage is not more maintained
          and contains security issues).<br></div><div>Why you are passing CXIMAGE flags?<br></div><div>To cross compile is better to use the --host option, like<br></div><div><br></div><div> ./configure --host=x86_64-w64-mingw32</div><div><br></div><div>in Fedora there's a very useful script called
          "mingw32-configure" (or "mingw64-configure") which calls
          configure with the correct<br></div><div>settings to cross compile with MingW<br></div><div><br></div></div></blockquote><br>
    thx, it works well in master branch.<br><br><blockquote cite="mid:1575837565.3954049.1527167337081.JavaMail.zimbra@redhat.com"><div style="font-family: times new roman, new york, times, serif;
        font-size: 12pt; color: #000000"><blockquote style="border-left:2px solid
#1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>add follows to Makefile:</div><div><div>WINDRES = x86_64-w64-mingw32-windres</div><div>EXEEXT = .exe</div></div><div><br></div><div># make</div><div><br></div><div>[2]</div><div><div>[pencc@localhost vdagent-win-0.8.0]$ make</div><div>make  all-recursive</div><div>  CXX      vdagent-vdcommon.o</div><div>  CXX      vdagent-vdlog.o</div><div>  CXX      vdagent-display_configuration.o</div><div>  CXX      vdagent-desktop_layout.o</div><div>  CXX      vdagent-display_setting.o</div><div>  CXX      vdagent-file_xfer.o</div><div>  CXX      vdagent-vdagent.o</div><div>  CXX      vdagent-as_user.o</div><div>  GEN      vdagent_rc.o</div><div>  CXXLD    vdagent.exe</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libtiff.a(tif_win32.o):(.text+0x7f0):
                multiple definition of `_TIFFmalloc'</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcximage.a(tif_xfile.o):(.text+0x2d0):
                first defined here</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libtiff.a(tif_win32.o):(.text+0x830):
                multiple definition of `_TIFFfree'</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcximage.a(tif_xfile.o):(.text+0x2e0):
                first defined here</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libtiff.a(tif_win32.o):(.text+0x840):
                multiple definition of `_TIFFrealloc'</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcximage.a(tif_xfile.o):(.text+0x2f0):
                first defined here</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libtiff.a(tif_win32.o):(.text+0x850):
                multiple definition of `_TIFFmemset'</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcximage.a(tif_xfile.o):(.text+0x300):
                first defined here</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libtiff.a(tif_win32.o):(.text+0x860):
                multiple definition of `_TIFFmemcpy'</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcximage.a(tif_xfile.o):(.text+0x310):
                first defined here</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libtiff.a(tif_win32.o):(.text+0x870):
                multiple definition of `_TIFFmemcmp'</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcximage.a(tif_xfile.o):(.text+0x320):
                first defined here</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libtiff.a(tif_win32.o):(.data+0x0):
                multiple definition of `_TIFFerrorHandler'</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcximage.a(tif_xfile.o):(.data+0x0):
                first defined here</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libtiff.a(tif_win32.o):(.data+0x8):
                multiple definition of `_TIFFwarningHandler'</div><div>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcximage.a(tif_xfile.o):(.data+0x8):
                first defined here</div><div>/tmp/cc9kug4b.ltrans1.ltrans.o:<artificial>:(.text+0x1113):
                undefined reference to `__imp_CreateDCW'</div></div></div></blockquote><div>Why using LTO?<br></div><div>Looks like you are using an older version, looking at your
          previous e-mail you<br></div><div>have the correct git repository but you are not using
          master.<br></div></div></blockquote><br>
        I download it from
    <a class="moz-txt-link-freetext" href="https://www.spice-space.org/download/windows/vdagent/vdagent-win-0.8.0/" target="_blank">https://www.spice-space.org/download/windows/vdagent/vdagent-win-0.8.0/</a>,<br>
    and we are using the vdagent provided by
    oVirt-toolsSetup-4.2-1.el7.centos.iso, is the vdagent build <br>
    from master code will works well with the other program provided by
    oVirt-toolsSetup-4.2-1.el7.centos.iso?<br>
    if so, we can use the newest version rather than
    vdagent-win-0.8.0(or others version).<br></blockquote><div>Yes, is full compatible.</div><div><br></div><div>Frediano<br></div></div></body></html>