The Configure command executed prior to compiling the Virt viewer is not capable of usb-redir related functions, Virt Viewer support Usbredir is completely dependent on SPICE-GTK.
Virt Viewer's dependency on SPICE-GTK can be seen from the configure results of the Virt Viewer:
[HTML]View Plaincopy
- Configure:configuration Summary
- Configure: =====================
- Configure
- Configure:features:
- Configure
- configure:gtk:3.0
- Configure
- Configure:libraries:
- Configure
- CONFIGURE:GLIB2:-PTHREAD-I/USR/INCLUDE/GLIB-2.0-I/USR/LIB/I386-LINUX-GNU/GLIB-2.0/INCLUDE-PTHREAD-WL,--Expo Rt-dynamic
- -lgthread-2.0-lgmodule-2.0-lrt-lglib-2.0
- Configure
- CONFIGURE:GTK:-pthread-i/usr/include/gtk-3.0-i/usr/include/pango-1.0-i/usr/include/gio-unix-2.0/-I/usr/incl ude/atk-1.0
- -i/usr/include/cairo-i/usr/include/gdk-pixbuf-2.0-i/usr/include/freetype2-i/usr/include/glib-2.0
- -i/usr/lib/i386-linux-gnu/glib-2.0/include-i/usr/include/pixman-1-i/usr/include/libpng12-lgtk-3-lgdk-3- latk-1.0-lgio-2.0
- -lpangocairo-1.0-lgdk_pixbuf-2.0-lcairo-gobject-lpango-1.0-lcairo-lgobject-2.0-lglib-2.0
- Configure
- CONFIGURE:GTK_VNC:
- Configure
- CONFIGURE:SPICE_GTK:-pthread-i/usr/local/include/spice-client-gtk-3.0-i/usr/local/include/ spice-client-glib-2.0
- -i/usr/local/include-i/usr/local/include/spice-1-i/usr/include/gtk-3.0-i/usr/include/pango-1.0-i/usr/include/ gio-unix-2.0/
- -i/usr/include/atk-1.0-i/usr/include/cairo-i/usr/include/gdk-pixbuf-2.0-i/usr/include/freetype2-i/usr/include/ glib-2.0
- -i/usr/lib/i386-linux-gnu/glib-2.0/include-i/usr/include/pixman-1-i/usr/include/libpng12-l/usr/local/lib- lspice-client-gtk-3.0
- -lgtk-3-lspice-client-glib-2.0-lgdk-3-latk-1.0-lgio-2.0-lpangocairo-1.0-lgdk_pixbuf-2.0-lcairo-gobject- Lpango-1.0-lcairo
- -lgobject-2.0-lglib-2.0
- Configure
- CONFIGURE:LIBXML2:-I/USR/INCLUDE/LIBXML2-LXML2
- Configure
- Configure:libvirt:-I/USR/LOCAL/INCLUDE-L/USR/LOCAL/LIB-LVIRT-LDL
- Configure
- Configure:ovirt:
- Configure
Where spice-client-gtk-3.0 and spice-client-glib-2.0 are compiled results of SPICE-GTK.
Version
Spice-gtk-0.20.tar
Virt-viewer-0.5.6.tar.gz
Compiling Libusbredir
You can download the latest version in Http://www.spicespace.org/page/UsbRedir
[HTML]View Plaincopy
- ./configure
- Make
- sudo make install
Compiling SPICE-GTK
In order to enable Usbredir in the Virt Viewer, it is necessary to correctly compile Spice-gtk,--enable-usbdir=yes to enable Usbredir
[HTML]View Plaincopy
- ./configure --with-gtl=3.0 --with-audio=gstreamer --enable-usbdir=Yes -- enable-smartcard=Yes
- Make
- Make install
Make installs the SPICE-GTK compiled library, header files and so on to the system, Virt Viewer compilation relies on these libraries and header files.
Compiling Virt Viewer
[HTML]View Plaincopy
- ./configure --with-gtk=3.0--with-spice-gtk
- Make
- Make install
sudo./remote-viewer, use sudo to execute remote-viewer, because to operate USB, Superuser privileges are required.
If it goes well, you can see the "USB Device Selection" option under the File menu after performing Remote-viewer.
Virt Viewer Usbredir USB redirection