Wiki

Clone wiki

Caesaria / Compiling

This page describes how to get latest unstable version of the code. Unless you want to actively follow and contribute to development

General prerequisites

You'll need:

  • An adequately high-spec computer:
  • At least 500MB of free disk space
  • At least 1GB of RAM for compiling
  • 32 or 64-bit x86-compatible CPU, or an ARMv5+ processor
  • Modern graphics hardware is also recommended, though the game can run on fairly old devices

One of the following operating systems:

  • Windows (7 or newer)
  • Linux
  • OS X (10.7/Lion or newer)

Update system software (Windows service packs, graphics driver updates, etc) Some technical proficiency. We try to make the building process as smooth and painless as possible, but it's designed to be followed by programmers - if you just want to play the game, use a prebuilt packages from https://sourceforge.net/projects/opencaesar3/files/bin/.

Linux

CaesarIA may work on most modern Linux distributive, on x86/amd64. See below for depends for your distro.

Dependencies

At first you need to install standard development libraries, most of usable libraries have local sources in repo and linking static to executable:

  • CMake
  • GCC (at least 4.6, required by C++11 features)
  • git
  • qtcreator as code editor (but it not mainly need for game compile)

Debian / Ubuntu

On Debian or Ubuntu 14.04 or later install the required dependencies with:

  • $ sudo apt-get install build-essential g++ ctags git cmake p7zip-full wget qtcreator

Fedora

Install the dependencies with:

  • $ sudo yum install make automake gcc gcc-c++ ctags cmake git p7zip wget

openSUSE

Install the dependencies with:

  • $ sudo zypper install make automake gcc gcc-c++ ctags cmake git p7zip wget

Getting the code

CaesarIA is developed on bitbucket git repository. To get latest code from repo, run this command:

  • $ git clone git@bitbucket.org:dalerank/caesaria.git caesaria

if you want update sources to latest revision from exist run

  • $ git pull origin master

Note: Make sure that the repo directory doesn't contain special characters (spaces or non-ASCII characters)

Building

Now you should run workspace script and compile game from source code:

  • $ cd xcompile
  • *$ chmod a+x update-workspace.sh
  • $ ./update-workspace.sh

Running

If compiling process done well and executable worked, you finally time to run the game:

  • $ cd bin
  • $ ./caesaria.linux

Windows

Linux 4 Windows

Mac OS

Updated