Re: [Libusbx-devel] WinCE integration (was: 2 new commits in libusbx)

2013-01-22 Thread Pete Batard
WinCE support is now in mainline.

I tested compilation with the SDK_500 (ARM) and VS2008, and everything 
seems to be OK after simply moving the "wince_usb.h" include after the 
libusbi.h include in wince_usb.c.

Once again, I'll renew my thanks to Tony for his good work and 
continuing commitment to help with the spotty integration process, with 
an apology for taking so many months to get there.
Unfortunately, I have to say that WinCE came out of the blue and at a 
time where we still have much catchup to do on the libusbx backlog side, 
so it became a bit of a headache to squeeze in.

On that topic, and just to give everybody an example of where I think we 
stand, I don't see removal of the libusbk.dll dependency, that was 
recently logged as issue #73 ([1]), as likely to start being looked into 
before 2016 at best... As such I would advise anybody planning to push 
for the integration of a new feature to be mindful that, unless we get 
more manpower, lengthy delays are still to be expected...

Regards,

/Pete

[1] https://github.com/libusbx/libusbx/issues/73

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


Re: [Libusbx-devel] WinCE integration (was: 2 new commits in libusbx)

2013-01-22 Thread Xiaofan Chen
On Wed, Jan 23, 2013 at 9:25 AM, Pete Batard  wrote:
> WinCE support is now in mainline.
>
> I tested compilation with the SDK_500 (ARM) and VS2008, and everything
> seems to be OK after simply moving the "wince_usb.h" include after the
> libusbi.h include in wince_usb.c.

Great. Is it possible that you provide a test binary for ARM and the
wrapper driver?

> Once again, I'll renew my thanks to Tony for his good work and
> continuing commitment to help with the spotty integration process, with
> an apology for taking so many months to get there.
> Unfortunately, I have to say that WinCE came out of the blue and at a
> time where we still have much catchup to do on the libusbx backlog side,
> so it became a bit of a headache to squeeze in.

Still I think the result comes out quite nicely and 1.0.15 release will
be another milestone with the Windows CE integration. Great work!

> On that topic, and just to give everybody an example of where I think we
> stand, I don't see removal of the libusbk.dll dependency, that was
> recently logged as issue #73 ([1]), as likely to start being looked into
> before 2016 at best... As such I would advise anybody planning to push
> for the integration of a new feature to be mindful that, unless we get
> more manpower, lengthy delays are still to be expected...
>
> [1] https://github.com/libusbx/libusbx/issues/73

I agree. I have remove #73 from 3.1 Milestone. It is a low priority anyway.
Actually for VC++, it may be possible to statically link to libusbK
anyway.

I have also removed some of the issues from the milestones. I think the
current milestone timing is too aggressive. So feel free to change the
time as you see fit.


-- 
Xiaofan

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


Re: [Libusbx-devel] WinCE integration (was: 2 new commits in libusbx)

2013-01-22 Thread Xiaofan Chen
On Wed, Jan 23, 2013 at 9:25 AM, Pete Batard  wrote:
> WinCE support is now in mainline.
>
> I tested compilation with the SDK_500 (ARM) and VS2008, and everything
> seems to be OK after simply moving the "wince_usb.h" include after the
> libusbi.h include in wince_usb.c.
>

Needs some support here.

I have issues building both libusbx WinCE branch and the Windows CE
USB wrapper.

1) Windows CE USB Wrapper:
https://github.com/RealVNC/CEUSBKWrapper

Build using Windows CE 5 Platform SDK
BUILD: [Thrd:Sequence:Type  ] Message

BUILD: [00:00:PROGC ] Checking for \WINCE500\sdk\bin\i386\srccheck.exe.

BUILD: [00:01:PROGC ] SrcCheck exit code: 0 (dec).

BUILD: [00:02:PROGC ] Compile and Link for ARM.

BUILD: [00:03:PROGC ] Loading C:\WINCE500\PLATFORM\RABASE\Build.dat.

BUILD: [00:04:PROGC ] Done.

BUILD: [00:05:PROGC ] Computing include file dependencies:

BUILD: [00:06:PROGC ] Checking for SDK include directory:
C:\WINCE500\sdk\ce\inc.

BUILD: [00:07:PROGC ] Scan \WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\

BUILD: [00:15:PROGC ] Scan \WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\lib\

BUILD: [00:18:PROGC ] Scan \WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\test\

BUILD: [00:21:PROGC ] Compiling
\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\ directory.

BUILD: [01:28:PROGC ] Compiling .\UsbDevice.cpp


BUILD: [01:31:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:33:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:39:PROGC ] Compiling .\OpenContext.cpp


BUILD: [01:42:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:44:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:50:PROGC ] Compiling .\UserBuffer.cpp


