This shows you the differences between two versions of the page.
|
ep:labs:05:contents:tasks:ex4 [2026/03/30 22:17] radu.mantu [04. [30p] GPU Monitoring] |
ep:labs:05:contents:tasks:ex4 [2026/03/31 14:00] (current) radu.mantu |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| Follow the instructions to install the dependencies and build the project from the **README.md**. | Follow the instructions to install the dependencies and build the project from the **README.md**. | ||
| - | <note tip> | ||
| <code> | <code> | ||
| $ git clone https://github.com/cs-pub-ro/EP-labs.git | $ git clone https://github.com/cs-pub-ro/EP-labs.git | ||
| $ cd EP-labs/lab_05/task_04 | $ cd EP-labs/lab_05/task_04 | ||
| + | </code> | ||
| + | |||
| + | <note tip> | ||
| + | **Troubleshooting** | ||
| + | ----- | ||
| + | If you get a GLFW error from ''glfwCreateWindow()'', the most likely cause is that the maximum OpenGL version supported on your system does not meet the minimum requirement for the application. Note however that this minimum required version of //OpenGL 4.6 core// was chosen arbitrarily and you can change it. | ||
| + | |||
| + | <code bash> | ||
| + | # note how the OpenGL core profile version is < 4.6 | ||
| + | $ glxinfo | grep 'OpenGL core profile version' | ||
| + | OpenGL core profile version string: 4.3 (Core Profile) Mesa 26.0.3-arch2.2 | ||
| + | </code> | ||
| + | |||
| + | Modify the ''GLFW_CONTEXT_VERSION_MINOR'' window hint in ''main.cpp'' from **6** to **3** (or whatever you've got). Do the same for the major version if yours is //way// behind any normal standard. | ||
| + | |||
| + | Now the window will be created but the application will still crash during the shader compilation. Modify the first line in both the vertex and the fragment shader: | ||
| + | |||
| + | <code diff> | ||
| + | -#version 460 core | ||
| + | +#version 430 core | ||
| </code> | </code> | ||
| </note> | </note> | ||