X-Recipient: archive-cygwin@delorie.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: <AANLkTim9GD+uGWVAcCFqpEbOtbwDTAO2=kzp8zF--HY+@mail.gmail.com>
Subject: Fwd: [ctypes-users] pyusb under Cygwin and stdcall libusb-1.0
From: Xiaofan Chen <xiaofanc@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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 <Andrew.MacIntyre@acma.gov.au>
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 <xiaofanc@gmail.com>, ctypes-users@lists.sourceforge.net

On Tue, Jan 11, 2011 at 10:40 AM, Xiaofan Chen <xiaofanc@gmail.com> 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

