User Tools

Site Tools


This is an old revision of the document!

Note: You can skip this section if you only want to test the pre-built binary images.

Setting up your build environment

If you intend to create or modify any software, you need a working build environment. The build environment consists of a number of command line tools:

  • gbs: Git Build System - use this for building software components
  • mic: MeeGo Image Creator - use this for building system images
  • osc: openSUSE buildsystem commander - use this for remote builds

You can find these tools from Use the instructions below to install them to your development system. You can copy-paste the commands below. Note that the osc tool is installed automatically with gbs.

For Ubuntu 12.04 LTS:

$ sudo apt-add-repository 'deb /'
# Enter your password for sudo
$ sudo apt-get update
$ sudo apt-get install gbs
$ sudo apt-get install mic

Building an example package

Getting the source

First step in building is to get the source code and to import it using gbs.

$ mkdir dialog
$ cd dialog
$ wget
$ gbs import dialog-1.1-9.5.src.rpm

Configuration of gbs

Importing the acpid package with gbs creates a gbs configuration file. By default, gbs configuration file point to a different repository than what is used in this example. So, the mandatory step is setting the correct url.

Start you favourite editor, vi used in this example.

$ vi ~/.gbs.conf

Edit the file and match the url to the following:

url =

If you have a developer account, and you are planning to use the Tizen building system, you can add your profile data also. This is an optional step for local builds.

#CAUTION: please use the key name "passwd" to reset plaintext password

Save the configuration file and exit the editor (in vi, first hit ESC, then type :wq).

Compiling, compiling

The gbs will download needed dependencies from the url set up to the configuration. Thus, everything should be ready for building.

$ gbs build -A i586

This should result in installable repository in ~/GBS-ROOT/local/repos/tizen, containing packages built from your local source code.

ARM target

To build the packages for ARM (armv7 hardfloat) an adaption to your gbs.conf is needed:

$ vi ~/.gbs.conf

We need to add two new repo definitions and change the default for “repo=”:

repos = repo.arm_main, repo.arm_base

url =
url =

After these changes

$ gbs build -A armv7l


building_packages_from_source_code.1363704426.txt.gz · Last modified: 2013/03/19 14:47 by jsmoeller