Compilation

This guide describes how to compile Cabrio from source on Unix-like or Windows platforms. It is assumed you have a working C compiler on your system. On Unix, gcc is known to work. The Windows build is compiled using MinGW.

Prerequisits

Cabrio makes use of a number of standard software libraries which must be installed, along with their headers/development packages, in order for it to compile.

You'll also need a "make" utlity (GNU make works fine). Consult your distribution's documentation for details on how to install these packages or, if you prefer, download the sources and compile them yourself. If you're using a Debian-like operating system, such as Ubuntu or its derivatives, you can do something like:

sudo apt-get install gcc make libc6-dev
sudo apt-get install libavcodec-dev libavutil-dev libavformat-dev \
 libglut3-dev libsdl1.2-dev libsdl-image1.2-dev libsdl-gfx1.2-dev \
 libsdl-mixer1.2-dev libsdl-ttf2.0-dev libswscale-dev libxml2-dev zlib1g-dev

Windows users can also make use of binary packages of the above libraries, provided the matching headers are properly installed.

Compiling & Installing

On Unix-like systems:

  1. Get the sources from the download page.
  2. Extract the archive (e.g. "tar -xzf cabrio-0.8.0.tar.gz").
  3. Enter the directory you just unpacked (e.g. "cd cabrio-0.8.0").
  4. If you want to install anywhere other than /usr/local/, edit the BIN_DIR and DATA_DIR parameters in the Makefile.
  5. Compile the program by typing "make".
  6. Install the program and data files using "make install" (you will probably need to do this as root, unless you edited the paths in the Makefile).

On Windows:

  1. Get the sources from the download page.
  2. Extract the archive (e.g. "tar -xzf cabrio-0.8.0.tar.gz").
  3. Enter the directory you just unpacked (e.g. "cd cabrio-0.8.0").
  4. Compile the program by typing "mingw-make -f Makefile.mingw".
  5. Cabrio can be run from the build directory, but it may be preferable to copy the following files to another directory:
    • cabrio.exe
    • The "data" directory
    • The required DLL files