Skip to content

Building with Debian or Ubuntu

Andreas edited this page Sep 8, 2022 · 8 revisions

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

Building of stratagus

Get current building information from the maintained Travis CI build files: .travis.yml

So first install the dependency packages for building (tested on Ubuntu 20.04 and RetroPie):

sudo apt-get install python3 python3-pip cmake libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev liblua5.1-0-dev libtolua++5.1-dev libtolua-dev libtheora-dev libvorbis-dev libogg-dev libmng-dev libpng-dev zlib1g-dev libbz2-dev lldb gdb

clone the stratagus source on change to this folder

cmake CMakeLists.txt

  • check if the needed switches are activated (-D) otherwise run again with the needed switches
  • -DENABLE_DEV=ON -DCMAKE_BUILD_TYPE=Debug is helpful in case you provide bug reports (but please note the binary is then stratagus-dbg instead of stratagus
  • in case you use system LUA5.1 instead of the vendored version add -DLUA_INCLUDE_DIR=/usr/include/lua5.1 (or where ever your headers are)

make

clone the wargus source code and change to this folder

Building of wargus

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

  • in case you activated stratagus debug options -DCMAKE_BUILD_TYPE=Debug please use stratagus-dbg binary
  • insert in -DSTRATAGUS_INCLUDE_DIR the correct folder to your stratagus gameheaders

make

Data extraction process for Warcraft II

  • change to wargus folder

./wargus

  • follow the dialog process and point to your Warcraft CD or folder
  • this takes some minutes

Running Wargus

  • change to wargus folder

/path/to/binary/stratagus -d /path/to/wargus/data

  • the default directory for data is $HOME/.stratagus/data.Wargus
Clone this wiki locally