Building for Linux
November 23, 2024 ยท View on GitHub
This is the main build procedure for Linux version.
Installing Go compiler
Your Go installation must be at least version 1.22.
If you have the supported version in your repository, you can install Go from there (golang package).
Otherwise, use Snap version
sudo snap install --classic go
or see official docs for manual installation.
Installing C compiler
sudo apt install gcc-multilib
Installing other dependencies
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libsdl2-dev:i386 libopenal-dev:i386
Building
cd src
go run ./internal/noxbuild
This should produce opennox, opennox-hd and opennox-server binaries.