From 67efc6ba097908efa782d12fa01a01db9b80bcd4 Mon Sep 17 00:00:00 2001 From: Luca Conte Date: Sun, 9 Mar 2025 18:16:44 +0100 Subject: [PATCH] update installation instructions --- README.md | 78 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 66 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1cf67e6..8497f08 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Dependencies Installieren +# Ubuntu / WSL ```bash sudo apt update @@ -16,16 +16,21 @@ sudo apt install libglfw3 libglfw3-dev sudo apt install libglew-dev ``` -# Building and running - -``` -meson setup build -meson compile -C build -./build/cg1 -``` - # WSL +Für grafische Anwendungen wird WSL 2 benötigt + +## Virtualisierung Aktivieren + +Virtualisierung kann über die Powershell oder im BIOS aktiviert werden und ist notwendig für WSL 2 + +``` +dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart +dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart +``` + +Anschließend Windows neustarten + ## WSL Updaten ``` @@ -39,10 +44,59 @@ wsl --set-version 2 wsl --update ``` -## Virtualisierung Aktivieren +# Windows Native +## MSYS2 Installation + +MSYS2 dient als Entwicklungsumgebung und stellt Tools wie Make und gcc zur Verfügung + +[Download und Installationsanleitung](https://www.msys2.org/) + +Alle folgenden Schritte sollten im MSYS2 MINGW64 Terminal ausgeführt werden. + +## Libraries installieren + +Package Datenbank synchronisieren ``` -dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart -dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart +$ pacman -Syu ``` +Libraries installieren +``` +$ pacman -S mingw-w64-x86_64-glfw mingw-w64-x86_64-glew +``` + +## Meson installieren (Empfehlung) +``` +$ pacman -S mingw-w64-x86_64-meson +``` + +## gcc installieren +``` +$ pacman -S mingw-w64-x86_64-gcc +``` + +## git installieren (Empfehlung) +``` +$ pacman -S git +``` + +## mingw64 Pfad zur "Path" Umgebungsvariable hinzufügen + +``` +C:\msys64\mingw64\bin +``` + +- Windows Suche -> "Umgebungsvariablen" eintippen +- -> "Umgebungsvariablen..." +- -> "Path" -> "Bearbeiten" -> "Neu" -> Pfad einfügen +- Neue Umgebungsvariablen werden erst nach Programm Neustart übernommen + + +# Building and running + +``` +meson setup build +meson compile -C build +./build/cg1 +``` \ No newline at end of file