BUILD: [01:53:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:55:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.cpp(162) :
error C2065: 'ARG_IO_PDW' : undeclared identifier


BUILD: [01:56:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.cpp(165) :
error C2065: 'ARG_I_PDW' : undeclared identifier


BUILD: [01:57:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.cpp(168) :
error C2065: 'ARG_O_PDW' : undeclared identifier


BUILD: [01:58:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:64:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.cpp(187) :
error C3861: 'CeDriverDuplicateCallerHandle': identifier not found,
even with argument-dependent lookup


BUILD: [01:65:PROGC ] Compiling .\ControlTransfer.cpp


BUILD: [01:68:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:70:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:76:PROGC ] Compiling .\TransferList.cpp


BUILD: [01:79:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:81:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:87:PROGC ] Compiling .\Transfer.cpp


BUILD: [01:90:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:92:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:98:PROGC ] Compiling .\BulkTransfer.cpp


BUILD: [01:000101:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:000103:ERRORE]
c:\WINCE500\PLATFORM\RABASE\SRC\TESTS\usb\drv\UserBuffer.h(38) : error
C2100: illegal indirection


BUILD: [01:000109:PROGC ] Linking obj\ARMV4I\retail\ceusbkwrapperdrv.lib


BUILD: [01:000118:ERRORE] LINK : fatal error LNK1181: cannot open
input file 'obj\ARMV4I\retail\UsbDevice.obj'


BUILD: [00:000120:PROGC ]  Files  Warnings
 Errors

BUILD: [00:000121:PROGC ] Midl 0 0
  0

BUILD: [00:000122:PROGC ] Resource 0 0
  0

BUILD: [00:000123:PROGC ] Message  0 0
  0

BUILD: [00:000124:PROGC ] Precomp Header   0 0
  0

BUILD: [00:000125:PROGC ] C/Cpp/Cxx7 0
 18

BUILD: [00:000126:PROGC ] Assembler0

Re: [Libusbx-devel] WinCE integration (was: 2 new commits in libusbx)

2013-01-22 Thread Xiaofan Chen
On Wed, Jan 23, 2013 at 3:32 PM, Xiaofan Chen  wrote:
> On Wed, Jan 23, 2013 at 9:25 AM, Pete Batard  wrote:
>> WinCE support is now in mainline.
>>
>> I tested compilation with the SDK_500 (ARM) and VS2008, and everything
>> seems to be OK after simply moving the "wince_usb.h" include after the
>> libusbi.h include in wince_usb.c.
>>
>
> Needs some support here.
>
> I have issues building both libusbx WinCE branch and the Windows CE
> USB wrapper.

I actually asked a colleague who has the WinCE 5.0 installation for help.

> 1) Windows CE USB Wrapper:
> https://github.com/RealVNC/CEUSBKWrapper
>...
> BUILD: [00:000136:PROGC ] 0 Warnings,  20 Errors
>
> Build for Windows CE (Release) (Built on Apr 14 2005 13:54:39)
> File names: Build.log Build.wrn Build.err Build.dat

2) libusbx WinCE branch, this looks like a configuration problem
but a bit strange. We are using VS2005 with WinCE Standard SDK 5.0.
We can see all those "undefined"/"undeclared" things in the solution
but no idea why the error message came out.

The normal Windows VS2005 solution works fine under the same
setup.

-- Rebuild All started: Project: libusb-1.0 (dll), Configuration:
Debug STANDARDSDK_500 (ARMV4I) --
Deleting intermediate and output files for project 'libusb-1.0 (dll)',
configuration 'Debug|STANDARDSDK_500 (ARMV4I)'
Compiling...
core.c
..\libusb\core.c(945) : warning C4013: 'usbi_write' undefined;
assuming extern returning int
..\libusb\core.c(958) : warning C4013: 'usbi_read' undefined; assuming
extern returning int
descriptor.c
io.c
..\libusb\io.c(1066) : warning C4013: 'usbi_pipe' undefined; assuming
extern returning int
..\libusb\io.c(1072) : error C2065: 'POLLIN' : undeclared identifier
..\libusb\io.c(1096) : warning C4013: 'usbi_close' undefined; assuming
extern returning int
..\libusb\io.c(1152) : warning C4013: 'TIMESPEC_TO_TIMEVAL' undefined;
assuming extern returning int
..\libusb\io.c(1864) : error C2027: use of undefined type 'pollfd'
c:\temp\libusbx_wince\libusbx\libusb\libusbi.h(862) : see
declaration of 'pollfd'
..\libusb\io.c(1874) : error C2036: 'pollfd *' : unknown size
..\libusb\io.c(1874) : error C2037: left of 'fd' specifies undefined
struct/union 'pollfd'
..\libusb\io.c(1875) : error C2036: 'pollfd *' : unknown size
..\libusb\io.c(1875) : error C2037: left of 'events' specifies
undefined struct/union 'pollfd'
..\libusb\io.c(1876) : error C2036: 'pollfd *' : unknown size
..\libusb\io.c(1876) : error C2037: left of 'revents' specifies
undefined struct/union 'pollfd'
..\libusb\io.c(1887) : warning C4013: 'usbi_poll' undefined; assuming
extern returning int
..\libusb\io.c(1902) : error C2036: 'pollfd *' : unknown size
..\libusb\io.c(1902) : error C2037: left of 'revents' specifies
undefined struct/union 'pollfd'
..\libusb\io.c(1913) : error C2036: 'pollfd *' : unknown size
..\libusb\io.c(1913) : error C2037: left of 'revents' specifies
undefined struct/union 'pollfd'
..\libusb\io.c(2278) : warning C4013: 'timersub' undefined; assuming
extern returning int
missing.c

poll_windows.c
..\libusb\os\poll_windows.c(75) : error C2079: 'INVALID_WINFD' uses
undefined struct 'winfd'
..\libusb\os\poll_windows.c(75) : error C2078: too many initializers
..\libusb\os\poll_windows.c(75) : error C2065: 'RW_NONE' : undeclared identifier
..\libusb\os\poll_windows.c(76) : error C2065: 'MAX_FDS' : undeclared identifier
..\libusb\os\poll_windows.c(76) : error C2057: expected constant expression
...

-- 
Xiaofan

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel