User Tools

Site Tools


wiki:development:buildguide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:development:buildguide [2013/01/10 14:57]
kjellski
wiki:development:buildguide [2013/12/28 23:17]
sunweaver removed
Line 1: Line 1:
 ===== Building from source ===== ===== Building from source =====
 +
 +==== Create a place to work in ====
 +
 +Create a folder somewhere, whatever you prefer, but I would recommend to keep all the code in the same place. For example create one in you home directory
 +
 +<code>
 +mkdir -p ~/code/x2go && cd ~/code/x2go
 +</code>
  
 ==== Get the sources ==== ==== Get the sources ====
  
 First, you have to get the [[wiki:development:git|sources]]. There is already a "ready to clone" snippet [[wiki:development:git#checkout_all_repos| here]], to be pasted in any bash terminal. First, you have to get the [[wiki:development:git|sources]]. There is already a "ready to clone" snippet [[wiki:development:git#checkout_all_repos| here]], to be pasted in any bash terminal.
 +
 +You should now have cloned all repositories actually shown [[http://code.x2go.org/gitweb|at the gitweb here]].
  
 ==== Get the build and development dependencies ==== ==== Get the build and development dependencies ====
Line 10: Line 20:
  
 <code> <code>
-sudo apt-get install build-essential qt4-designer qtcreator +sudo apt-get install build-essential qt4-designer qtcreator qtcreator-doc 
-     qtcreator-doc qt4-demos qt4-doc qt4-dev-tools libqt4-dev \ +                     qt4-demos qt4-doc qt4-dev-tools libqt4-dev git 
-     git qt-sdk libldap2-dev libssh-dev libxpm-dev libcups2-dev \ +                     qt-sdk libldap2-dev libssh-dev libxpm-dev libcups2-dev \ 
-     debhelper doxygen man2html-base+                     debhelper doxygen man2html-base
 </code> </code>
 +
 +==== Build the actual code ====
 +
 +Before you build, consider this: when you're on the master branch, you're on the bleeding edge. This could contain any sort of errors or experimental code. Have a look at the available tags:
 +
 +<code>
 +git tag
 +</code>
 +
 +Also, you might want to have in mind, that the actual build is based on the branch **build-main**. Have a look at what's there with 
 +
 +<code>
 +git branch <TAB><TAB>
 +</code>
 +
 +Change to the branch or tag of project you want to build and **build the project** with: 
 +
 +<code>
 +debuild -us -uc
 +</code>
 +
 +