Skip to content

Building Rolisteam

## How to contribute

First of all, read the page about contributions

Requirements

  • Qt6.10
  • cmake

## Getting source

First, clone Rolisteam repository: git clone -r https://invent.kde.org/rolisteam/rolisteam.git.

Build

In order to build, you can either load the CMakeLists.txt file from the root directory of rolisteam source code directory, or you can compile it from command line as follow:

# Move to source
cd rolisteam

# Create build directory and move into it
mkdir -p build
cd build

# Configuration
cmake -S .. -B . # OPTIONS if needed see below

#Build
cmake --build . --target all

#Install
cmake --install .

Useful CMake options

OptionDescription
-DCMAKE_PREFIX_PATH:PATHPath to Qt6 installation - e.g: /path/to/qt/6.10.0/gcc_64
-DCMAKE_C_COMPILER:FILEPATHPath to c compiler - e.g: /bin/gcc
-DCMAKE_CXX_COMPILER:FILEPATHPath to cpp compiler - e.g: /bin/g++
-DQT_QMAKE_EXECUTABLE:FILEPATHPath to QMake in qt6 install folder - e.g: /path/to/qt/6.10.0/gcc_64/bin/qmake
-DCMAKE_BUILD_TYPE:STRINGDebug or Release
-DBUILD_TESTING:BOOLON or OFF - build unit tests
-DCODE_COVERAGE:BOOLON or OFF - Generate code coverage info after running tests
-DUPDATE_TRANSLATIONS:BOOLON or OFF - Update translation file

Create Installer

MacOS

WARNING : OUT OF DATE

  1. Copy/paste rolisteam.app into packaging/MacOs
  2. Run installZlib.sh
  3. appdmg nodedmg.json rolisteam_v1.7.1-MacOsX_setup.dmg
$ install_name_tool -change "/usr/lib/libz.1.dylib" "@executable_path/../Frameworks/libz.framework/libz.1.dylib" rolisteam
$ appdmg  ../../rolisteam/packaging/MacOS/nodedmg.json rolisteam_v1.7.1-MacOsX_setup.dmg