Just to let you know, I've send this email to the libusb mailing list.
---------- Forwarded message ----------
From: David Portabella Clotet <david.portabe...@gmail.com>
Date: Fri, Feb 6, 2009 at 11:14 PM
Subject: libusb-win32 & pyusb-0.4.1 for cygwin
To: libusb-win32-de...@lists.sourceforge.net
Hello,
I am having problems installing libusb and PyUSB for Cygwin.
Based on the README file of pyusb, I follow the steps:
-download and execute libusb-win32-filter-bin-0.1.12.1.exe from
http://libusb-win32.sourceforge.net
$ "/cygdrive/c/Program Files/LibUSB-Win32/bin/testlibusb.exe"
Dev #0: 0000 - 0000
Dev #1: Maxtor - Basics Desktop
Dev #2: 046D - 08B0
#libusb seems to work
-install cygwin
$ cp /cygdrive/c/Program\ Files/LibUSB-Win32/lib/gcc/libusb.a /usr/lib/
$ cp /cygdrive/c/Program Files/LibUSB-Win32/src/src/usb.h /usr/include/
-download http://sourceforge.net/projects/pyusb
$ tar -xvzf pyusb-0.4.1.tar.gz
$ cd pyusb-0.4.1
$ python setup.py install
running install
running build
running build_ext
running install_lib
running install_egg_info
Removing /usr/lib/python2.5/site-packages/pyusb-0.4.1-py2.5.egg-info
Writing /usr/lib/python2.5/site-packages/pyusb-0.4.1-py2.5.egg-info
$ ls -l /usr/lib/python2.5/site-packages/
total 2150
-rwxr-x---+ 1 Administrator Users 119 Dec 2 15:30 README
...
-rw-r--r-- 1 David None 385 Jan 28 19:38
pyusb-0.4.1-py2.5.egg-info
-rwxr-xr-x 1 David None 476414 Jan 26 21:21 usb.dll
++++++++++++++
So, the installation seems to work.
However, I try with:
$ cd /usr/lib/python2.5/site-packages/
$ echo "import usb" >test.py
$ python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
import usb
ImportError: No such file or directory
Using ldd.sh for cygwin here: http://lassauge.free.fr/cygwin/archive.htm
$ ldd.sh /usr/lib/python2.5/site-packages/usb.dll
C:\cygwin\lib\python2.5\site-packages\usb.dll
C:\cygwin\bin\cygwin1.dll
C:\WINDOWS\system32\ADVAPI32.DLL
C:\WINDOWS\system32\KERNEL32.dll
C:\WINDOWS\system32\ntdll.dll
C:\WINDOWS\system32\RPCRT4.dll
C:\WINDOWS\system32\Secur32.dll
Error: could not find cygusb0.dll
C:\cygwin\bin\libpython2.5.dll
It has a problem finding "cygusb0.dll".
What can be the problem?
Best regards,
DAvid
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Pyusb-users mailing list
Pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users