1 -------------------------------------------------------------------------------
3 -------------------------------------------------------------------------------
5 This is a small script for cross-compiling sigrok and its dependencies
6 for MinGW-w64/Windows systems.
25 - pkg-config (>= 0.22)
26 - sdcc (needed for building the fx2lafw firmware)
28 - MXE (*-w64-* targets, the *-pc-* targets are not supported)
34 First, get the MXE cross-compile environment for MinGW-w64/Windows:
37 $ git clone https://github.com/mxe/mxe.git mxe-git
40 For now we need to build gcc and winpthreads in two steps. First:
42 $ make MXE_TARGETS=i686-w64-mingw32.static gcc winpthreads
44 In src/gcc.mk change "--enable-threads=win32" to "--enable-threads=posix".
48 $ make MXE_TARGETS=i686-w64-mingw32.static gcc
50 We now have a system that supports C++11 std::thread. Now build the rest:
52 $ make MXE_TARGETS=i686-w64-mingw32.static glib libzip libusb1 libftdi1 \
55 This will take a while.
57 See http://mxe.cc for details on MXE.
63 $ ./sigrok-cross-mingw
65 Per default it expects MXE in:
69 Per default it will install the cross-compiled packages in:
73 Please edit the script if you want to change any settings.