Skip to content

Commit 7c32b7a

Browse files
authored
Updated setup_windows.md.
Jolt Physics disabling vector instructions, some other cleanup.
1 parent 1316684 commit 7c32b7a

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

docs/setup_windows.md

+20-18
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
# OpenTESArena build manual for Visual Studio
1+
## Building OpenTESArena with Visual Studio + vcpkg
22

3-
This document describes how to setup a build environment for building with Visual Studio.
4-
5-
## Setup build environment
6-
7-
1. Install [Visual Studio Community 2019](https://www.visualstudio.com/downloads/) with the C++ for games workload
3+
### Setting up build environment
4+
1. Install the latest [Visual Studio Community](https://www.visualstudio.com/downloads/) with the C++ for Games workload
85
2. Install [cmake](https://cmake.org/download/) and [git](https://git-scm.com/download)
96

10-
### Installing vcpkg
11-
The easiest way to build the dependencies is with [vcpkg](https://github.com/Microsoft/vcpkg)
7+
#### Installing vcpkg
8+
The easiest way to build the dependencies is with [vcpkg](https://github.com/Microsoft/vcpkg).
129

13-
1. Clone [vcpkg](https://github.com/Microsoft/vcpkg) to ```C:/Tools/vcpkg/```:
10+
1. Clone [vcpkg](https://github.com/Microsoft/vcpkg) to `C:/Tools/vcpkg/`:
1411
```PowerShell
1512
cd C:\Tools\vcpkg\
1613
git clone https://github.com/Microsoft/vcpkg.git .
@@ -25,15 +22,20 @@ The easiest way to build the dependencies is with [vcpkg](https://github.com/Mic
2522
.\vcpkg install sdl2 openal-soft wildmidi --triplet x64-windows
2623
```
2724

28-
## Building
29-
30-
1. Create a `build` directory and move into it
31-
2. Create solution files with `cmake`:
32-
25+
### Building
26+
1. Create a `build` directory and navigate into it
27+
2. Create .sln solution files with `cmake`:
3328
```PowerShell
3429
cmake -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
3530
```
36-
3. Open the file OpenTESArena.sln and in Visual Studio, do the following from the menu: Build -> build Solution
37-
38-
4. The compilation is done when you can read something like the following in the bottom text output window:
39-
```========== Build: succeeded ==========```
31+
- **Warning**: Jolt Physics enables CPU features which may cause illegal instruction errors. You can set these `OFF` in CMake ([more information](https://github.com/jrouwe/JoltPhysics/blob/20eedf47c4bf064e740c9de2f638a8c1d57ce2ed/Build/README.md#illegal-instruction-error))
32+
```bash
33+
-DUSE_SSE4_1=OFF -DUSE_SSE4_2=OFF -DUSE_AVX=OFF -DUSE_AVX2=OFF -DUSE_AVX512=OFF -DUSE_LZCNT=OFF -DUSE_TZCNT=OFF -DUSE_F16C=OFF -DUSE_FMADD=OFF
34+
```
35+
3. Open the file OpenTESArena.sln in Visual Studio
36+
4. Make sure `otesa` in the solution hierarchy is set as the startup project
37+
5. Select Build -> Build Solution
38+
6. Compilation is done when you can read something like the following in the bottom text output window:
39+
```
40+
========== Build: succeeded ==========
41+
```

0 commit comments

Comments
 (0)