Computer Science 491
Senior Seminar

Dickinson College
Fall Semester 2018
Grant Braught

Building a FOSS Project
Introduction

While some H/FOSS software is available as binary (executable) packages, much of it is available only in source code form, and requires that you build it yourself before you can run it. Even when binary packages are available, if you are going to contribute to the project by modifying, extending or patch the code, you'll need to get the source code and be able to build the executables yourself.

The tutorial below will introduce you to the two most common build tools used H/FOSS projects, configure and make. It will also walk you through the use of these tools in a small HelloWorld project. In this activity you will install a full-scale FOSS project that uses configure and make. This will obviously require that you use configure and make, but will also require you to, as is quite typical, find and install some additional dependencies and deal with imperfect installation instructions.

Prerequisites

Before starting work through the tutorial below. The Hello World example will introduce you to the use of the unix autotools and the configure and make tools:

Assignment

Your task is to download, configure, build and install Freeciv - "a Free and Open Source empire-building strategy game inspired by the history of human civilization." You should do this in Ubuntu within VirtualBox. Ideally, begin from the last snapshot you created during the Software Installation Activity.

The following broad steps will help to guide you through the process. However, at each step you may need to consult the project installation directions, install unmet dependencies, debug errors and Google to find additional information.

Download / Unpack

README and INSTALL

Configure

Make

Install

Run

Clean


Acknowledgements: This assignment builds from and adapts ideas and content from the following activities created by others: