Skip to content

Developer Getting Started: Linux

cxong edited this page Oct 31, 2014 · 25 revisions

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!