Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.31 KB

setup_windows.md

File metadata and controls

39 lines (29 loc) · 1.31 KB

OpenTESArena build manual for Visual Studio

This document describes how to setup a build environment for building with Visual Studio.

Setup build environment

  1. Install Visual Studio Community 2019 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 move into it
  2. Create solution files with cmake:
cmake -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
  1. Open the file OpenTESArena.sln and in Visual Studio, do the following from the menu: Build -> build Solution

  2. The compilation is done when you can read something like the following in the bottom text output window:
    ========== Build: succeeded ==========