Building Rolisteam
Com col·laborar
First of all, read the page about contributions
Requisits
- Qt6.10
- cmake
Obtenció del codi font
First, clone Rolisteam repository: git clone -r https://invent.kde.org/rolisteam/rolisteam.git.
Construcció
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
#Configuració
cmake -S .. -B . #OPTIONS if needed see below
#Construcció
cmake --build . --target all
#Instal·lació
cmake --install .
Useful CMake options
| Opció | Descripció |
|---|---|
| -DCMAKE_PREFIX_PATH:PATH | Camí a la instal·lació de les Qt6 - p. ex: /camí/a/qt/6.10.0/gcc_64 |
| -DCMAKE_C_COMPILER:FILEPATH | Camí al compilador de C - p. ex: /bin/gcc |
| -DCMAKE_CXX_COMPILER:FILEPATH | Camí al compilador de C++ - p. ex: /bin/g++ |
| -DQT_QMAKE_EXECUTABLE:FILEPATH | Camí al QMake de la carpeta de la instal·lació de les Qt6 - p. ex: /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
- Executeu 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