Skip to content

Ubuntu Build Instructions

Clint Bellanger edited this page Nov 22, 2013 · 12 revisions

Simplified instructions for building Flare from source on Ubuntu.

This skips using git/github. So this is useful if you want to build the game once to try the latest version, but not if you want to stay up to date.

You need sudo permissions to build Flare.

Step 1: Download the code and data

Then uncompress both of these files somewhere temporary and easy to get back to. Like maybe your home folder. You should end up with one folder called "flare-engine" and one called "flare-game".

Step 2: Install the requirements

Engine building instructions can be found here: https://github.com/clintbellanger/flare-engine/blob/master/INSTALL.engine

You're on Ubuntu so you want to run these commands on the terminal.

sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
sudo apt-get install cmake make g++

The first line installs SDL, an open-source C++ library for games. The second line installs tools to compile C++ projects, if they aren't already installed.

Step 3: Build

In a terminal, navigate to wherever you've uncompressed the flare-engine folder. Run these commands inside the flare-engine folder. Notice that the cmake command is followed by a space and a period!

cmake .
make

Now hopefully you have a flare executable file. Copy and paste this flare executable inside the flare-game folder. Now Flare is ready to run.

Clone this wiki locally