44
551 . Setup a windows virtual machine. Free images are available at [ here] ( https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ )
661 . Launch the virtual machine
7- 1 . Download Visual Studio Community Edition 2017
7+ 1 . Download Visual Studio Community Edition 2017 (these instructions also work with Visual Studio Professional 2017)
881 . Check the boxes for the _ Desktop development with C++_ and _ Linux Development with C++_
991 . In the summary portion on the right hand side also check _ C++/CLI support_
10101 . Click install
11111 . Download git-scm for windows [ here] ( https://git-scm.com/downloads/win )
12121 . Install git for windows using:
13- 1 . _ Use Git from Git Bash Only_ so it doesn't change any path settings of the command prompt
14- 1 . _ Checkout as is, commit Unix-style line endings_ . You shouldn't be commiting anything anyway but just in case
15- 1 . _ Use MinTTY_
16- 1 . Check all the boxes for:
17- 1 . Enable file system caching
18- 1 . Enable Git Credential Manager
19- 1 . Enable symbolic links
13+ 1 . _ Use Git from Git Bash Only_ so it doesn't change any path settings of the command prompt
14+ 1 . _ Checkout as is, commit Unix-style line endings_ . You shouldn't be commiting anything anyway but just in case
15+ 1 . _ Use MinTTY_
16+ 1 . Check all the boxes for:
17+ 1 . Enable file system caching
18+ 1 . Enable Git Credential Manager
19+ 1 . Enable symbolic links
20201 . Download rust for windows [ here] ( https://www.rust-lang.org/en-US/install.html )
21- 1 . Choose installation option * 1*
21+ 1 . Choose installation option * 1*
2222
2323## Get/build dependencies
2424
@@ -56,19 +56,19 @@ git clone https://github.com/hyperledger/indy-sdk.git
5656
5757Download http://www.sqlite.org/2017/sqlite-amalgamation-3180000.zip
5858
59- Create empty static library project and add sqlite.c file and 2 headers from extracted
59+ Create an empty static library project in Visual Studio and add ` sqlite.c ` file and 2 headers from extracted
6060archive. Then just build it.
6161
6262### Build libzmq
6363
64- Follow to https:// http://zeromq.org/intro .
64+ Follow to http://zeromq.org/intro .
6565- Download sources from last stable release for Windows.
66- - launch zeromq-x.x.x/builds/msvc/vs2015/libzmq.sln.
67- - if necessary change solution platforms on x64(if you are working on x64 arch).
68- - on main menu bar choose build->build libzmq.
69- - if build project was succeed, in path zeromq-x.x.x/bin/x64/Debug/vXXX/dynamic has appeared
70- two files libzmq.dll and libzmq.lib .
71- - rename libzmq.lib to zmq.lib.
66+ - Open ` zeromq-x.x.x/builds/msvc/vs2015/libzmq.sln ` with Visual Studio
67+ - If necessary change solution platforms on x64(if you are working on x64 arch).
68+ - On main menu bar choose build->build libzmq.
69+ - If build project was successful, two files ` libzmq.dll ` and ` libzmq.lib ` should appear
70+ in path ` zeromq-x.x.x/bin/x64/Debug/vXXX/dynamic ` .
71+ - rename ` libzmq.lib ` to ` zmq.lib ` .
7272
7373## Build
7474
@@ -82,18 +82,19 @@ Follow to https://http://zeromq.org/intro.
8282 ```
8383
8484 Note that depending on the version of Visual Studio placement of vcvars64.bat can be different. For example, it can be
85- ` C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat `
86- - execute "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
85+ ` " C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat" `
86+ - Execute ` "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" `
8787- Point path to this directory using environment variables:
88- - set INDY_PREBUILT_DEPS_DIR=C:\BIN\x64
89- - set INDY_CRYPTO_PREBUILT_DEPS_DIR=C:\BIN\x64
90- - set MILAGRO_DIR=C:\BIN\x64
91- - set LIBZMQ_PREFIX=C:\BIN\x64
92- - set SODIUM_LIB_DIR=C:\BIN\x64
93- - set OPENSSL_DIR=C:\BIN\x64
94- - set PATH to find .dlls:
95- - set PATH=C:\BIN\x64\lib;%PATH%
96- - change dir to indy-sdk/libindy and run cargo (you may want to add --release --target x86_64-pc-windows-msvc keys to cargo)
88+ - ` set INDY_PREBUILT_DEPS_DIR=C:\BIN\x64 `
89+ - ` set INDY_CRYPTO_PREBUILT_DEPS_DIR=C:\BIN\x64 `
90+ - ` set MILAGRO_DIR=C:\BIN\x64 `
91+ - ` set LIBZMQ_PREFIX=C:\BIN\x64 `
92+ - ` set SODIUM_LIB_DIR=C:\BIN\x64 `
93+ - ` set OPENSSL_DIR=C:\BIN\x64 `
94+ - Set PATH to find .dlls:
95+ - ` set PATH=C:\BIN\x64\lib;%PATH% `
96+ - change dir to ` indy-sdk/libindy ` and run ` cargo build ` (you may want to add ` --release --target x86_64-pc-windows-msvc `
97+ keys to cargo)
9798
9899## openssl-sys workaround
99100
@@ -109,7 +110,7 @@ and add
109110 println!("cargo:rustc-link-lib=dylib=gdi32");
110111```
111112
112- to the end of main() function.
113+ to the end of ` main() ` function.
113114
114115Then try to rebuild whole project.
115116
0 commit comments