guh - Developer documentation

Set up the build environment

Video for this tutorial

Assuming you are working on an Ubuntu system here are the steps how to set up the build environment. Basically you can choose your prefered SDK but all tutorials are based on the Qt Creator and we recommand to use that one. You can also use the Ubuntu SDK, which is basically a modified Qt Creator.

Note: Please take care that you are using the Qt version from the system for building. The guh server will allways be built with the official Qt version for the appropriate system version. The plugin must have the same version like the guh server.

Install Qt

In the first step you need to install the Qt libraries:

$ sudo apt-get install qtcreator qt5-default qtbase5-dev python dpkg-dev debhelper hardening-wrapper

Install guh dependencys

You can find a good instructions how to install the guh repository on your system here:

guh install wiki

For example, if you are working on Ubuntu 15.04 Vivid, you can create a source list file and add the guh repository like this:

$ sudo nano /etc/apt/sources.list.d/guh.list

Copy following 3 lines in the /etc/apt/sources.list.d/guh.list file, save and close it

## guh repo
deb http://repo.guh.guru vivid main
deb-src http://repo.guh.guru vivid main

Now you need to add the public key of the guh-repository to your key list with following command:

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 6B9376B0

Update your package lists:

$ sudo apt-get update

Now you are ready to install the guh packages:

$ sudo apt-get install guh guh-webinterface guh-cli guh-doc libguh1-dev

Once you have successfully installed everything you are ready for Getting started.