On 03/04/13 20:35, Pete Batard wrote:
On 2013.04.03 12:09, Toby Gray wrote:
The attached patch fixes this.
Thanks for testing.
Your patch is now part of RC2, and I confirmed that RC2 compiled for
WinCE on my test environment.
Agreed. RC2 works fine for me too.
If I provide a zip of pre-built binaries for WinCE would you be happy to
host them in the libusbx downloads?
Absolutely! If you provide your SourceForge ID, we should be able to
grant you upload rights on the SF file repo.
I'm thinking of replacing the sources/ and Windows/ subdirectories for
each release to sources/ and binaries/, so you could fit right into the
latter.
Sounds good. My SourceForge ID is toby-gray.
Is there a script you use to
generate the zip of the pre-built desktop binaries? Or do you just use
the scripts in .private and do some manual copying?
I just use the .private scripts, and run bd from WDK and bm from
MinGW-w64. Haven't bothered with updating the upload for now. If you
want to add some scripts for CE builds in .private, that can be arranged
too.
I've attached a patch for adding a WinCE build script to the .private
directory: 0002-WinCE-Adding-build-script-for-WinCE-binaries.patch
I've also attached another patch which fixes x86 builds for WinCE:
0001-WinCE-Fixing-x86-build-on-Visual-Studio-2005.patch
I'm happy for the inclusion of these patches to be delayed until 1.0.15
is out. Although if we do get an RC3 then it'd be great if they could be
in it. If they aren't then I'll skip pre-built WinCE x86 binaries for
this release.
Regards,
Toby
>From e5f6c5df8c8fc9235e6c6ebbc2137348c11777fd Mon Sep 17 00:00:00 2001
From: Toby Gray <toby.g...@realvnc.com>
Date: Thu, 4 Apr 2013 13:32:31 +0100
Subject: [PATCH 2/2] WinCE: Adding build script for WinCE binaries.
---
.private/bwince.cmd | 55 ++++++++++++++++++++++++++++++++++++++++++++++++
.private/wbs_wince.txt | 37 ++++++++++++++++++++++++++++++++
2 files changed, 92 insertions(+), 0 deletions(-)
create mode 100755 .private/bwince.cmd
create mode 100755 .private/wbs_wince.txt
diff --git a/.private/bwince.cmd b/.private/bwince.cmd
new file mode 100755
index 0000000..a535dce
--- /dev/null
+++ b/.private/bwince.cmd
@@ -0,0 +1,55 @@
+@echo off
+rem produce the Win CE binary files for snapshots
+rem !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
+
+if "x%VSINSTALLDIR%"=="x" goto usage
+
+if "x%WINCE_TARGET_DIR_BASE%"=="x" set WINCE_TARGET_DIR_BASE=E:\dailies
+if "x%WINCE_TARGET_ARCHES%"=="x" set WINCE_TARGET_ARCHES=ARMV4I MIPSII MIPSII_FP MIPSIV MIPSIV_FP SH4 x86
+
+
+set WINCE_TARGET_DIR=%WINCE_TARGET_DIR_BASE%\%DATE:/=-%
+set MSBUILD_CMD=msbuild.exe
+set MSBUILD_TARGET=Rebuild
+set MSBUILD_CONFIGURATION=Release
+set WINCE_SLN=msvc\libusbx_wince.sln
+set PLATFORM_PREFIX=STANDARDSDK_500 (
+set PLATFORM_POSTFIX=)
+
+
+set PWD=%~dp0
+cd ..
+
+mkdir %WINCE_TARGET_DIR%
+mkdir %WINCE_TARGET_DIR%\include\libusbx-1.0
+copy libusb\libusb-1.0.def %WINCE_TARGET_DIR%
+copy libusb\libusb.h %WINCE_TARGET_DIR%\include\libusbx-1.0
+for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A
+for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A\static
+for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A\dll
+for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\examples\%%A
+mkdir %WINCE_TARGET_DIR%\examples\source
+copy examples\listdevs.c %WINCE_TARGET_DIR%\examples\source
+copy examples\xusb.c %WINCE_TARGET_DIR%\examples\source
+copy msvc\stdint.h %WINCE_TARGET_DIR%\examples\source
+copy .private\wbs_wince.txt %WINCE_TARGET_DIR%\README.txt
+
+rem Perform the rebuild
+for %%A in (%WINCE_TARGET_ARCHES%) do %MSBUILD_CMD% %WINCE_SLN% /property:Platform="%PLATFORM_PREFIX%%%A%PLATFORM_POSTFIX%" /property:Configuration=%MSBUILD_CONFIGURATION% /target:%MSBUILD_TARGET%"
+
+
+rem Copy across the binaries
+for %%A in (%WINCE_TARGET_ARCHES%) do (
+ copy %%A\%MSBUILD_CONFIGURATION%\lib\libusb-1.0.lib %WINCE_TARGET_DIR%\%%A\static
+ copy %%A\%MSBUILD_CONFIGURATION%\examples\listdevs.exe %WINCE_TARGET_DIR%\examples\%%A
+ copy %%A\%MSBUILD_CONFIGURATION%\examples\xusb.exe %WINCE_TARGET_DIR%\examples\%%A
+ copy %%A\%MSBUILD_CONFIGURATION%\dll\libusb-1.0.lib %WINCE_TARGET_DIR%\%%A\dll
+ copy %%A\%MSBUILD_CONFIGURATION%\dll\libusb-1.0.dll %WINCE_TARGET_DIR%\%%A\dll )
+
+goto done
+
+:usage
+echo must be run in a Visual Studio 2005 build environment!
+
+:done
+cd %PWD%
\ No newline at end of file
diff --git a/.private/wbs_wince.txt b/.private/wbs_wince.txt
new file mode 100755
index 0000000..b835eea
--- /dev/null
+++ b/.private/wbs_wince.txt
@@ -0,0 +1,37 @@
+ libusbx 1.0 Windows CE binary snapshot - README
+
+ *********************************************************************
+ * The latest version of this snapshot can always be downloaded at: *
+ * https://sourceforge.net/projects/libusbx/files/ *
+ *********************************************************************
+
+o Visual Studio:
+ - Open existing or create a new project for your application
+ - Copy libusb.h, from the include\libusbx-1.0\ directory, into your project and
+ make sure that the location where the file reside appears in the 'Additional
+ Include Directories' section (Configuration Properties -> C/C++ -> General).
+ - Copy the relevant .lib file from ARMV4I, MIPSII, MIPSII_FP, MIPSIV, MIPSIV_FP,
+ SH4 or x86 and add 'libusb-1.0.lib' to your 'Additional Dependencies'
+ (Configuration Properties -> Linker -> Input). Also make sure that the
+ directory where libusb-1.0.lib resides is added to 'Additional Library
+ Directories' (Configuration Properties -> Linker -> General)
+ - If you use the static version of the libusbx library, make sure that
+ 'Runtime Library' is set to 'Multi-threaded DLL (/MD)' (Configuration
+ Properties -> C/C++ -> Code Generation).
+ NB: If your application requires /MT (Multi-threaded/libCMT), you need to
+ recompile a static libusbx 1.0 library from source.
+ - Compile and run your application. If you use the DLL version of libusb-1.0,
+ remember that you need to have a copy of the DLL either in the runtime
+ directory or in system32
+
+o Additional information:
+ - The libusbx 1.0 API documentation can be accessed at:
+ http://api.libusbx.org
+ - For some libusb samples (including source), please have a look in examples/
+ - For additional information on the libusbx 1.0 Windows backend please visit:
+ http://windows.libusbx.org
+ - It is necessary to install the CE USB Kernel Wrapper driver for libusbx to
+ function on a device. This is obtainable from:
+ https://github.com/RealVNC/CEUSBKWrapper
+ - If you find any issue, please visit http://libusbx.org/ and check the
+ Support section
--
1.7.9
>From e1411e9de9cf9a882f7c3c6049d9f22590fd8ec1 Mon Sep 17 00:00:00 2001
From: Toby Gray <toby.g...@realvnc.com>
Date: Thu, 4 Apr 2013 13:33:20 +0100
Subject: [PATCH 1/2] WinCE: Fixing x86 build on Visual Studio 2005.
---
msvc/libusb_dll_wince.vcproj | 2 ++
msvc/listdevs_wince.vcproj | 2 ++
msvc/stress_wince.vcproj | 2 ++
msvc/xusb_wince.vcproj | 2 ++
4 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/msvc/libusb_dll_wince.vcproj b/msvc/libusb_dll_wince.vcproj
index 94846c5..96b1f04 100644
--- a/msvc/libusb_dll_wince.vcproj
+++ b/msvc/libusb_dll_wince.vcproj
@@ -543,6 +543,7 @@
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\libusb-1.0.dll"
+ IgnoreDefaultLibraryNames="oldnames.lib,libc.lib"
ModuleDefinitionFile="../libusb/libusb-1.0.def"
GenerateDebugInformation="true"
SubSystem="9"
@@ -1094,6 +1095,7 @@
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\libusb-1.0.dll"
+ IgnoreDefaultLibraryNames="oldnames.lib,libc.lib"
ModuleDefinitionFile="../libusb/libusb-1.0.def"
GenerateDebugInformation="true"
SubSystem="9"
diff --git a/msvc/listdevs_wince.vcproj b/msvc/listdevs_wince.vcproj
index 1dbabba..a31424b 100644
--- a/msvc/listdevs_wince.vcproj
+++ b/msvc/listdevs_wince.vcproj
@@ -522,6 +522,7 @@
<Tool
Name="VCLinkerTool"
GenerateDebugInformation="true"
+ IgnoreDefaultLibraryNames="oldnames.lib,libc.lib"
SubSystem="9"
EntryPointSymbol="mainACRTStartup"
TargetMachine="0"
@@ -1052,6 +1053,7 @@
<Tool
Name="VCLinkerTool"
GenerateDebugInformation="true"
+ IgnoreDefaultLibraryNames="oldnames.lib,libc.lib"
SubSystem="9"
OptimizeReferences="2"
EnableCOMDATFolding="2"
diff --git a/msvc/stress_wince.vcproj b/msvc/stress_wince.vcproj
index be34cc4..0f79535 100644
--- a/msvc/stress_wince.vcproj
+++ b/msvc/stress_wince.vcproj
@@ -523,6 +523,7 @@
Name="VCLinkerTool"
GenerateDebugInformation="true"
SubSystem="9"
+ IgnoreDefaultLibraryNames="oldnames.lib,libc.lib"
EntryPointSymbol="mainACRTStartup"
TargetMachine="0"
/>
@@ -1053,6 +1054,7 @@
Name="VCLinkerTool"
GenerateDebugInformation="true"
SubSystem="9"
+ IgnoreDefaultLibraryNames="oldnames.lib,libc.lib"
OptimizeReferences="2"
EnableCOMDATFolding="2"
EntryPointSymbol="mainACRTStartup"
diff --git a/msvc/xusb_wince.vcproj b/msvc/xusb_wince.vcproj
index 6e106ad..17f1e85 100644
--- a/msvc/xusb_wince.vcproj
+++ b/msvc/xusb_wince.vcproj
@@ -523,6 +523,7 @@
Name="VCLinkerTool"
GenerateDebugInformation="true"
SubSystem="9"
+ IgnoreDefaultLibraryNames="oldnames.lib,libc.lib"
EntryPointSymbol="mainACRTStartup"
TargetMachine="0"
/>
@@ -1053,6 +1054,7 @@
Name="VCLinkerTool"
GenerateDebugInformation="true"
SubSystem="9"
+ IgnoreDefaultLibraryNames="oldnames.lib,libc.lib"
OptimizeReferences="2"
EnableCOMDATFolding="2"
EntryPointSymbol="mainACRTStartup"
--
1.7.9
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel