Skip to contentSkip to conversation

How to build qga-vss.dll?

Qemu-devel Markus Armbruster 3 participants 4 messages Jun 20, 2015 – Jun 23, 2015

lore
Share & tools
lore
#0 lore raw

There's qga/vss-win32/Makefile.objs, and it appears to have a recipe for qga-vss.dll, but I can't figure out how to actually get make to build it. I'm cross-compiling with mingw (for compile-testing purposes only), I got CONFIG_QGA_VSS=y, make succeeds and produces the usual stuff, but compiles nothing in qga/vss-win32. Please advise.

#1 lore raw

Hi Markus,

The steps to build qga-vss.dll are:

- Install some MinGW library packages: When I tested in fedora22, I need mingw32-winpthreads-static package in addition to packages on the qemu wiki page: http://wiki.qemu.org/Hosts/W32

- Download Microsoft VSS SDK from:
http://www.microsoft.com/en-us/download/details.aspx?id=23490

- Extract the SDK
scripts/extract-vsssdk-headers setup.exe (on POSIX-systems) -> extracted into "inc" directory

- Specify installed SDK directory to configure option as:

   ./configure --cross-prefix=i686-w64-mingw32- \
               --with-vss-sdk=inc

- make qemu-ga.exe qga/vss-win32/qga-vss.{dll,tlb}

I hope this helps.

Thanks,
Tomoki
________________________________________
From: Markus Armbruster [[email protected]]
Sent: Saturday, June 20, 2015 5:30 AM
To: Tomoki Sekiyama
Cc: [email protected]; Michael Roth
Subject: How to build qga-vss.dll?

There's qga/vss-win32/Makefile.objs, and it appears to have a recipe for qga-vss.dll, but I can't figure out how to actually get make to build it. I'm cross-compiling with mingw (for compile-testing purposes only), I got CONFIG_QGA_VSS=y, make succeeds and produces the usual stuff, but compiles nothing in qga/vss-win32. Please advise.

#2 lore raw
Quoted 15 lines · Tomoki Sekiyama

Hi Markus,

The steps to build qga-vss.dll are:

- Install some MinGW library packages: When I tested in fedora22, I need mingw32-winpthreads-static package in addition to packages on the qemu wiki page: http://wiki.qemu.org/Hosts/W32

- Download Microsoft VSS SDK from:

   http://www.microsoft.com/en-us/download/details.aspx?id=23490

- Extract the SDK
scripts/extract-vsssdk-headers setup.exe (on POSIX-systems) -> extracted into "inc" directory

Quoted 7 lines

- Specify installed SDK directory to configure option as:

   ./configure --cross-prefix=i686-w64-mingw32- \
               --with-vss-sdk=inc

- make qemu-ga.exe qga/vss-win32/qga-vss.{dll,tlb}

I hope this helps.

It does, thanks!

#3 lore raw
Quoted 17 lines · Markus Armbruster
Quoted 15 lines · Tomoki Sekiyama

Hi Markus,

The steps to build qga-vss.dll are:

- Install some MinGW library packages: When I tested in fedora22, I need mingw32-winpthreads-static package in addition to packages on the qemu wiki page: http://wiki.qemu.org/Hosts/W32

- Download Microsoft VSS SDK from:

    http://www.microsoft.com/en-us/download/details.aspx?id=23490

- Extract the SDK
scripts/extract-vsssdk-headers setup.exe (on POSIX-systems) -> extracted into "inc" directory

Quoted 8 lines
Quoted 7 lines

- Specify installed SDK directory to configure option as:

    ./configure --cross-prefix=i686-w64-mingw32- \
                --with-vss-sdk=inc

- make qemu-ga.exe qga/vss-win32/qga-vss.{dll,tlb}

I hope this helps.

It does, thanks!

To build it I used --with-vss-sdk option, without it my qga/vss-win32 directory was empty.

Quoted 1 line