Skip to content

Building with Debian or Ubuntu

Simone Starace edited this page Sep 3, 2023 · 8 revisions

Goal of this tutorial is to get a developer setup and run wargus without installation.

Prerequisites

Building of stratagus

It is required to build stratagus first by following one of the following links

Copy of the game WarCraft II

It is necessary to have either:

  • The GOG edition of the game (highly recommended).
  • The CD version of the game.

Building of wargus

Clone the wargus source code and change directory

git clone https://github.com/Wargus/wargus.git && cd wargus/

Inside the folder run cmake with the following arguments:

cmake CMakeLists.txt -DSTRATAGUS=/path/to/binary/stratagus -DSTRATAGUS_INCLUDE_DIR="/path/to/folder/stratagus/gameheaders"

  • -DSTRATAGUS=/path/to/binary/stratagus Is the path to the stratagus binary built from the source.
  • Insert in -DSTRATAGUS_INCLUDE_DIR the correct folder to your stratagus gameheaders
  • In case you activated stratagus debug options -DCMAKE_BUILD_TYPE=Debug please use stratagus-dbg binary

After this just run the make command

Data extraction process for Warcraft II

Inside the wargus directory execute the ./wargus command. Follow the dialog process and point to your Warcraft CD or folder.

Running Wargus

Inside the wargus folder simply run the command wargus.

The default directory for data is $HOME/.stratagus/data.Wargus or $HOME/.local/share/stratagus/data.Wargus