# how can I build simpleITK c++ windows version ?

**URL:** https://discourse.itk.org/t/how-can-i-build-simpleitk-c-windows-version/6116
**Category:** Beginner Questions
**Tags:** simpleitk
**Created:** [July 31, 2023, 8:10am UTC](https://discourse.itk.org/t/how-can-i-build-simpleitk-c-windows-version/6116 "2023-07-31T08:10:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zx-lhb](https://discourse.itk.org/user_avatar/discourse.itk.org/zx-lhb/32/3082_2.png) [@zx-lhb](https://discourse.itk.org/u/zx-lhb)
#### Post date: [July 31, 2023, 8:10am UTC](https://discourse.itk.org/t/how-can-i-build-simpleitk-c-windows-version/6116/1 "2023-07-31T08:10:14Z")

</div>

hi, I fllowed the instructions here [build sitk](https://simpleitk.readthedocs.io/en/master/buildingWindows.html) to get simpleitk, but cmake came out errors like: Could NOT find LuaInterp. But I am working on Windows, how can I build SimpleITK on windows? Thank you !

```cpp
Building SimpleITK version "2.3.0.dev-gGITDIR-NOTFOUND"
Could NOT find Tclsh (missing: TCL_TCLSH) 
Found the following C# .NET versions: v4.0.30319
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:447 (message):
  `find_package()` specify a version range but the module LuaInterp does not
  support this capability. Only the lower endpoint of the range will be
  used.
Call Stack (most recent call first):
  CMake/FindLuaInterp.cmake:51 (find_package_handle_standard_args)
  CMake/sitkGenerateFilterSource.cmake:10 (find_package)
  Code/BasicFilters/CMakeLists.txt:4 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find LuaInterp (missing: LUA_EXECUTABLE) (Required is at least
  version "5.3")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  CMake/FindLuaInterp.cmake:51 (find_package_handle_standard_args)
  CMake/sitkGenerateFilterSource.cmake:10 (find_package)
  Code/BasicFilters/CMakeLists.txt:4 (include)

Configuring incomplete, errors occurred!
See also "D:/lib/simpleitk/build/CMakeFiles/CMakeOutput.log".
See also "D:/lib/simpleitk/build/CMakeFiles/CMakeError.log".

```

---

<div class="post-metadata">

### Author: ![blowekamp](https://discourse.itk.org/user_avatar/discourse.itk.org/blowekamp/32/79_2.png) [@blowekamp](https://discourse.itk.org/u/blowekamp)
#### Post date: [July 31, 2023, 1:26pm UTC](https://discourse.itk.org/t/how-can-i-build-simpleitk-c-windows-version/6116/2 "2023-07-31T13:26:21Z")

</div>

It does not look like you pointed the source code path to the “Superbuild” subdirectory of the SimpleITK source code. Please delete the binary directory and reconfigure.

---

<div class="post-metadata">

### Author: ![zx-lhb](https://discourse.itk.org/user_avatar/discourse.itk.org/zx-lhb/32/3082_2.png) [@zx-lhb](https://discourse.itk.org/u/zx-lhb)
#### Post date: [August 1, 2023, 3:18am UTC](https://discourse.itk.org/t/how-can-i-build-simpleitk-c-windows-version/6116/3 "2023-08-01T03:18:45Z")

</div>

Thank you! Using ‘super build’ works!
