You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Updated build script for Windows
- [doc] Updated documentation on:
--> compile instructions
--> release preparation steps
--> list of supported devices
--> OS version support status
Copy file name to clipboardExpand all lines: doc/compiling.md
+2-36Lines changed: 2 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,35 +16,14 @@ On Windows users should ensure that the following software is installed:
16
16
1. Install `git` from <https://git-scm.com/download/win>
17
17
2. Install `cmake` from <https://cmake.org/download><br />
18
18
Ensure that you add cmake to the $PATH system variable when following the instructions by the setup assistant.
19
-
3. Install
20
-
21
-
-_EITHER_: Download **MinGW-w64** from <hhttp://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-win32/sjlj/x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z>. Extract content to `C:\mingw-w64\` and add `C:\mingw-w64\bin\` to PATH-Variable.<br />
22
-
-_OR_: **MSVC toolchain** from Visual Studio Build Tools 2019
19
+
3. Install MinGW-w64<br />
20
+
Download **MinGW-w64** from <https://github.com/niXman/mingw-builds-binaries/releases/download/13.2.0-rt_v11-rev1/x86_64-13.2.0-release-win32-seh-msvcrt-rt_v11-rev1.7z>. Extract content to `C:\mingw-w64\` and add `C:\mingw-w64\bin\` to PATH-Variable.<br />
23
21
24
22
4. Create a new destination folder at a place of your choice
25
23
5. Open the command-line (cmd.exe) and execute `cd C:\$Path-to-your-destination-folder$\`
26
24
6. Fetch the project sourcefiles by running `git clone https://github.com/stlink-org/stlink.git`from the command-line (cmd.exe)<br />
27
25
or download and extract the stlink zip-sourcefolder from the Release page on GitHub.
28
26
29
-
#### MSVC toolchain - minimal installation
30
-
31
-
Visual Studio IDE is not necessary, only Windows SDK & build tools are required (~3,3GB).
32
-
33
-
1. Open <https://visualstudio.microsoft.com/downloads/>
34
-
2. Navigate through menus as follows (might change overtime)
35
-
36
-
`All downloads > Tools for Visual Studio 2019 > Build Tools for Visual Studio 2019 > Download`
37
-
38
-
3. Start downloaded executable. After Visual Studio Installer bootstraps and main window pops up, open `Individual Components` tab, and pick
39
-
40
-
- latest build tools (eg. `MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.25)`)
41
-
- latest Windows SDK (eg. `Windows 10 SDK (10.0.18362.0)`)
42
-
43
-
4. After installation finishes, you can press `Launch` button in Visual Studio Installer's main menu.
44
-
- Thus you can open `Developer Command Prompt for VS 2019`. It is `cmd.exe` instance with adjusted PATHs including eg. `msbuild`.
45
-
- Alternatively, you can use `Developer Powershell for VS 2019` which is the same thing for `powershell.exe`. Both are available from Start menu.
46
-
- Another option is to add `msbuild` to PATH manually. Its location should be `C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin`. Then, it should be available from any `powershell.exe` or `cmd.exe` session.
47
-
48
27
### Building
49
28
50
29
#### MinGW-w64
@@ -58,19 +37,6 @@ Per default the build script (currently) uses `C:\mingw-w64\x86_64-8.1.0-release
58
37
When installing different toolchains make sure to update the path in the `mingw64-build.bat`.<br />
59
38
This can be achieved by opening the .bat file with a common text editor.
60
39
61
-
#### MSVC toolchain
62
-
63
-
1. In a command prompt, change the directory to the folder where the stlink files were cloned (or unzipped) to.
64
-
2. Make sure the build folder exists (`mkdir build` if not).
65
-
3. From the build folder, run cmake (`cd build; cmake ..`).
66
-
67
-
This will create a solution file `stlink.sln` in the build folder.
68
-
Now, you can build whole `stlink` suite using following command:
69
-
70
-
```
71
-
msbuild /m /p:Configuration=Release stlink.sln
72
-
```
73
-
74
40
Options:
75
41
76
42
-`/m` - compilation runs in parallel utilizing multiple cores
0 commit comments