eliemichel / LearnWebGPU-Code

The accompanying code of the Learn WebGPU C++ programming guide
https://eliemichel.github.io/LearnWebGPU
MIT License
109 stars 29 forks source link

Cannot build the initial library code #58

Closed m3rashid closed 2 hours ago

m3rashid commented 2 hours ago

I am on step step028 and I cannot build the library code, generate so far

I have followed all the steps so far but still can't get the code working. Here I attach the build logs. Please suggest how to sovle this, what could have gone wrong ?

image

eliemichel commented 2 hours ago

Hello, GLFW has some dependencies when building on linux, the list of which you may find here: https://www.glfw.org/docs/3.3/compile.html#compile_deps

In your case, you seem to be missing libwayland-dev, and possibly libxkbcommon-dev. If you want to disable the use of Wayland, you can set -DGLFW_USE_WAYLAND=0 when invoking CMake.

m3rashid commented 2 hours ago

Thanks a lot @eliemichel. I missed this part earlier