Contribute to GNOME Apps

Second meeting - Build Your First GNOME App

Introduction

This is the second activity in the Contribute to GNOME Apps series. Do you want to start from the beginning? Check out the first activity which will introduce you to choosing a GNOME Azpp and the GNOME community.

In this meeting participants learn will how to use GNOME's IDE, Builder, to build the code for the App they chose in the last meeting.

Get FlatPak - 10'

During the last meeting, your group identified a GNOME App to work on.

To contribute to a project, it is first necessary to set up a development environment with the latest version. This will allow you to make changes, test them, and create patches. This tutorial describes how to do this using Flatpak and an IDE called Builder. This is the recommended method for new contributors, and is the easiest way to get started.

If you would prefer to use the command line or a different IDE, an experimental developer command line tool is available. It is also possible to use JHBuild, GNOME's build tool for system components and apps that don't support Flatpak.

Flatpak is a technology for installing and distributing applications. This tutorial requires Flatpak version 0.9.2, which is available in most distributions. Installing it is usually just a matter of installing the flatpak package.

Note for Ubuntu users: Install a package called 'tracker', it will be necesary for most of the apps.

After you install or update Flatpak, restart your system so it will work properly. Even if it seems to work, restart your system.

See the Flatpak website for details on how to install it on a wide range of distributions.

Install Builder, GNOME's IDE - 5'

Builder allows you to download and build GNOME applications. It uses Flatpak to compile and run your project in a sandbox. To get started, download Builder using the button below:

Download Builder

Once Builder has been downloaded you can install it. If you have GNOME Software 3.22.7 or newer, you can just double click on the Builder flatpakref file. Otherwise, run the following in the terminal:

  • flatpak install ~/Downloads/gnome-builder.flatpakref -y

Once it has been installed, Builder can be launched in the same way that you launch other applications. It's now time to build your project!

Install Git - 5'

Determine which Linux distribution your system is based on. See List of Linux distributions on Wikipedia if you need help determining this.


Debian-based linux systems

Open a terminal. Copy and paste the following into the terminal window and hit Return. You may be prompted to enter your password.

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get install git

Red Hat-based linux systems

Open a terminal. Copy and paste the following into the terminal window and hit Return. You may be prompted to enter your password.

  • sudo yum upgrade
  • sudo yum install git

Download and Build an App - 10'

Builder allows you to easily download and build the project that you want to work on. To do this, just follow these instructions: