]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-mingw: Get libusb0.dll from libusb-win32.
authorUwe Hermann <redacted>
Sun, 5 Jan 2014 00:48:08 +0000 (01:48 +0100)
committerUwe Hermann <redacted>
Sun, 5 Jan 2014 00:48:08 +0000 (01:48 +0100)
This is one half of the fix for bug #241.

cross-compile/mingw/README
cross-compile/mingw/sigrok-cross-mingw

index 45c9a38faa08b5d8ca715f0eee006bfb3f98f307..9aeb1ed6b41f926840d1969e6a04da5d47758ae0 100644 (file)
@@ -20,6 +20,7 @@ Requirements
  - make
  - git
  - pkg-config (>= 0.22)
+ - unzip
  - MXE
 
 
index 5b739bdc96dfa2ebf725984e7812f5caef19c8bc..00f929aa037edf6f89a7301712289b5fd9e3f0e7 100755 (executable)
@@ -34,6 +34,12 @@ BUILDDIR=./sr_mingw_build
 
 # -----------------------------------------------------------------------------
 
+VER_LIBUSB_WIN32=1.2.6.0
+
+SF_MIRROR=switch.dl.sourceforge.net
+
+# -----------------------------------------------------------------------------
+
 # We need to find tools in the toolchain and in the install directory.
 export PATH=$PREFIX/bin:$MXE/usr/bin:$PATH
 
@@ -78,6 +84,11 @@ EOF
 wget -c http://python.org/ftp/python/3.2.3/python-3.2.3.msi \
      -O $PREFIX/python-3.2.3.msi
 
+# libusb0.dll (needs to be shipped with frontends)
+wget -c http://$SF_MIRROR/project/libusb-win32/libusb-win32-releases/$VER_LIBUSB_WIN32/libusb-win32-bin-$VER_LIBUSB_WIN32.zip
+unzip libusb-win32-bin-$VER_LIBUSB_WIN32.zip
+cp -f libusb-win32-bin-$VER_LIBUSB_WIN32/bin/x86/libusb0_x86.dll $PREFIX/libusb0.dll
+
 # libserialport
 git clone git://sigrok.org/libserialport
 cd libserialport