how can I build simpleITK c++ windows version ?

hi, I fllowed the instructions here build sitk 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 !

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".

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.

1 Like

Thank you! Using ā€˜super buildā€™ works!

3 Likes