]> sigrok.org Git - sigrok-util.git/blame - cross-compile/msys2/README
sigrok-cross-mingw: Drop apparently obsolete libzip patch.
[sigrok-util.git] / cross-compile / msys2 / README
CommitLineData
c11260b1
UH
1-------------------------------------------------------------------------------
2README
3-------------------------------------------------------------------------------
4
5This is a small script for compiling sigrok and its dependencies natively
6on MSYS2/Windows systems.
7
8
9Status
10------
11
12NOT fully working! This is work in progress.
13
14
15Requirements
16------------
17
18See below for instructions on how to install the requirements.
19
20
21Toolchain setup
22---------------
23
24First, you need to install MSYS2 (use the 64bit installer, msys2-x86_64-*.exe):
25
dfa960bd
UH
26 http://www.msys2.org
27 https://github.com/msys2/msys2/wiki/MSYS2-installation
c11260b1
UH
28
29Then, perform the MSYS2 update procedure as per the documentation above.
30
dfa960bd 31 $ pacman -Syu # If needed, close MSYS2, run it again from Start menu.
c11260b1
UH
32 $ pacman -Su
33
42e38f72
UH
34Now close the shell and start an "MSYS2 MinGW 64-bit" or "MSYS2 MinGW 32-bit"
35shell (do NOT use the "MSYS2 MSYS" shell). All other steps will always have to
36be performed in an "MSYS2 MinGW 62-bit" or "MSYS2 MinGW 32-bit" shell.
c11260b1
UH
37
38Install the MSYS2 git package there:
39
40 $ pacman -Sy
41 $ pacman -S git
42
43This is all that is needed to bootstrap your MSYS2 system. You can now use
44our sigrok-native-msys2 script to install all other required MSYS2 packages:
45
46 $ ./sigrok-native-msys2 prepare
47
48
49Building
50--------
51
52 $ ./sigrok-native-msys2
53
54Per default it will install the compiled packages in:
55
42e38f72
UH
56 $HOME/sr_msys2_release_32
57
58This depends on whether you're running the build in a "MSYS2 MinGW 64-bit" or
59"MSYS2 MinGW 32-bit" shell, and whether you enabled debug builds or not.
c11260b1
UH
60
61Please edit the script if you want to change any settings.
62