X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_BF,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Tue, 11 Jan 2011 13:37:05 +0800 Message-ID: Subject: Fwd: [ctypes-users] pyusb under Cygwin and stdcall libusb-1.0 From: Xiaofan Chen To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Just wondering if I can have the answer here. Thanks. Please CC me as I am not subscribed. Thanks. --=20 Xiaofan ---------- Forwarded message ---------- From: Andrew MacIntyre Date: Tue, Jan 11, 2011 at 1:24 PM Subject: RE: [ctypes-users] pyusb under Cygwin and stdcall libusb-1.0 [SEC=3DUNCLASSIFIED] To: Xiaofan Chen , ctypes-users AT lists DOT sourceforge DOT net On Tue, Jan 11, 2011 at 10:40 AM, Xiaofan Chen wrote: > http://sourceforge.net/mailarchive/message.php?msg_id=3D26873757 > 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=3D26873777 > > 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 =3D=3D 'posix' under Cygwin Python. > I have updated Cygwin installation to the latest version. > > Just wondering why Ctypes under Cygwin does not support > WinDLL? Take note os.name =3D=3D 'posix' under Cygwin Python. That really is a question for the maintainer of Python on Cygwin. =A0It may be because the necessary libffi plumbing isn't in yet place on that platform. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple