]> sigrok.org Git - sigrok-util.git/blame - cross-compile/mingw/README
sigrok-cross-mingw: Ship Python stdlib *.pyd files.
[sigrok-util.git] / cross-compile / mingw / README
CommitLineData
91d4c754
UH
1-------------------------------------------------------------------------------
2README
3-------------------------------------------------------------------------------
4
5This is a small script for cross-compiling sigrok and its dependencies
404eb356 6for MinGW-w64/Windows systems.
91d4c754
UH
7
8
9Status
10------
11
6e15e874 12Working.
91d4c754
UH
13
14
15Requirements
16------------
17
18 - bash
19 - gcc
20 - make
5b7f0ad2 21 - cmake
91d4c754 22 - git
5b7f0ad2 23 - wget
37d3fad3 24 - p7zip
d24d85a2 25 - unzip
5b7f0ad2 26 - pkg-config (>= 0.22)
73740f2d 27 - sdcc (needed for building the fx2lafw firmware)
5b7f0ad2 28 - nsis
4afaa19d 29 - MXE (*-w64-*.posix targets; *-pc-* and non-posix targets are not supported)
91d4c754
UH
30
31
32MXE setup
33---------
34
404eb356 35First, get the MXE cross-compile environment for MinGW-w64/Windows:
91d4c754
UH
36
37 $ cd $HOME
38 $ git clone https://github.com/mxe/mxe.git mxe-git
39 $ cd mxe-git
404eb356 40
b9d1ce76
UH
41Apply some fixes that are currently required for a proper build:
42
43 $ patch -p1 < mxe_fixes.patch
44
01b17442 45Build all required packages:
404eb356 46
7b5d29b6
UH
47 $ make MXE_TARGETS=i686-w64-mingw32.static.posix \
48 MXE_PLUGIN_DIRS=plugins/examples/qt5-freeze \
3aabe9a9 49 gcc glib libzip libusb1 libftdi1 hidapi glibmm qtbase qtimageformats
f26332cc 50 qtsvg qttranslations boost check gendef qtbase_CONFIGURE_OPTS='-no-sql-mysql'
91d4c754
UH
51
52This will take a while.
53
4afaa19d
UH
54You can also use "MXE_TARGETS=x86_64-w64-mingw32.static.posix" to build
5564-bit installers instead.
56
91d4c754
UH
57See http://mxe.cc for details on MXE.
58
7b5d29b6
UH
59Note: We're "freezing" the Qt5 version to Qt 5.7.x, since that's the last
60version that supports Windows XP (which we currently still want to support).
61
91d4c754
UH
62
63Building
64--------
65
66 $ ./sigrok-cross-mingw
67
68Per default it expects MXE in:
69
70 $HOME/mxe-git
71
72Per default it will install the cross-compiled packages in:
73
4afaa19d
UH
74 $HOME/sr_mingw_release_32
75
76This depends on whether you're doing a 64-bit or 32-bit build, and whether
77you enabled debug builds or not.
91d4c754
UH
78
79Please edit the script if you want to change any settings.
80