generated from BlockchainCommons/secure-template
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from gorazdko/build_on_windows
Build on windows
- Loading branch information
Showing
10 changed files
with
88 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
## Seedtool on Windows | ||
|
||
### Abstract | ||
|
||
This document describes building `seedtool` with `MSYS2` and its usage on `Windows 10` 64-bit. | ||
|
||
### Installing MSYS2 and Packages | ||
|
||
* First, install `MSYS2` by downloading the installer and following the installation guide in [www.msys2.org](www.msys2.org). | ||
|
||
* Run `MSYS2` and make sure the package database is updated: | ||
|
||
```bash | ||
# pacman -Syu | ||
# pacman -Su | ||
``` | ||
|
||
* Next, install the compiler and the required packages: | ||
|
||
```bash | ||
# pacman -S mingw-w64-x86_64-clang | ||
# pacman -S patch | ||
# pacman -S git | ||
# pacman -S make | ||
# pacman -S mingw-w64-x86_64-libc++ | ||
# pacman -S autoconf | ||
# pacman -S automake1.8 | ||
``` | ||
|
||
### Compiling | ||
|
||
First, clone `bc-seedtool-cli`, e.g. into `C:\msys64\home`, open `MSYS2 MinGW 64-bit` application and `cd` into `C:\msys64\home\bc-seedtool-cli` | ||
|
||
* Now, run the build script with: | ||
|
||
```bash | ||
# export CC="clang" && export CXX="clang++" && ./build.sh | ||
``` | ||
|
||
* and install: | ||
|
||
```bash | ||
# make install | ||
``` | ||
|
||
You can now freely use `seedtool` inside `MSYS2 MinGW 64-bit` console. | ||
|
||
|
||
### Running Seedtool as a Native Windows App | ||
|
||
To be able to use `seedtool` as a native app on Windows outside `msys2/mingw64`, you have to expose 3 files to the system: `seedtool.exe`, `libc++.dll` and `libunwind.dll` which all reside in `C:\msys64\mingw64\bin`. So go ahead and add that folder to the `Windows PATH` by the following command in `Windows Cmd`: | ||
|
||
```bash | ||
set PATH=%PATH%;C:\msys64\mingw64\bin | ||
``` | ||
|
||
That's it. Now you can use `seedtool` as a native Windows app in the Windows command line tool. | ||
|
||
|
||
*Note:* If you want to pipe seedtool ouput into a QR code generator, you could use: | ||
|
||
```bash | ||
seedtool --ur | python -c "import sys; print(sys.stdin.readlines()[0].upper())" | qr > seedqrcode.png | ||
``` | ||
|
||
For this you'll need `Python` and the following package: | ||
|
||
```bash | ||
pip install qrcode[pil] | ||
``` | ||
|
Submodule argp-standalone
updated
3 files
+4 −0 | argp-standalone/argp-eexst.c | |
+3 −3 | argp-standalone/argp-test.c | |
+16 −1 | argp-standalone/argp.h |
Submodule bc-crypto-base
updated
4 files
+74 −0 | CLA-signed/CLA.gorazdko.41F0EA1699A74C1E2FA41B538CF96BC3FF9DBBCE.asc | |
+8 −2 | src/Makefile.in | |
+2 −0 | src/crc32.c | |
+6 −0 | test/Makefile.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters