[virt-tools-list] Compiling for USB Redirection support in Windows

Victor Toso victortoso at redhat.com
Fri May 22 09:52:02 UTC 2015


On Fri, May 22, 2015 at 07:22:33AM +0000, Charlie Benger-Stevenson wrote:
> Hi,
> I am coming here first as I don't really know where else to turn, and
> you were extremely helpful yesterdday. I am literally losing days of
> my life on this, and I am sure it should not be this hard.
> On your advice I have tried to cross compile spice-gtk for usbredir
> support. I cannot get past the configure stage.

That's odd. I'm trying here in my local computer:
- First you download the dependencies, I don't have the mingw32-usbredir
  so I've installed it with `dnf install mingw32-usbredir`

At spice-gtk folder:
$ mingw32-configure --with-usbredir=yes
the summary in the end shows 'USB redirection support: yes'
$ make && sudo make install

Now you have mingw32 spice-gtk. You can check with
$ mingw32-pkg-config --modversion spice-client-gtk-3.0.pc

> I have built a new VM for doing the compiling and installed MingW
> (which is supposed to be everything you need for cross compiling),
> then I installed all of the dependancies (including optional ones)
> as listed on the spice-gtk github readme file.

Did you installed the mingw ones?

> Still I cannot get past the configure stage :
> "No package pixman-1 found. Consider adjusting the PKG_CONFIG_PATH
> environment variable if you installed software in a non standard prefix."
> Well I don't know what they mean by a non standard prefix, this is all
> shiny and freshly built from scratch yesterday, so about a standard as
> you can get.

mingw32-configure sets the environment variables that you need,
including PKG_CONFIG_PATH. So, if you have installed mingw32-gtk3 it
will be insalled in mingw path and when you cross-compile it will look
for packages there.

> Can you help point me in the right direction? Or better yet, ask
> someone to simply provide a version of virt-viewer for windows that
> does have usb redirection compiled in?

Christophe provided the spice-gtk rpm with usbredirection enable.
I hope this steps can help you,

Victor Toso

More information about the virt-tools-list mailing list