Spring naar inhoud

Rolisteam bouwen

Hoe bij te dragen

Lees allereerst de pagina over bijdragen

Vereisten

  • Qt6.10
  • cmake

Broncode ophalen

Kloon eerst de Rolisteam-opslagruimte: git clone -r https://invent.kde.org/rolisteam/rolisteam.git.

Bouwen

Om het project te bouwen, kunt u ofwel het bestand CMakeLists.txt uit de hoofdmap van de rolisteam-broncode laden, of het via de opdrachtregel compileren zoals hieronder aangegeven:

#Ga naar de broncode
cd rolisteam

# Maak een bouwmap aan en ga erin staan
mkdir -p build
cd build

#Configuratie
cmake -S .. -B . #OPTIES (zie hieronder indien nodig)
#Bouwen
cmake --build . --target all

#Installeren
cmake --install .

# Als u alleen de server wilt installeren:
cmake --install . --component roliserverComp

Handige CMake-opties

OptieBeschrijving
-DCMAKE_PREFIX_PATH:PATHPad naar Qt6-installatie – bijv.: /pad/naar/qt/6.10.0/gcc_64
-DCMAKE_C_COMPILER:FILEPATHPad naar C-compiler - bijv.: /bin/gcc
-DCMAKE_CXX_COMPILER:FILEPATHPad naar cpp-compiler - bijv.: /bin/g++
-DQT_QMAKE_EXECUTABLE:FILEPATHPad naar QMake in de installatiemap van Qt6 – bijv.: /pad/naar/qt/6.10.0/gcc_64/bin/qmake
-DCMAKE_BUILD_TYPE:STRINGDebugversie of uitgaveversie
-DBUILD_TESTING:BOOLON og OFF - bouw testen van eenheden
-DCODE_COVERAGE:BOOLON of OFF - Genereer code-dekkingsinformatie na het uitvoeren van tests
-DUPDATE_TRANSLATIONS:BOOLON of OFF - Bestand met vertaling bijwerken

Installatieprogramma aanmaken

MacOS

WAARSCHUWING : VEROUDERD

  1. Kopieer/plak rolisteam.toepassing in packaging/MacOs
  2. Voer installZlib.sh uit
  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