Setting up a Stratagus development environment on Linux

Опубликовано: 11 Март 2026
на канале: Stratagus
1,032
11

Just a quick primer to get started with the development setup for Stratagus on Linux using VSCode. Everything shown is of course also possible to do from the commandline or with your IDE of choice. Here are the commands to get everything compiled outside of VSCode:

git clone https://github.com/Wargus/stratagus
git clone https://github.com/Wargus/wargus
git clone https://github.com/Wargus/war1gus

cmake -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -Hstratagus -Bstratagus/build -G "Unix Makefiles"

cmake -DSTRATAGUS_INCLUDE_DIR:STRING=stratagus/gameheaders -DSTRATAGUS:STRING=stratagus -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -Hwargus -Bwargus/build -G "Unix Makefiles"

cmake -DSTRATAGUS_INCLUDE_DIR:STRING=stratagus/gameheaders -DSTRATAGUS:STRING=stratagus -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -Hwar1gus -Bwar1gus/build -G "Unix Makefiles"

cmake --build stratagus/build --config Debug --target all -- -j 10
cmake --build wargus/build --config Debug --target all -- -j 10
cmake --build war1gus/build --config Debug --target all -- -j 10