kenichi_cui | 1 Apr 01:44 2010
Picon

Re: libusb-1.0 windows backend now in Cygwin packages


hello:

I have installed libusb-1.0 under cgywin, and port the sample code from
linux . 
compile proccess is success. but after run, I found that libusb_init()
return -99.
who know the reason ?

Xiaofan Chen wrote:
> 
> I accidentally found out libusb-1.0 Windows Backend is already inside
> Cygwin packages yesterday during an installation of Cygwin.
> http://www.cygwin.com/ml/cygwin-announce/2010-03/msg00005.html
> http://cygwin.com/cgi-bin2/package-grep.cgi?grep=libusb
> 
> I have not tried it yet. The version is called
> libusb1.0-1.0.5+git03e9371a.
> 
> -- 
> Xiaofan http://mcuee.blogspot.com
> 
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Libusb-devel mailing list
(Continue reading)

Michael Plante | 1 Apr 01:50 2010
Picon

Re: libusb-1.0 windows backend now in Cygwin packages

kenichi_cui wrote:
>> I have installed libusb-1.0 under cgywin, and port the sample code from
>> linux . 

What version of libusb-1.0?  Ideally, a commit hash would help here...

>> compile proccess is success. but after run, I found that libusb_init()
>> return -99.
>> who know the reason ?

Turn on debug logging?

Michael

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Xiaofan Chen | 1 Apr 02:12 2010
Picon

Re: libusb-1.0 windows backend now in Cygwin packages

On Thu, Apr 1, 2010 at 7:44 AM, kenichi_cui <cxx_0627 <at> hotmail.com> wrote:

> I have installed libusb-1.0 under cgywin, and port the sample code from
> linux. compile proccess is success. but after run, I found that libusb_init()
> return -99. who know the reason ?
>

Are you using the version from Cygwin? If that is the case, it is
quite an old version. As per Pete, it is commit
03e9371a460031dcb599a1cf504539667cf12f1c,
that is r153 (2010.02.06).

If possible, try to update the the later version.
For example, the latest snapshot is here.
http://www.libusb.org/wiki/windows_backend

--

-- 
Xiaofan http://mcuee.blogspot.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
kenichi_cui | 1 Apr 03:24 2010
Picon

Re: libusb-1.0 windows backend now in Cygwin packages


yes. I used the version from Cygwin, the library file name as libusb-1.0.a
I use the latest Cygwin setup.exe to install and update. 

Xiaofan Chen wrote:
> 
> On Thu, Apr 1, 2010 at 7:44 AM, kenichi_cui <cxx_0627 <at> hotmail.com> wrote:
> 
>> I have installed libusb-1.0 under cgywin, and port the sample code from
>> linux. compile proccess is success. but after run, I found that
>> libusb_init()
>> return -99. who know the reason ?
>>
> 
> Are you using the version from Cygwin? If that is the case, it is
> quite an old version. As per Pete, it is commit
> 03e9371a460031dcb599a1cf504539667cf12f1c,
> that is r153 (2010.02.06).
> 
> If possible, try to update the the later version.
> For example, the latest snapshot is here.
> http://www.libusb.org/wiki/windows_backend
> 
> -- 
> Xiaofan http://mcuee.blogspot.com
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
(Continue reading)

kenichi_cui | 1 Apr 04:32 2010
Picon

Re: libusb-1.0 windows backend now in Cygwin packages


Hello XiaoFan:
I am really confused by those information. 
since winusb package includes winusb.dll adn winusb.sys, why I need install
libusb.1-0 again ?

I refer to http://www.libusb.org/wiki/windows_backend,  there is less
information about how
to install libusb under Cygwin, it seems to be related wth GIT. 

After download the latest libusb_2010.03.30 package, I even cann't run
LSUSB.EXE and XUSB.exe.
it lack something or old version reason.

Would you provide some help for me ?
1. how to install latest libusb library files ? and where is it downloaded?
I only find linux version!
2. how to compile it ? Do I need install MingW ?

Xiaofan Chen wrote:
> 
> On Thu, Apr 1, 2010 at 7:44 AM, kenichi_cui <cxx_0627 <at> hotmail.com> wrote:
> 
>> I have installed libusb-1.0 under cgywin, and port the sample code from
>> linux. compile proccess is success. but after run, I found that
>> libusb_init()
>> return -99. who know the reason ?
>>
> 
> Are you using the version from Cygwin? If that is the case, it is
(Continue reading)

Xiaofan Chen | 1 Apr 04:33 2010
Picon

Re: libusb-1.0 windows backend now in Cygwin packages

On Thu, Apr 1, 2010 at 9:24 AM, kenichi_cui <cxx_0627 <at> hotmail.com> wrote:
>
> yes. I used the version from Cygwin, the library file name as libusb-1.0.a
> I use the latest Cygwin setup.exe to install and update.
>

