接下来要编译的是Usbredir,在编译之前大致介绍一下什么是Usbredir:
usbredir is the name of a networkprotocol for sending usb device traffic over a network connection. It is alsothe name of the software package offering a parsing library,a usbredirhostlibrary and several utilities implementing this protocol.
也就是说,usbredir是通过网络连接将USB设备的数据包从主机端通过网络协议(现在一般是TCP/IP)发给客户机(虚拟机),它包括一个USB协议的解析库,主机库和其他一些工具。Usbredir是spice社区为了支持USB设备的重定向而开发的,下面网址是关于它的一个协议介绍:http://cgit.freedesktop.org/~jwrdegoede/usbredir/tree/usb-redirection-protocol.txt
同样,我们首先从https://launchpad.net/debian/+source/usbredir/0.6-2获得源码包:
Usbredir_0.6-2.debian.tar.gz,usbredir_0.6-2.dsc和usbredir_0.6.orig.tar.bz2
下载以后将上述三个文件上传至编译目录: ~/workroom/usbredir/。
用下面的命令解开源码: