From 7f627aaf92db5cc8ca4aba1bb8804b899c9d9aed Mon Sep 17 00:00:00 2001 From: PoorPockets McNewHold <13170204+PoorPocketsMcNewHold@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:28:56 +0100 Subject: [PATCH 1/2] Add missing vcpkg package for Fedora MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index da5ff7a5..ab6e4ba9 100755 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Remember to change `C:/vcpkg` to wherever you have vcpkg installed. Make sure you have the necessary development tools installed - Debian: `sudo apt install build-essential` -- Fedora: `sudo dnf groupinstall "Development Tools"` +- Fedora: `sudo dnf groupinstall "Development Tools" && sudo dnf install vcpkg` - Arch: `sudo pacman -S base-devel` - openSUSE: `zypper in -t pattern devel-basis` From e7a0325e70a9ece94de6a30590ef73c18e5b2f4e Mon Sep 17 00:00:00 2001 From: O1LER <44237025+O1LER@users.noreply.github.com> Date: Wed, 11 Dec 2024 14:08:36 +0100 Subject: [PATCH 2/2] Add vcpkg to einstructions --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ab6e4ba9..dc9d5469 100755 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ The launcher is the way we communitcate to outside the game, it does a few autom ## How to build for Windows +Make sure you have the necessary development tools installed: + +[vcpkg](https://vcpkg.io/en/) + ### Release In the root directory of the project, @@ -24,29 +28,25 @@ 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 +Make sure you have `vcpkg` installed, as well as basic development tools, often found in packages, for example: - Debian: `sudo apt install build-essential` -- Fedora: `sudo dnf groupinstall "Development Tools" && sudo dnf install vcpkg` +- Fedora: `sudo dnf groupinstall "Development Tools"` - 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` +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` +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.