Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Compiling OTServ 0.7.0 under Windows using MinGW

Konrad Kuśnierz edited this page Feb 20, 2015 · 2 revisions

This guide describes how to install OTServ using MinGW on Windows. Begin by opening up the command tool.

Step 1: Install MinGW or Dev-C++

You need to make sure that gcc version in MinGW is at least 4.6

Step 2: Install packages

You need to download Dev-C++ packages and install them within MinGW directory for following libraries:

  • boost
  • gmp
  • lua 5.1
  • libxml2
  • sqlite3
  • mysql

Step 3: Download sources

Download a .zip of the server master branch here: https://github.com/opentibia/server/zipball/master and extract it to C:/ drive.

Step 4: Configure & Compile

In the terminal navigate to otserver directory and create build directory:

cd C:\opentibia-server-<long code, hit tab to autocomplete it>
mkdir build
cd build

Start the compilation, but first notice attributes of CMake and change it accordingly to your location of MinGW:

cmake -DCMAKE_INCLUDE_PATH=C:/MinGW/include/ -DCMAKE_LIBRARY_PATH=C:/MinGW/lib/ -DUSE_MYSQL=On -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Performance ..
make -j2