Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 1.46 KB

HOWTO-Build (linux).md

File metadata and controls

72 lines (48 loc) · 1.46 KB

How to Build on Linux

Requires FFmpeg 8 to build and run.

RealRTCW 5.3 is the last version that does not require FFmpeg.

Prerequisites

Arch Linux

# Install required packages:
sudo pacman -S git base-devel ffmpeg

Fedora 44

Required package ffmpeg-devel is available in RPM Fusion free repository.

# Add RPM Fusion free repository
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
# Install required packages:
sudo dnf install git make gcc gcc-c++ sdl2-compat sdl2-compat-devel ffmpeg ffmpeg-devel --allowerasing

Ubuntu 26.04

# Install required packages:
sudo apt install git build-essential libsdl2-dev ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev

Pull Source

git clone https://github.com/wolfetplayer/RealRTCW
cd RealRTCW

The current main branch may be ahead of the released mod files. For compatibility, switch to the corresponding release tag (latest at the time of writing: 5.4). You can return using git switch -.

# Switch to tag 5.4 to match 5.4 mod files
git checkout tags/5.4

Build

# Run from RealRTCW directory
make

Output files are in a subdirectory under build directory.

# Output files (x86_64 architecture as example):
main/cgame.sp.x86_64.so
main/qagame.sp.x86_64.so
main/ui.sp.x86_64.so
RealRTCW.x86_64
renderer_sp_opengl1_x86_64.so