forked from stellar/stellar-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL-Windows.txt
61 lines (50 loc) · 3.4 KB
/
INSTALL-Windows.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Installation Instructions
*************************
Build Dependencies
==================
- Make sure you have Windows 64 bit Version
* try Settings -> System -> About and look under System Type
* When in doubt, see http://www.tenforums.com/tutorials/4399-system-type-32-bit-x86-64-bit-x64-windows-10-a.html
- Download and install `Visual Studio 2015 Update 1` (for Visual C++) ; the Community Edition is free and fully functional.
* https://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx
* http://blogs.msdn.com/b/visualstudio/archive/2015/11/30/visual-studio-update-1-rtm.aspx
- Download and install PostgreSQL 9.4.8 from https://www.enterprisedb.com/download-postgresql-binaries
The default project file defines USE_POSTGRES and links against it.
* Pick a directory for the database
* Set an admin password for the database
* Accept the default port (5432)
* Accept `default` for the locale (not clear if anything depends on this. The `default` locale will presumably depend on your
operating system's setting might cause inconsistencies)
* Add `c:\Program Files\PostgreSQL\9.4\bin` to your PATH (else the binary will fail to start, not finding `libpq.dll`)
* If you install postgres in a different folder, you will have to update the project file in two places: "additional include locations" and "Linker input"
If the installation fails, look into `%TEMP%\install-postgresql.log` for hints.
- OR if you don't want to use postgres you can select `DebugNoPostgres` as the build target.
- In order to compile xdrc and run the binary you will need to either
* Download and install MinGW from http://sourceforge.net/projects/mingw/files/
* In the MinGW Installation Manager in `MSYS/MinGW Developer Toolkit` choose `Flex` and `Bison` packages for installation
* Add `C:\MinGW\msys\1.0\bin;C:\MinGW\bin` to the end of `%PATH%`
* Download and install cygwin from https://cygwin.com/install.html
* Get cygwin setup to install `Flex` and `Bison` and `gcc`
* Add `c:\cygwin64\bin` to the end of `%PATH%`
Note: if you're going to use 'cp'and 'mkdir' from cygwin (tests do),
make sure that your install is correct by trying to copy a
file from a `cmd.exe` console (not from a cygwin terminal).
`cp in.txt out.txt` and then try to open *out.txt* with
notepad. You should not get a permission denied error.
Note: both MinGW and CygWin may run into virtual memory address space
conflicts on modern versions of Windows. You will run into errors like
`Couldn't reserve space for mingw's heap, Win32 error 0`.
A workaround is to reboot until you can run `bison.exe` from a cmd.exe
prompt.
- If you do not have cURL installed
* Download and install/extract cURL from https://curl.haxx.se/download.html#Win64
* Add installation/extraction directory (e.g. `C:\Program Files\curl_7_47_1_x64`) to the end of `%PATH%`
- For making changes to the code, you should install the clang-format tool and Visual Studio extension, you can find both at http://llvm.org/builds/
Basic Installation
==================
- `git clone ...`
- `git submodule init`
- `git submodule update`
- Open the solution Builds\VisualStudio2015\stellarx.sln
- Pick the target architecture and flavor (e.g. x64, Release)
- Hit "Build Solution (F7)"