]>
Commit | Line | Data |
---|---|---|
1 | ------------------------------------------------------------------------------- | |
2 | README | |
3 | ------------------------------------------------------------------------------- | |
4 | ||
5 | This is a small script for cross-compiling sigrok and its dependencies | |
6 | for MinGW-w64/Windows systems. | |
7 | ||
8 | ||
9 | Status | |
10 | ------ | |
11 | ||
12 | Working. | |
13 | ||
14 | ||
15 | Requirements | |
16 | ------------ | |
17 | ||
18 | - bash | |
19 | - gcc | |
20 | - make | |
21 | - cmake | |
22 | - git | |
23 | - wget | |
24 | - p7zip | |
25 | - pkg-config (>= 0.22) | |
26 | - sdcc (needed for building the fx2lafw firmware) | |
27 | - nsis | |
28 | - MXE (*-w64-* targets, the *-pc-* targets are not supported) | |
29 | ||
30 | ||
31 | MXE setup | |
32 | --------- | |
33 | ||
34 | First, get the MXE cross-compile environment for MinGW-w64/Windows: | |
35 | ||
36 | $ cd $HOME | |
37 | $ git clone https://github.com/mxe/mxe.git mxe-git | |
38 | $ cd mxe-git | |
39 | ||
40 | For now we need to build gcc and winpthreads in two steps. First: | |
41 | ||
42 | $ make MXE_TARGETS=i686-w64-mingw32.static gcc winpthreads | |
43 | ||
44 | In src/gcc.mk change "--enable-threads=win32" to "--enable-threads=posix". | |
45 | ||
46 | Then build gcc again: | |
47 | ||
48 | $ make MXE_TARGETS=i686-w64-mingw32.static gcc | |
49 | ||
50 | We now have a system that supports C++11 std::thread. Now build the rest: | |
51 | ||
52 | $ make MXE_TARGETS=i686-w64-mingw32.static glib libzip libusb1 libftdi1 \ | |
53 | glibmm qt boost check | |
54 | ||
55 | This will take a while. | |
56 | ||
57 | See http://mxe.cc for details on MXE. | |
58 | ||
59 | ||
60 | Building | |
61 | -------- | |
62 | ||
63 | $ ./sigrok-cross-mingw | |
64 | ||
65 | Per default it expects MXE in: | |
66 | ||
67 | $HOME/mxe-git | |
68 | ||
69 | Per default it will install the cross-compiled packages in: | |
70 | ||
71 | $HOME/sr_mingw | |
72 | ||
73 | Please edit the script if you want to change any settings. | |
74 |