Salta fins al contingut

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:PATHCamí cap a la instal·lació de les Qt6 - p. ex: /camí/a/qt/6.10.0/gcc_64
-DCMAKE_C_COMPILER:FILEPATHCamí cap al compilador de C - p. ex: /bin/gcc
-DCMAKE_CXX_COMPILER:FILEPATHCamí cap al compilador de C++ - p. ex: /bin/g++
-DQT_QMAKE_EXECUTABLE:FILEPATHCamí cap a 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: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. Executeu 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