]> sigrok.org Git - sigrok-util.git/blame - cross-compile/mingw/README
sigrok-cross-mingw: README: Revert back to Qt4 for now.
[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
50d4aefd 24 - unzip
37d3fad3 25 - p7zip
5b7f0ad2 26 - pkg-config (>= 0.22)
73740f2d 27 - sdcc (needed for building the fx2lafw firmware)
5b7f0ad2 28 - nsis
404eb356 29 - MXE (*-w64-* targets, the *-pc-* 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
UH
40
41For now we need to build gcc and winpthreads in two steps. First:
42
43 $ make MXE_TARGETS=i686-w64-mingw32.static gcc winpthreads
44
45In src/gcc.mk change "--enable-threads=win32" to "--enable-threads=posix".
46
47Then build gcc again:
48
49 $ make MXE_TARGETS=i686-w64-mingw32.static gcc
50
51We now have a system that supports C++11 std::thread. Now build the rest:
52
a2579d20 53 $ make MXE_TARGETS=i686-w64-mingw32.static glib libzip libusb1 libftdi1 \
d1cd735b 54 glibmm qt boost check
91d4c754
UH
55
56This will take a while.
57
58See http://mxe.cc for details on MXE.
59
60
61Building
62--------
63
64 $ ./sigrok-cross-mingw
65
66Per default it expects MXE in:
67
68 $HOME/mxe-git
69
70Per default it will install the cross-compiled packages in:
71
72 $HOME/sr_mingw
73
74Please edit the script if you want to change any settings.
75