On Sat, Jan 8, 2011 at 10:04 PM, wander.lairson
<wander.lair...@gmail.com> wrote:

> Revision 89 fixed libusb-win32 under cygwin. I still have problems
> with libusb-1.0 official cygwin build, it feels like there is no
> symbol exported:
>
> $ objdump.exe -T /usr/bin/cygusb-1.0.dll
>
> /usr/bin/cygusb-1.0.dll:     file format pei-i386
>
> objdump: /usr/bin/cygusb-1.0.dll: not a dynamic object
> DYNAMIC SYMBOL TABLE:
> no symbols
>
> I haven't tried to compile libusb 1.0 from sources.
>

Maybe this is not the real problem. It is the same for cygusb0.dll
(Cygwin libusb-win32).
mc...@mcuee-pc-win7 ~
$ objdump -T /usr/bin/cygusb0.dll

/usr/bin/cygusb0.dll:     file format pei-i386

objdump: /usr/bin/cygusb0.dll: not a dynamic object
DYNAMIC SYMBOL TABLE:
no symbols

Plain Python under Windows 7 32bit.
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import usb.core
>>> import usb.backend.libusb10
>>> a=usb.backend.libusb10.get_backend()
>>> a
<usb.backend.libusb10._LibUSB object at 0x017A30D0>
>>>

Cygwin under Windows 7 32bit.

It seems to my Cygwin Ctypes does not have WinDLL.
I am not so sure if this is the problem. Last time I
rebuilt libusb-1.0 using cdecl, now it only supports
stdcall under Windows.

mc...@mcuee-pc-win7 /cygdrive/d/work/pyusb/pyusb
$ python
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
[GCC 4.3.4 20090804 (release) 1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import usb.core
>>> import usb.backend.libusb10
>>> a=usb.backend.libusb10.get_backend()
2011-01-10 20:28:33,067 ERROR:usb.backend.libusb10:Error loading libusb 1.0 back
end
Traceback (most recent call last):
  File "usb/backend/libusb10.py", line 601, in get_backend
    _setup_prototypes(_lib)
  File "usb/backend/libusb10.py", line 175, in _setup_prototypes
    lib.libusb_set_debug.argtypes = [c_void_p, c_int]
  File "/usr/lib/python2.6/ctypes/__init__.py", line 366, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.6/ctypes/__init__.py", line 371, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'libusb_set_debug' not found (▒▒⌂)




-- 
Xiaofan

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to