Adjusted readme.
Some checks failed
Build & Release / Windows-AMD64-Build (push) Has been cancelled
Build & Release / Linux-AARCH64-Build (push) Has been cancelled
Build & Release / Linux-AMD64-Build (push) Has been cancelled

This commit is contained in:
Arron David Nelson 2024-02-05 22:44:22 -08:00
parent 6f783c4ea2
commit 055f6e173e

View File

@ -44,38 +44,40 @@ This project does not fully follow the C++ standard.
- Windows - Windows
- Linux - Linux
# Compiling # Compiling/Building/Installing
## Linux
## Prerequisites ### Prerequisites
### Linux
- **Arch Linux**: `sudo pacman -S gcc nasm cmake alsa-lib libxcb xcb-util-cursor` - **Arch Linux**: `sudo pacman -S gcc nasm cmake alsa-lib libxcb xcb-util-cursor`
- **Debian Linux**: `sudo apt install gcc nasm cmake libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev` - **Debian Linux**: `sudo apt install gcc nasm cmake libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev`
For building on the Raspberry Pi instead of the Netwide Assembler (NASM), GCC's Assembler is used. For building on the Raspberry Pi instead of the Netwide Assembler (NASM), GCC's Assembler is used.
### Windows ### Building
`cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB /path/to/source`
The `LINUX_WINDOW_SYSTEM` variable in the first step can be either `XCB` for the X Window System or `Wayland` for the
Wayland Window System. Wayland support is currently not fully supported yet, use only `XCB`.
### Compiling
`cmake --build /path/to/build --config Release`
### Installing
`sudo cmake --install . --prefix /usr/local`
## Windows
### Prerequisites
- [Visual Studio Community](https://visualstudio.microsoft.com/vs/community/) - [Visual Studio Community](https://visualstudio.microsoft.com/vs/community/)
- [Netwide Assembler](https://www.nasm.us/) - [Netwide Assembler](https://www.nasm.us/)
- [CMake](https://cmake.org/) - [CMake](https://cmake.org/)
- [vcpkg](https://learn.microsoft.com/en-us/vcpkg/get_started/get-started?pivots=shell-cmd) - [vcpkg](https://learn.microsoft.com/en-us/vcpkg/get_started/get-started?pivots=shell-cmd)
## Building ### Building
### Linux `cmake -A x64 -DCMAKE_BUILD_TYPE=Release --preset=default .`
1. `cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB /path/to/source`
2. `cmake --build /path/to/build --config Release`
The `LINUX_WINDOW_SYSTEM` variable in the first step can be either `XCB` for the X Window System or `Wayland` for the ### Compiling
Wayland Window System. Wayland support is currently not fully supported yet, use only `XCB`. `cmake --build build --config Release`
### Windows ### Installing
1. `cmake -A x64 -DCMAKE_BUILD_TYPE=Release --preset=default .`
2. `cmake --build build --config Release`
## Installing
### Linux
`sudo cmake --install . --prefix /usr/local`
### Windows
`cmake --install . --prefix "C:/Program Files/EHS"` `cmake --install . --prefix "C:/Program Files/EHS"`
This will require the terminal to be running in administrator mode. This will require the terminal to be running in administrator mode.