Skip to content

Commit eca5a20

Browse files
authored
Add instructions for Fedora setup
1 parent 131d519 commit eca5a20

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

en/02_Development_environment.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,16 +195,16 @@ 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 users, but you may be able to follow
199-
along by changing the `apt` 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 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.
200200

201201
### Vulkan Packages
202202

203203
The most important components you'll need for developing Vulkan applications on Linux are the Vulkan loader, validation layers, and a couple of command-line utilities to test whether your machine is Vulkan-capable:
204204

205-
* `sudo apt install vulkan-tools`: Command-line utilities, most importantly `vulkaninfo` and `vkcube`. Run these to confirm your machine supports Vulkan.
206-
* `sudo apt install libvulkan-dev`: 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.
207-
* `sudo apt install vulkan-validationlayers-dev spirv-tools`: 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.
205+
* `sudo apt install vulkan-tools` or `sudo dnf install vulkan-tools`: Command-line utilities, most importantly `vulkaninfo` and `vkcube`. Run these to confirm your machine supports Vulkan.
206+
* `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.
207+
* `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

209209
If installation was successful, you should be all set with the Vulkan portion. Remember to run
210210
`vkcube` and ensure you see the following pop up in a window:
@@ -232,6 +232,10 @@ We'll be installing GLFW from the following command:
232232
```bash
233233
sudo apt install libglfw3-dev
234234
```
235+
or
236+
```bash
237+
sudo dnf install glfw-devel
238+
```
235239

236240
### GLM
237241

@@ -240,17 +244,22 @@ operations, so we'll have to download one. [GLM](http://glm.g-truc.net/) is a
240244
nice library that is designed for use with graphics APIs and is also commonly
241245
used with OpenGL.
242246

243-
It is a header-only library that can be installed from the `libglm-dev` package:
247+
It is a header-only library that can be installed from the `libglm-dev` or
248+
`glm-devel` package:
244249

245250
```bash
246251
sudo apt install libglm-dev
247252
```
253+
or
254+
```bash
255+
sudo dnf install glm-devel
256+
```
248257

249258
### Shader Compiler
250259

251260
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.
252261

253-
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: 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. To test, run `glslc` and it should rightfully complain we didn't pass any shaders to compile:
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:
254263

255264
`glslc: error: no input files`
256265

0 commit comments

Comments
 (0)