# itk-wasm, wasi build, how to run the .wasm.wasi passing \<inputimage\> \<outputimage\> \<radius\>

**URL:** <https://discourse.itk.org/t/itk-wasm-wasi-build-how-to-run-the-wasm-wasi-passing-inputimage-outputimage-radius/5225>\
**Category:** Beginner Questions\
**Tags:** itk-wasmwasi\
**Created:** [July 29, 2022, 1:55pm UTC](https://discourse.itk.org/t/itk-wasm-wasi-build-how-to-run-the-wasm-wasi-passing-inputimage-outputimage-radius/5225 "2022-07-29T13:55:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sag](https://discourse.itk.org/user_avatar/discourse.itk.org/sag/32/2041_2.png) [@sag](https://discourse.itk.org/u/sag)\
**Post date:** [July 29, 2022, 1:55pm UTC](https://discourse.itk.org/t/itk-wasm-wasi-build-how-to-run-the-wasm-wasi-passing-inputimage-outputimage-radius/5225/1 "2022-07-29T13:55:26Z")

</div>

Hi @dzenanz,

I have failed to build wasi using itk-wasm for a ITK Median Filter. here is the screen shot of the wasi build for MedianFilterTest pipeline, CMakeLists seems to have problem for wasi-build because as you see build complains about ITK\_LIBRARIES already linked to the executable?! it seems ITKWebAssemblyInteface has already been linked.  
can you help me with the CMakeLists.txt file to fix this error please.

here is the screen shot. I comment out the add\_link\_library(MedianFilterTest ${ITK\_LIBRARIES} there will be undefined sysmbols, how should be solve this wasi build

 ![wasi-build](https://discourse.itk.org/uploads/default/original/2X/b/b53dd07d63d513521d08eddb1028fb4c70bed3ff.png)

thanks  
@sag
