1 -------------------------------------------------------------------------------
3 -------------------------------------------------------------------------------
5 This is a small script for cross-compiling sigrok and its dependencies
6 for MinGW-w64/Windows systems.
26 - pkg-config (>= 0.22)
27 - sdcc (needed for building the fx2lafw firmware)
29 - MXE (*-w64-* targets, the *-pc-* targets are not supported)
35 First, get the MXE cross-compile environment for MinGW-w64/Windows:
38 $ git clone https://github.com/mxe/mxe.git mxe-git
41 For now we need to build gcc and winpthreads in two steps. First:
43 $ make MXE_TARGETS=i686-w64-mingw32.static gcc winpthreads
45 In src/gcc.mk change "--enable-threads=win32" to "--enable-threads=posix".
49 $ make MXE_TARGETS=i686-w64-mingw32.static gcc
51 We now have a system that supports C++11 std::thread. Now build the rest:
53 $ make MXE_TARGETS=i686-w64-mingw32.static glib libzip libusb1 libftdi1 \
56 This will take a while.
58 See http://mxe.cc for details on MXE.
64 $ ./sigrok-cross-mingw
66 Per default it expects MXE in:
70 Per default it will install the cross-compiled packages in:
74 Please edit the script if you want to change any settings.