Skip to content
Oliver Lau edited this page Dec 7, 2015 · 28 revisions

Build for Linux

Prerequisites

  • Qt ≥ 5.3 including the modules "concurrent", "network" and "test"
  • C++ compiler that supports C++11, e.g. GCC C++ ≥ 4.6

Ensuring pristine builds

In some cases qmake or qmake-qt5 don't rebuild the Makefiles correctly after updating the repo with git pull. This may lead to compiler, linker and runtime errors. To prevent these please execute

make clean
find . -type f -name Makefile -exec rm {} \;

before proceeding with qmake or qmake-qt5 (see below).

Ubuntu

(Tested on Xubuntu 14.10 and Ubuntu 15.10)

On your console execute the following commands:

  1. To install missing packages:
sudo apt-get install qt5-default qttools5-dev-tools g++

Optionally: sudo apt-get install qtcreator

  1. To clone the repository (beforehand cd to a directory of your choice to store the cloned repository):
git clone git://github.com/ola-ct/Qt-SESAM.git
  1. To enter project directory:
cd Qt-SESAM
  1. To update the language files (currently only for German)
lrelease Qt-SESAM/Qt-SESAM.pro
  1. To build
qmake
make
make check

openSUSE Tumbleweed

Install required Qt5 libraries and tools:

sudo zypper install libqt5-qtbase-common-devel \
  libqt5-qttools-devel \
  libQt5Concurrent-devel \
  libQt5Network-devel \
  libQt5Test-devel 

Clone repository:

git clone git://github.com/ola-ct/Qt-SESAM.git

Build Qt-SESAM:

cd Qt-SESAM
lrelease-qt5 Qt-SESAM/Qt-SESAM.pro
qmake-qt5
make

Fedora 23

Install required Qt5 libraries and tools:


```sudo dnf install qt5-linguist.x86_64 qt5-qttools.x86_64 qt5-qtbase.x86_64 qt5-qdoc.x86_64 qt5-qtscript.x86_64 qt5-qtwebkit.x86_64 qt5-qtbase-gui.x86_64 qt5-qtmultimedia.x86_64 qt5-assistant.x86_64 qt5-qtwebsockets.x86_64 qt5-designer.x86_64 qt5-qt3d-devel.x86_64 qt5-qttools-libs-help.x86_64 qt5-qtsvg-devel.x86_64 qt5-qtbase-devel.x86_64 qt5-qtimageformats.x86_64 qt5-qttools-devel.x86_64 poppler-qt5-devel.x86_64 qt5-qtscript-devel.x86_64 qt5-qtgraphicaleffects.x86_64 qtkeychain-qt5-devel.x86_64 qt5-qtmultimedia-devel.x86_64 qcommandline-qt5-devel.x86_64 qt5-qttools-libs-designercomponents.x86_64 qtsingleapplication-qt5-devel.x86_64 gcc 

Clone repository:

git clone git://github.com/ola-ct/Qt-SESAM.git

Build Qt-SESAM:

cd Qt-SESAM
lrelease-qt5 Qt-SESAM/Qt-SESAM.pro
qmake-qt5
make
Clone this wiki locally