|
StrawberryPerlInstallation
IntroductionAlthough the Device::USB project was orignally developed on Linux, this has not stopped Windows developers from wanting to access their USB devices. Strawberry Perl actually makes this fairly easy. Pre-RequisitesBefore installing Device::USB, you will need a few other things first.
If you are on this page, you have probably already accomplished step 1. The second step provides the library needed to talk to USB hardware of all types. Device::USB provides a Perl wrapper for this library. Step three is needed in order to do an installation with an Inline::C module. InstallationOnce you have the pre-requisites taken care of, the installation is really straight-forward. Since Windows does not really have a standard directory structure for include files and libraries, we need to tell the Device::USB installation where to find these files for libusb-win32.
cd C:\TEMP set LIBUSB_INCDIR=\Program Files\LibUSB-Win32\include
set LIBUSB_LIBDIR=\Program Files\LibUSB-Win32\lib\gcccpan Device::USB This should complete successfully and Device::USB will be available. An easy test is to use perldoc to verify that the POD has been installed. perldoc Device::USB |