From Rolisteam
Jump to: navigation, search

Compile Rolisteam on Linux

To see the version of this page regarding the version 1.6 and previous, click here: CompilationLinuxV1.6.


Pre-requirements

Since v1.7, rolisteam is based on Qt5. Rolisteam uses the core, gui, widgets, printsupport, multimedia, modules.

With rolisteam v1.8, the modules quick, qml, quickwidgets are also needed.

You have to install these packages: Ubuntu 15.10 (or higher)

sudo apt-get install qt5-default qtbase5-dev-tools qt5-qmake libqt5network5 zlib1g-dev build-essential git qtmultimedia5-dev libqt5core5a libqt5gui5 qttools5-dev-tools qtdeclarative5-dev

Older version of Ubuntu

sudo apt-get install qt5-default qtbase5-dev-tools qt5-qmake libqt5-gui libqt5-dev libqt5network5 zlib1g-dev build-essential git qtmultimedia5-dev libqt5core5a libqt5gui5 qttools5-dev-tools


Or you may install from Qt Sdk file or source code. Make sure you are using the Qt5 (Qt4 will not work).

Get Rolisteam Source code

Depending of what you want to compile.

The latest stable version

You can get the source code of the latest stable version: here

The unstable version

Two ways:

-clone it from github

 git clone --recursive git@github.com:Rolisteam/rolisteam.git

-if you can't use git you may download both archive: Rolisteam and DiceParser

Extract source code

This step is needed while you get the source of latest stable version. You must extract the code source.

tar -xzvf rolisteam-1.7.1.tar.gz

or

unzip rolisteam-1.7.1.zip


If you get the source code from git, this step is not needed. Otherwise, you may get the source from the github page. So you need to do :

 unzip master.zip (from rolisteam)
 cd rolisteam/src
 unzip master.zip (from diceparser)
 mv DiceParser diceparser

Compile the source

cd rolisteam/
lrelease rolisteam.pro 
qmake -r rolisteam.pro
make
sudo make install 

(make sure to use qt5 qmake)


start rolisteam

In terminal, just run:

rolisteam

it may be possible to find rolisteam on graphical user menu, depending of your system.

FAQ

Having trouble with Qt4 and Qt5

If qt4 and qt5 are both installed on your computer, that may cause troubles. While you compile Rolisteam v1.7.X (or higher), you must use qt5. So you may need to run

 lrelease-qt5 rolisteam.pro
 qmake-qt5 rolisteam.pro
 make


Make install ?

Since v1.7, you may run

make install