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
| Option | Description |
|---|---|
| -DCMAKE_PREFIX_PATH:PATH | Path to Qt6 installation - e.g: /path/to/qt/6.10.0/gcc_64 |
| -DCMAKE_C_COMPILER:FILEPATH | Path to c compiler - e.g: /bin/gcc |
| -DCMAKE_CXX_COMPILER:FILEPATH | Path to cpp compiler - e.g: /bin/g++ |
| -DQT_QMAKE_EXECUTABLE:FILEPATH | Path to QMake in qt6 install folder - e.g: /path/to/qt/6.10.0/gcc_64/bin/qmake |
| -DCMAKE_BUILD_TYPE:STRING | Debug or Release |
| -DBUILD_TESTING:BOOL | ON or OFF - build unit tests |
| -DCODE_COVERAGE:BOOL | ON or OFF - Generate code coverage info after running tests |
| -DUPDATE_TRANSLATIONS:BOOL | ON or OFF - Update translation file |
Create Installer
MacOS
WARNING : OUT OF DATE
- Copy/paste rolisteam.app into packaging/MacOs
- Run installZlib.sh
- 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