pyusb under Cygwin and stdcall libusb-1.0
Xiaofan Chen <[email protected]> Tue, 11 Jan 2011 10:40:12 +0800
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
http://sourceforge.net/mailarchive/message.php?msg_id=26873757 There seems to be problems to get pyusb to work under Cygwin. The author asks if Cygwin libusb-1.0 should use stdcall or not? http://sourceforge.net/mailarchive/message.php?msg_id=26873777 Normal Python under Windows can support either cdecl (CDLL) or stdcall (WinDLL). The problem is that Cygwin Ctypes only supports cdecl. Therefore it is not possible to load cygusb-1.0.dll and pyusb's libusb-1.0 backend will not work under Cygwin as a result. Just wondering why Ctypes under Cygwin does not support WinDLL? Take note os.name == 'posix' under Cygwin Python. I have updated Cygwin installation to the latest version. -- 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