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
Copy file name to clipboardExpand all lines: docs/building.md
+54-11Lines changed: 54 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,13 +149,21 @@ cd scripts/windows
149
149
./deps.sh
150
150
```
151
151
152
-
install go in WSL [https://go.dev/doc/install](https://go.dev/doc/install) (follow linux instructions) and ensure you have `x86_64-w64-mingw32-gcc`
152
+
Upgrade the version of cmake >= 3.31.6, the default version of ubuntu 24.04 (3.28.1) will be too low to build libepiccash.
153
+
You can use pip to install a specific version
154
+
```
155
+
sudo apt remove cmake
156
+
pip install cmake==3.31.6
157
+
```
158
+
159
+
install go in WSL [https://go.dev/doc/install](https://go.dev/doc/install) (follow linux instructions) and ensure you have `mingw-w64` package installed to get the `x86_64-w64-mingw32-gcc` compiler.
160
+
153
161
go version should be at least 1.24
154
162
155
-
and use `scripts/build_app.sh` to build plugins:
163
+
and use `scripts/build_app.sh` to build plugins: (see the [Build script section](#build-script-build_appsh) to understand the arguments)
156
164
```
157
165
cd ..
158
-
./build_app.sh -a stack_wallet -p windows -v 2.1.0 -b 210
166
+
./build_app.sh -a stack_wallet -p windows -v 2.4.4 -b 301
159
167
```
160
168
161
169
### Running
@@ -255,17 +263,33 @@ flutter run macos
255
263
## Windows host
256
264
257
265
### Visual Studio
258
-
Visual Studio is required for Windows development with the Flutter SDK. Download it at https://visualstudio.microsoft.com/downloads/ and install the "Desktop development with C++", "Linux development with C++", and "Visual C++ build tools" workloads. You may also need the Windows 10, 11, and/or Universal SDK workloads depending on your Windows version.
266
+
Visual Studio 2022 is required for Windows development with the Flutter SDK. Download it at https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history and install the "Desktop development with C++", "Linux development with C++", and "Visual C++ build tools" workloads. You may also need the Windows 10, 11, and/or Universal SDK workloads depending on your Windows version.
259
267
260
268
### Build plugins in WSL2
261
269
Set up Ubuntu 24.04 in WSL2. Follow the entire Linux host section in the WSL2 Ubuntu 24.04 host to get set up to build. The Android Studio section may be skipped in WSL (it's only needed on the Windows host).
262
270
263
271
Install the following libraries:
264
272
```
265
-
sudo apt-get install libgtk2.0-dev
273
+
sudo apt-get install libgtk2.0-dev nasm mingw-w64
274
+
```
275
+
276
+
The WSL2 host may optionally be navigated to the `stack_wallet` repository on the Windows host in order to build the plugins in-place and skip the next section in which you copy the `dll`s from WSL2 to Windows.
277
+
278
+
In this case, you need to enable "metadata" in your wsl setup to be able to modify files on your Windows filesystem.
The WSL2 host may optionally be navigated to the `stack_wallet` repository on the Windows host in order to build the plugins in-place and skip the next section in which you copy the `dll`s from WSL2 to Windows. Then build windows `dll` libraries by running the following script on the WSL2 Ubuntu 24.04 host:
292
+
Then build windows `dll` libraries by running the following script on the WSL2 Ubuntu 24.04 host:
269
293
270
294
-`stack_wallet/scripts/windows/build_all.sh`
271
295
@@ -296,11 +320,27 @@ Enable Developer Mode for symlink support,
296
320
start ms-settings:developers
297
321
```
298
322
299
-
You may need to install NuGet and CppWinRT / C++/WinRT SDKs version `2.0.210806.1`:
or [download the package](https://www.nuget.org/packages/Microsoft.Windows.CppWinRT/2.0.210806.1) and [manually install it](https://github.com/Baseflow/flutter-permission-handler/issues/1025#issuecomment-1518576722) by placing it in `flutter/bin` with [nuget.exe](https://dist.nuget.org/win-x86-commandline/latest/nuget.exe) and installing by running `nuget install Microsoft.Windows.CppWinRT -Version 2.0.210806.1` in the root `stack_wallet` folder.
305
345
<!-- TODO: script this NuGet and WinCppRT installation -->
306
346
@@ -309,16 +349,18 @@ or [download the package](https://www.nuget.org/packages/Microsoft.Windows.CppWi
309
349
Certain test wallet parameter and API key template files must be created in order to run Stack Wallet on Windows. These can be created by script using PowerShell on the Windows host as in
0 commit comments