Skip to content

Commit 1f5f886

Browse files
authored
Merge pull request #264 from Rubo3/patch-1
Add Arch Linux support
2 parents 524bcc7 + c8ed558 commit 1f5f886

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Diff for: en/02_Development_environment.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ The number of extensions should be non-zero. Congratulations, you're all set for
195195

196196
## Linux
197197

198-
These instructions will be aimed at Ubuntu and Fedora users, but you may be able to follow
199-
along by changing the `apt` and `dnf` commands to the package manager commands that are appropriate for you. You should have a compiler that supports C++17 (GCC 7+ or Clang 5+). You'll also need make.
198+
These instructions will be aimed at Ubuntu, Fedora and Arch Linux users, but you may be able to follow
199+
along by changing the package manager-specific commands to the ones that are appropriate for you. You should have a compiler that supports C++17 (GCC 7+ or Clang 5+). You'll also need `make`.
200200

201201
### Vulkan Packages
202202

@@ -206,6 +206,9 @@ The most important components you'll need for developing Vulkan applications on
206206
* `sudo apt install libvulkan-dev` or `sudo dnf install vulkan-loader-devel` : Installs Vulkan loader. The loader looks up the functions in the driver at runtime, similarly to GLEW for OpenGL - if you're familiar with that.
207207
* `sudo apt install vulkan-validationlayers-dev spirv-tools` or `sudo dnf install mesa-vulkan-devel vulkan-validation-layers-devel`: Installs the standard validation layers and required SPIR-V tools. These are crucial when debugging Vulkan applications, and we'll discuss them in the upcoming chapter.
208208

209+
On Arch Linux, you can run `sudo pacman -S vulkan-devel` to install all the
210+
required tools above.
211+
209212
If installation was successful, you should be all set with the Vulkan portion. Remember to run
210213
`vkcube` and ensure you see the following pop up in a window:
211214

@@ -236,6 +239,10 @@ or
236239
```bash
237240
sudo dnf install glfw-devel
238241
```
242+
or
243+
```bash
244+
sudo pacman -S glfw-wayland # glfw-x11 for X11 users
245+
```
239246

240247
### GLM
241248

@@ -254,12 +261,16 @@ or
254261
```bash
255262
sudo dnf install glm-devel
256263
```
264+
or
265+
```bash
266+
sudo pacman -S glm
267+
```
257268

258269
### Shader Compiler
259270

260271
We have just about all we need, except we'll want a program to compile shaders from the human-readable [GLSL](https://en.wikipedia.org/wiki/OpenGL_Shading_Language) to bytecode.
261272

262-
Two popular shader compilers are Khronos Group's `glslangValidator` and Google's `glslc`. The latter has a familiar GCC- and Clang-like usage, so we'll go with that: on Ubuntu, download Google's [unofficial binaries](https://github.com/google/shaderc/blob/main/downloads.md) and copy `glslc` to your `/usr/local/bin`. Note you may need to `sudo` depending on your permissions. On Fedora use `sudo dnf install glslc`. To test, run `glslc` and it should rightfully complain we didn't pass any shaders to compile:
273+
Two popular shader compilers are Khronos Group's `glslangValidator` and Google's `glslc`. The latter has a familiar GCC- and Clang-like usage, so we'll go with that: on Ubuntu, download Google's [unofficial binaries](https://github.com/google/shaderc/blob/main/downloads.md) and copy `glslc` to your `/usr/local/bin`. Note you may need to `sudo` depending on your permissions. On Fedora use `sudo dnf install glslc`, while on Arch Linux run `sudo pacman -S shaderc`. To test, run `glslc` and it should rightfully complain we didn't pass any shaders to compile:
263274

264275
`glslc: error: no input files`
265276

0 commit comments

Comments
 (0)