I see. Maybe you want to try the latest git tree. Install git and
other tools (automake, autoconf, libtools, gcc, etc) from Cygwin
and then you can build the latest git tree. Or you can use the
latest binary snapshot from Pete.
http://www.libusb.org/wiki/windows_backend

--

-- 
Xiaofan http://mcuee.blogspot.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
kenichi_cui | 1 Apr 05:04 2010
Picon

Re: libusb-1.0 windows backend now in Cygwin packages


I have updated latest GIT version 1.6.6, but same result also happen.

I need to know if it is necessary to install WINUSB.SYS and WINUSB DLL file. 

Xiaofan Chen wrote:
> 
> On Thu, Apr 1, 2010 at 9:24 AM, kenichi_cui <cxx_0627 <at> hotmail.com> wrote:
>>
>> yes. I used the version from Cygwin, the library file name as
>> libusb-1.0.a
>> I use the latest Cygwin setup.exe to install and update.
>>
> 
> I see. Maybe you want to try the latest git tree. Install git and
> other tools (automake, autoconf, libtools, gcc, etc) from Cygwin
> and then you can build the latest git tree. Or you can use the
> latest binary snapshot from Pete.
> http://www.libusb.org/wiki/windows_backend
> 
> 
> 
> -- 
> Xiaofan http://mcuee.blogspot.com
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
(Continue reading)

Michael Plante | 1 Apr 05:16 2010
Picon

Re: libusb-1.0 windows backend now in Cygwin packages

kenichi_cui wrote:
>> I have updated latest GIT version 1.6.6, but same result also happen.

It has nothing to do with the version of the git executable.  You need the
latest version of the git *repository*.  If you have difficulty with that,
you can just use the gitweb interface and grab a source tarball.

http://git.libusb.org/?p=libusb-pbatard.git;a=commit;h=66192f7b43985dbb4f565
cce38187ee08749fdc0

and click the "snapshot" link.

>> I need to know if it is necessary to install WINUSB.SYS and WINUSB DLL
file.

Yes.  Don't forget to edit the inf first, per the instructions.  If you wait
a little while, Pete may make this easier with the wdi utility, but it still
won't be part of the official distribution for awhile.

Michael

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
kenichi_cui | 1 Apr 05:45 2010
Picon

Re: libusb-1.0 windows backend now in Cygwin packages


Hello Micheal:

since MS provide a whole of WINUSB api, WINUSB.sys, WINUSB.dll, why do we
need install
libusb library under Cygwin ? and it seems that application should call
libusb_1.0 library. Does
it call WINUSB.dll ?
I only find WINUSBxxxxx.dll under ddk, not WINUSB.sys, it is build in OS
intall binary package ?

As you said, I should do as following: 
1. download libusb-pbatard-66192f7b43985dbb4f565.tar.gz from Repository, and
install it under
    Cygwin, right ?
2. install WINUSB.sys and WINUSBxxx.dll under windows? right ?, but where
can I get WINUSB.sys?

Thx for your help

Michael Plante wrote:
> 
> kenichi_cui wrote:
>>> I have updated latest GIT version 1.6.6, but same result also happen.
> 
> It has nothing to do with the version of the git executable.  You need the
> latest version of the git *repository*.  If you have difficulty with that,
> you can just use the gitweb interface and grab a source tarball.
> 
> http://git.libusb.org/?p=libusb-pbatard.git;a=commit;h=66192f7b43985dbb4f565
(Continue reading)

kenichi_cui | 1 Apr 06:23 2010
Picon

Re: libusb-1.0 windows backend now in Cygwin packages


Hello Micheal:

I download the latest busb-pbatard-66192f7b43985dbb4f565.tar.gz,build it
successfully.
and also compile "lsusb.c" under example , but after run "lsusb.exe", there
is no message show.
I try it under linux, "lsusb.c" will enumerate all USB device/controller.

my computer OS is XPSP2, I cann't find WINUSB.SYS under driver folder. How
should I do now ?
upgrade to SP3?

I plan to run "lsusb.exe" normally that doesn't desire any own usb device,
so it is not necessary 
to modify INF and install ? right ?

Michael Plante wrote:
> 
> kenichi_cui wrote:
>>> I have updated latest GIT version 1.6.6, but same result also happen.
> 
> It has nothing to do with the version of the git executable.  You need the
> latest version of the git *repository*.  If you have difficulty with that,
> you can just use the gitweb interface and grab a source tarball.
> 
> http://git.libusb.org/?p=libusb-pbatard.git;a=commit;h=66192f7b43985dbb4f565
> cce38187ee08749fdc0
> 
> and click the "snapshot" link.
(Continue reading)


Gmane