Skip to content

Developer Getting Started: Linux

Cong edited this page Oct 25, 2015 · 25 revisions

WARNING: This document is out of date; C-Dogs SDL is now built using SDL2. Please check back later for updated instructions.

Prerequisites

  • git
  • cmake
  • libsdl1.2-dev, libsdl-mixer1.2-dev, libsdl-image1.2-dev
  • libncurses5-dev
  • libphysfs-dev (optional)

Clone repo

  1. Clone the repo to a location (e.g. ~/cdogs-sdl) using git clone --recursive https://github.com/cxong/cdogs-sdl.git cdogs-sdl

  2. You should now see the repo contents in ~/cdogs-sdl

  3. C-Dogs SDL includes several submodules, some recursively, so use the following git commands: git submodule init; git submodule update --init --recursive; git submodule update --recursive

Run CMake and build

  1. The CMake and build commands are conveniently packaged into the make.sh shell script, so just run it

  2. Run cdogs-sdl in src/ directory. You are ready to go!