update installation instructions
This commit is contained in:
parent
9516aeeb6a
commit
67efc6ba09
78
README.md
78
README.md
|
@ -1,4 +1,4 @@
|
||||||
# Dependencies Installieren
|
# Ubuntu / WSL
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
@ -16,16 +16,21 @@ sudo apt install libglfw3 libglfw3-dev
|
||||||
sudo apt install libglew-dev
|
sudo apt install libglew-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
# Building and running
|
|
||||||
|
|
||||||
```
|
|
||||||
meson setup build
|
|
||||||
meson compile -C build
|
|
||||||
./build/cg1
|
|
||||||
```
|
|
||||||
|
|
||||||
# WSL
|
# 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
|
## WSL Updaten
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -39,10 +44,59 @@ wsl --set-version <distro-name> 2
|
||||||
wsl --update
|
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
|
$ pacman -Syu
|
||||||
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
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
|
||||||
|
```
|
Loading…
Reference in New Issue