PoorPockets McNewHold 7f627aaf92
Add missing vcpkg package for Fedora
```
BeamMP-Launcher on  master via △ v3.30.5 
 ❯ sudo dnf group info "Development Tools" 
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:48:01 le mer. 11 déc. 2024 08:39:18.
Groupe : Outils de développement
 Description : Ces outils comprennent des outils de développement principaux comme git et cvs.
 Paquets obligatoires :
   gettext
 Paquets par défaut :
   diffstat
   doxygen
   git
   patch
   patchutils
   subversion
   systemtap
 Paquets optionnels :
   buildbot
   colordiff
   cvs
   cvs2cl
   cvsps
   darcs
   dejagnu
   expect
   gambas3-ide
   git-annex
   git-cola
   git2cl
   gitg
   gtranslator
   highlight
   lcov
   manedit
   meld
   monotone
   myrepos
   nemiver
   qgit
   quilt
   rapidsvn
   rcs
   robodoc
   scanmem
   subunit
   svn2cl
   tig
   tortoisehg
   translate-toolkit
   utrac
```
vcpkg isn't part of the Development Tools group on Fedora.
2024-12-11 09:28:56 +01:00
2024-11-13 16:20:54 +01:00
2021-03-29 21:45:32 +03:00
2024-10-20 16:57:47 +02:00
2024-11-07 22:12:20 +01:00
2024-06-17 21:59:59 +02:00
2021-03-29 11:57:58 +03:00
2024-12-03 03:51:32 -05:00
2024-12-11 09:28:56 +01:00
2024-10-04 22:59:29 +02:00

BeamMP-Launcher

The launcher is the way we communitcate to outside the game, it does a few automated actions such as but not limited to: downloading the mod, launching the game, and create a connection to a server.

To clone this repository: git clone --recurse-submodules https://github.com/BeamMP/BeamMP-Launcher.git

How to build for Windows

Release

In the root directory of the project,

  1. cmake -DCMAKE_BUILD_TYPE=Release . -B bin -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
  2. cmake --build bin --parallel --config Release

Remember to change C:/vcpkg to wherever you have vcpkg installed.

Debug

In the root directory of the project,

  1. cmake . -B bin -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
  2. cmake --build bin --parallel

Remember to change C:/vcpkg to wherever you have vcpkg installed.

How to build for Linux

Make sure you have the necessary development tools installed

  • Debian: sudo apt install build-essential
  • Fedora: sudo dnf groupinstall "Development Tools" && sudo dnf install vcpkg
  • Arch: sudo pacman -S base-devel
  • openSUSE: zypper in -t pattern devel-basis

Release

In the root directory of the project,

  1. cmake -DCMAKE_BUILD_TYPE=Release . -B bin -DCMAKE_TOOLCHAIN_FILE=/~/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux
  2. cmake --build bin --parallel --config Release

Remember to change /~/vcpkg to wherever you have vcpkg installed.

Debug

In the root directory of the project,

  1. cmake . -B bin -DCMAKE_TOOLCHAIN_FILE=/~/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux
  2. cmake --build bin --parallel

Remember to change /~/vcpkg to wherever you have vcpkg installed.

Running out of RAM while building

Should you run out of RAM while building, you can ommit the --parallel intruction, it will then use less RAM due to building only on one CPU thread.

You can also specify a number of threads to use, for example --parallel 4 will use four CPU threads, but due to the small project size, you may be faster just omitting --parallel instead of trying to find the highest possible multithread number

Languages
C++ 97.9%
C 2%
CMake 0.1%