You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/02_Development_environment.md
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,16 +195,16 @@ The number of extensions should be non-zero. Congratulations, you're all set for
195
195
196
196
## Linux
197
197
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.
200
200
201
201
### Vulkan Packages
202
202
203
203
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:
204
204
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.
208
208
209
209
If installation was successful, you should be all set with the Vulkan portion. Remember to run
210
210
`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:
232
232
```bash
233
233
sudo apt install libglfw3-dev
234
234
```
235
+
or
236
+
```bash
237
+
sudo dnf install glfw-devel
238
+
```
235
239
236
240
### GLM
237
241
@@ -240,17 +244,22 @@ operations, so we'll have to download one. [GLM](http://glm.g-truc.net/) is a
240
244
nice library that is designed for use with graphics APIs and is also commonly
241
245
used with OpenGL.
242
246
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:
244
249
245
250
```bash
246
251
sudo apt install libglm-dev
247
252
```
253
+
or
254
+
```bash
255
+
sudo dnf install glm-devel
256
+
```
248
257
249
258
### Shader Compiler
250
259
251
260
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.
252
261
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:
0 commit comments