Building on Linux - Wargus/stratagus GitHub Wiki
Building Information
Get current building information from the maintained Travis CI build files:
Install dependencies
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
Compile the source code
Clone the stratagus source code and change directory
git clone --recurse-submodules https://github.com/Wargus/stratagus.git && cd stratagus
After that run the cmake
command
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 in the command the following switches:
-DLUA_INCLUDE_DIR=/usr/include/lua5.1
(or where ever your headers are)-DLUA_LIBRARIES=/usr/lib/x86_64-linux-gnu/liblua5.1.so
(or where ever your library is)
After this just run the make
command.