Skip to content
Oliver Lau edited this page Jul 11, 2017 · 28 revisions

Build for Linux

Prerequisites

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

If you get an compile error like error: ‘class QPlainTextEdit’ has no member named ‘setPlaceholderText’ you're probably using an outdated Qt version.

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).

Debian 9

On your console execute the following commands:

  1. To install missing packages:
su -
apt-get install git make g++ binutils qt5-default qt5-qmake qttools5-dev-tools
exit

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

Xubuntu 14.10 / Xubuntu 15.04 / Ubuntu 15.10

On your console execute the following commands:

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

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-g++ binutils rpm-build

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