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-*.posix targets; *-pc-* and non-posix 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 Apply some fixes that are currently required for a proper build:
43 $ patch -p1 < mxe_fixes.patch
44 $ patch -p1 < libusb1_upgrade.patch
46 Build all required packages:
48 $ make MXE_TARGETS=i686-w64-mingw32.static.posix \
49 MXE_PLUGIN_DIRS=plugins/examples/qt5-freeze \
50 gcc glib libzip libusb1 libftdi1 hidapi glibmm qtbase qtimageformats \
51 qtsvg qttranslations boost check gendef libieee1284 \
52 qtbase_CONFIGURE_OPTS='-no-sql-mysql'
54 This will take a while.
56 You can also use "MXE_TARGETS=x86_64-w64-mingw32.static.posix" to build
57 64-bit installers instead.
59 See http://mxe.cc for details on MXE.
61 Note: We're "freezing" the Qt5 version to Qt 5.7.x, since that's the last
62 version that supports Windows XP (which we currently still want to support).
68 $ ./sigrok-cross-mingw
70 Per default it expects MXE in:
74 Per default it will install the cross-compiled packages in:
76 $HOME/sr_mingw_release_32
78 This depends on whether you're doing a 64-bit or 32-bit build, and whether
79 you enabled debug builds or not.
81 Please edit the script if you want to change any settings.