回复 6# leezhang
你不是想win7中安装吗?
看下面:
https://metacpan.org/pod/USB::LibUSB
On Windows you have to manually download the libusb binaries from http://libusb.info and extract them somewhere. Assuming that the location of the extracted libusb folder is C:\Users\simon\libusb-1.0, you need to set the USB_LIBUSB_INCLUDE and USB_LIBUSB_LIB environment variables as follows: 按下面方式修改环境变量。 > SET USB_LIBUSB_INCLUDE=-IC:\Users\simon\libusb-1.0\include\libusb-1.0
> SET USB_LIBUSB_LIB=-lC:\Users\simon\libusb-1.0\MinGW64\dll\libusb-1.0.dll.a
|
You will also need to add C:\Users\simon\libusb-1.0\MinGW64\dll
|
to the Path environment variable. The latest supported version of Strawberry Perl is 5.20. In our tests the build fails for newer versions. 这里说了,Strawberry Perl 5.20可以,更高的版本不可以。 Driver InstallationOn Windows you need an additional driver to use a device with libusb. See the Windows section in the libusb wiki. 在Win,你需要一个另外的驱动程序,为了利用libusb取使用一个设备。请参考维基libusb下的部分。
|