|
1 | 1 | # Compiling from sources |
2 | 2 |
|
3 | | - |
4 | | -## Microsoft Windows - MINGW (10, 11) |
5 | | - |
6 | | -### Common Requirements |
7 | | - |
8 | | -On Windows users should ensure that the following software is installed: |
9 | | - |
10 | | -- `git` (_optional, but recommended_) |
11 | | -- `7zip` |
12 | | -- `MSYS2` |
13 | | - |
14 | | -### Installation |
15 | | - |
16 | | -1. Install `MSYS2` from <https://www.msys2.org/><br /> |
17 | | - Follow the installation instructions on the website. |
18 | | -2. Install `mingw-w64` via the MSYS2 UCRT64 Shell: `pacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-make mingw-w64-x86_64-gcc git` |
19 | | -3. Fetch the project sourcefiles by running `git clone https://github.com/stlink-org/stlink.git`from the command-line (cmd.exe)<br /> |
20 | | - or download and extract (`7zip`) the stlink zip-sourcefolder from the Release page on GitHub. |
21 | | - |
22 | | -### Building |
23 | | - |
24 | | -1. Open the command-line (cmd.exe) with administrator privileges |
25 | | -2. Move to the `stlink` directory and execute `C:\$Path-to-your-stlink-folder$\mingw64-build.bat` |
26 | | - |
27 | | -Depending on the flavour of compilation the final executables will be placed in the following directories: |
28 | | -- Local compilation: `<project_root>\build-mingw\bin` |
29 | | -- Local installation: `C:\Program Files (x86)\stlink\bin` |
30 | | -- Package Generation (portable): `C:\Users\swift\Desktop\stlink\build-mingw\dist` |
31 | | - |
32 | | -#### Removal: |
33 | | - |
34 | | -Remove `C:\Program Files (x86)\stlink\` and `C:\$Path-to-your-stlink-folder$`. |
35 | | - |
36 | | - |
37 | | -**NOTE:** |
38 | | - |
39 | | -[ST-LINK drivers](https://www.st.com/en/development-tools/stsw-link009.html) are required for programmers to work with `stlink`. |
40 | | - |
41 | | - |
42 | | -## Microsoft Windows - MSVC (10, 11) |
| 3 | +## Microsoft Windows - MSVC (11) |
43 | 4 |
|
44 | 5 | ### Common Requirements |
45 | 6 |
|
46 | 7 | On Windows users should ensure that the following software is installed: |
47 | 8 |
|
48 | 9 | - `git` (Required for building LibUSB if missing) |
49 | | -- `7zip` |
| 10 | +- `7zip` (_optional_) |
50 | 11 | - `cmake` |
51 | 12 | - `MSVC` Compiler (Tested with Visual Studio 2022 and Build Tools for Visual Studio 2022) |
52 | 13 |
|
@@ -97,7 +58,7 @@ Install the following packages from your package repository: |
97 | 58 | - `libgtk-3-dev` (_optional_, needed for `stlink-gui`) |
98 | 59 | - `pandoc` (_optional_, needed for generating manpages from markdown) |
99 | 60 |
|
100 | | -or execute (Debian-based systems only): `apt-get install gcc build-essential cmake rpm libusb-1.0-0 libusb-1.0-0-dev libgtk-3-dev pandoc` |
| 61 | +or execute (Debian-based systems only): `apt-get install gcc build-essential cmake rpm libusb-1.0-0 libusb-1.0-0-dev libgtk-4-dev pandoc` |
101 | 62 |
|
102 | 63 | (Replace gcc with the intended C-compiler if necessary or leave out any optional package not needed.) |
103 | 64 |
|
|
0 commit comments