- Install the latest Visual Studio Community with the C++ for Games workload
- Install cmake and git
The easiest way to build the dependencies is with vcpkg.
- Clone vcpkg to
C:/Tools/vcpkg/:
cd C:\Tools\vcpkg\
git clone https://github.com/Microsoft/vcpkg.git .- Run the bootstrapper in the root folder:
.\bootstrap-vcpkg.bat- Install the dependencies:
.\vcpkg install sdl2 openal-soft wildmidi --triplet x64-windows- Create a
builddirectory and navigate into it - Create .sln solution files with
cmake:
cmake -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..- Warning: Jolt Physics enables CPU features which may cause illegal instruction errors. You can set these
OFFin CMake (more information)-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
- Open the file OpenTESArena.sln in Visual Studio
- Make sure
otesain the solution hierarchy is set as the startup project - Select Build -> Build Solution
- Compilation is done when you can read something like the following in the bottom text output window:
========== Build: succeeded ==========