Closed imadr closed 4 months ago
The log of fetch_dawn_dependencies
is suspicious and lacks multiple dependencies. I think the hint is the message "Overridden by a local copy of the submodule", which I believe means that dawn source is cloned with submodules, which it shouldn't. Could you check what the file tree in C:/dev/webgpu-test/build/_deps/dawn-src/third_party
looks like? Do you have folders containing only a .git directory?
I tried another machine and it works, I'll try again when I get to my other machine
C:/dev/webgpu-test/build/_deps/dawn-src/third_party
.
..
.clang-format
abseil-cpp
CMakeLists.txt
glfw
gn
go.mod
google_benchmark
jinja2
khronos
markupsafe
vulkan-deps
I meant the content of directories as well, in particular whether there is a .git in e.g., abseil-cpp, and where there is a CMakeLists.txt.
Maybe your git is globally setup to always get submodules? You should make sure not to clone submodules when cloning Dawn.
The sub directories are empty. How is dawn supposed to be compiled without the submodules? I tried compiling this repo https://github.com/beaufortfrancois/webgpu-cross-platform-app and had a similar issue until I pulled all the dependencies
For those having the same problem, the solution I found is manually running the script dawn\tools\fetch_dawn_dependencies.py
Yes indeed it is that script that is supposed to ensure that dependencies are ready. The WebGPU-distribution files should turn on the CMake option DAWN_FETCH_DEPENDENCIES
in order to have this script ran automatically.
If it does not, try forcing this option by adding -DDAWN_FETCH_DEPENDENCIES=ON
while calling CMake configuration (or use cmake-gui).
Marking this as resolved since you have a workaround, but if one reads this later and experience the same issue of DAWN_FETCH_DEPENDENCIES
not being on by default let us know!
Here is the full cmake log, maybe related to #15 ? Using the main branch and setting WEBGPU_BACKEND=DAWN