aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-09-22 10:42:40 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-09-22 10:42:40 -0500
commitd555ba55a9e71b6e58a176fe04a413c2d6575900 (patch)
tree527bfb17923e3158ce79d59a808fbcaf68566dd2 /README.md
parent1387fd4f9c8fab45f4726950efa088900443ff4d (diff)
parent2d464a126605827c550bafd1d98d5cbafca1cc57 (diff)
downloadmonzero-gui-d555ba55a9e71b6e58a176fe04a413c2d6575900.tar.gz
monzero-gui-d555ba55a9e71b6e58a176fe04a413c2d6575900.tar.xz
monzero-gui-d555ba55a9e71b6e58a176fe04a413c2d6575900.zip
Merge pull request #3099
2d464a1 docker: Windows static build (cross-compilation from Linux) (xiphon)
Diffstat (limited to 'README.md')
-rw-r--r--README.md26
1 files changed, 24 insertions, 2 deletions
diff --git a/README.md b/README.md
index d5a01fa8..26d84415 100644
--- a/README.md
+++ b/README.md
@@ -80,6 +80,28 @@ Packaging for your favorite distribution would be a welcome contribution!
*Note*: Qt 5.9.7 is the minimum version required to build the GUI.
+### Building Windows static binaries with Docker (any OS)
+
+1. Install Docker [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)
+2. Clone the repository
+ ```
+ git clone --recursive https://github.com/monero-project/monero-gui.git
+ ```
+3. Prepare build environment
+ ```
+ cd monero-gui
+ docker build --tag monero:build-env-windows --build-arg THREADS=4 --file Dockerfile.windows .
+ ```
+ \* `4` - number of CPU threads to use
+
+4. Build
+ ```
+ docker run --rm -it -v <MONERO_GUI_DIR_FULL_PATH>:/monero-gui -w /monero-gui monero:build-env-windows sh -c 'make depends root=/depends target=x86_64-w64-mingw32 tag=win-x64 -j4'
+ ```
+ \* `<MONERO_GUI_DIR_FULL_PATH>` - absolute path to `monero-gui` directory
+ \* `4` - number of CPU threads to use
+5. Monero GUI Windows static binaries will be placed in `monero-gui/build/x86_64-w64-mingw32/release/bin` directory
+
### Building Linux static binaries with Docker (any OS)
1. Install Docker [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)
@@ -90,13 +112,13 @@ Packaging for your favorite distribution would be a welcome contribution!
3. Prepare build environment
```
cd monero-gui
- docker build --tag monero:build-env-gui --build-arg THREADS=4 .
+ docker build --tag monero:build-env-linux --build-arg THREADS=4 --file Dockerfile.linux .
```
\* `4` - number of CPU threads to use
4. Build
```
- docker run --rm -it -v <MONERO_GUI_DIR_FULL_PATH>:/monero-gui -w /monero-gui monero:build-env-gui sh -c 'USE_SINGLE_BUILDDIR=ON DEV_MODE=ON make release-static -j4'
+ docker run --rm -it -v <MONERO_GUI_DIR_FULL_PATH>:/monero-gui -w /monero-gui monero:build-env-linux sh -c 'USE_SINGLE_BUILDDIR=ON make release-static -j4'
```
\* `<MONERO_GUI_DIR_FULL_PATH>` - absolute path to `monero-gui` directory
\* `4` - number of CPU threads to use