Skip to content

Commit

Permalink
Update documentation for windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblaesing committed Jan 18, 2021
1 parent 0b11d13 commit 1de0448
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions www/WindowsDevelopmentEnvironment.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,35 @@ export LIB="$(cygpath -m "$MSVC")/lib;$(cygpath -m "$WSDK")/lib"
### Prerequisites
Starting pont: A clean Windows 10 64-bit Installation with all patches

1. Install Visual C++ Build Tools 2019 (https://visualstudio.microsoft.com/downloads/)
* Install `Windows 10 SDK`, `MSVC v142 - VS 2019 C++-x64/x86-Buildtools`, `Windows Universal CRT SDK`
2. Install AdoptOpenJDK 8.0.222.10 for the target architecture (https://adoptopenjdk.net/index.html)
1. Install "Visual Studio Community 2019" or the "Build Tools for Visual Studio 2019"
(https://visualstudio.microsoft.com/downloads/)
* Windows 10 SDK
* MSVC v142 - VS 2019 C++-x64/x86-Buildtools
* MSVC v142 - VS 2019 C++-ARM64-Buildtools
* Windows Universal CRT SDK
2. Install AdoptOpenJDK 8 for the target architecture (https://adoptopenjdk.net/index.html)
3. Install ant (https://ant.apache.org/bindownload.cgi).
3. Install Cygwin 64 Bit (https://cygwin.com/install.html)
- `make`, `automake`, `automake1.15`, `libtool`
- `git`
- `gcc-g++` (See table)
* make
* automake
* automake1.15
* libtool
* git
* gcc-g++ (See table)

| x86_64 | x86 | aarch64 |
|----------|-------|-----------|
| `gcc-g++`<br>`mingw64-x86_64-gcc-g++` <br>`mingw64-x86_64-gcc-core` | `gcc-g++`<br>`mingw64-i686-gcc-g++` <br>`mingw64-i686-gcc-core` | `gcc-g++` |

### Steps

_**Note**_: The paths below are samples and depend on the exact versions
installed. For example for "Visual Studio Community 2019" `vcvarsall.bat` can
be found here:
`C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat`,
while for "Build Tools for Visual Studio 2019" the file is found here:
`C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat`.

1. Open `cmd` for the following actions
2. Point `JAVA_HOME` to the root of the target JDK:
#### JAVA_HOME `x86_64`
Expand Down Expand Up @@ -103,9 +118,9 @@ Starting pont: A clean Windows 10 64-bit Installation with all patches
ant
```

... or if cross-compiling, specify the target architecture, e.g:
... or if cross-compiling, specify the target architecture and only build the native library, e.g:
```cmd
ant -Dos.prefix=win32-aarch64
ant -Dos.prefix=win32-aarch64 native
```

### Mingw Only
Expand Down

0 comments on commit 1de0448

Please sign in to comment.