Hi, I want to build SimpleITK manually with the installed ITK5.0 on my device. I have installed lua5.1 by compiling the source by using the following commands:
$ cd lua-5.1
$ mkdir lua_build
$ cd lua_build
$ make linux test
$ sudo make install
However, once I am running cmake …/SimpleITK, I am getting this error:
CMake Error at CMake/sitkGenerateFilterSource.cmake:51 (message):
Lua version 5.1 is required for SimpleITK_LUA_EXECUTABLE_VERSION.
Call Stack (most recent call first):
Code/BasicFilters/CMakeLists.txt:4 (include)
How can I get rid of this error even I have installed the required version of lua?
What is the value of the CMake variable SimpleITK_LUA_EXECUTABLE? This is the Lua executable which is used for code generation and requires version 5.1.
I have just enchanted a similar problem, when I didn’t set SimpleITK_LUA_EXECUTABLE correctly. Here is me error:
-- Could NOT find Lua (missing: LUA_EXECUTABLE)
CMake Error at CMake/sitkGenerateFilterSource.cmake:51 (message):
Lua version 5.1 is required for SimpleITK_LUA_EXECUTABLE_VERSION.
Call Stack (most recent call first):
Code/BasicFilters/CMakeLists.txt:4 (include)
I have included the line before which says the LUA_EXECUTABLE is missing, the error below is a symptom for the executable not being found. I will investigate if the error message can be improved, and if it follows current CMake standards.