delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/01/11/00:37:21

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: <AANLkTim9GD+uGWVAcCFqpEbOtbwDTAO2=kzp8zF--HY+@mail.gmail.com>
Subject: Fwd: [ctypes-users] pyusb under Cygwin and stdcall libusb-1.0
From: Xiaofan Chen <xiaofanc AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <Andrew DOT MacIntyre AT acma DOT gov DOT 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 AT gmail DOT com>, ctypes-users AT lists DOT sourceforge DOT net

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019