# Problems when compilate VTK build for wasm

**URL:** https://discourse.vtk.org/t/problems-when-compilate-vtk-build-for-wasm/15648
**Category:** Development
**Created:** [May 19, 2025, 10:02am UTC](https://discourse.vtk.org/t/problems-when-compilate-vtk-build-for-wasm/15648 "2025-05-19T10:02:41Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaswantp/32/10046_2.png) [@jaswantp](https://discourse.vtk.org/u/jaswantp)
#### Post date: [May 19, 2025, 3:32pm UTC](https://discourse.vtk.org/t/problems-when-compilate-vtk-build-for-wasm/15648/4 "2025-05-19T15:32:18Z")

</div>

I see, you are probably using a desktop dawn tarball instead of wasm32 tarball.

Download [https://gitlab.kitware.com/api/v4/projects/6955/packages/generic/dawn/v7153-20250502.0/dawn-7153-wasm32-emscripten.tar.gz](https://gitlab.kitware.com/api/v4/projects/6955/packages/generic/dawn/v7153-20250502.0/dawn-7153-wasm32-emscripten.tar.gz) and extract it.

Then, run the emcmake command with these two extra args.

```auto
 -DVTK_ENABLE_WEBGPU:BOOL=ON -Demdawnwebgpu_DIR="C:\Users\username\Downloads\dawn-7153-wasm32-emscripten\dawn-7153-wasm32-emscripten\lib\cmake\emdawnwebgpu"

```

Double check that there is a file named `emdawnwebgpu-config.cmake` in the directory passed to `emdawnwebgpu_DIR`

Do NOT pass `-DDawn_DIR` when building wasm.

---

_[View the full topic](https://discourse.vtk.org/t/problems-when-compilate-vtk-build-for-wasm/15648)._
