Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.73 KB

File metadata and controls

41 lines (36 loc) · 1.73 KB

Building OpenTESArena with Visual Studio + vcpkg

Setting up build environment

  1. Install the latest Visual Studio Community with the C++ for Games workload
  2. Install cmake and git

Installing vcpkg

The easiest way to build the dependencies is with vcpkg.

  1. Clone vcpkg to C:/Tools/vcpkg/:
cd C:\Tools\vcpkg\
git clone https://github.com/Microsoft/vcpkg.git .
  1. Run the bootstrapper in the root folder:
.\bootstrap-vcpkg.bat
  1. Install the dependencies:
.\vcpkg install sdl2 openal-soft wildmidi --triplet x64-windows

Building

  1. Create a build directory and navigate into it
  2. 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 OFF in 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
  1. Open the file OpenTESArena.sln in Visual Studio
  2. Make sure otesa in the solution hierarchy is set as the startup project
  3. Select Build -> Build Solution
  4. Compilation is done when you can read something like the following in the bottom text output window:
========== Build: succeeded ==========