Could you provide what engine you're using?
Going after TFS 1.2, as the title says:
Hi,
Has anyone come across this issue before and if so how do I fix it? im just trying to run cmake .. on putty running TFS and I get this
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Lua (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.22/Modules/FindLua.cmake:233 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:75 (find_package)
-- Configuring incomplete, errors...
If you want to try otherwise if that post does not solve it:
LUA:
sudo apt update
sudo apt install -y build-essential cmake pkg-config git \
libluajit-5.1-dev libmysqlclient-dev \
libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev \
libpugixml-dev libcrypto++-dev libgmp-dev
# build it fresh to avoid old complications
rm -rf build
cmake -S . -B build -DUSE_LUAJIT=ON \
-DLUA_INCLUDE_DIR=/usr/include/luajit-2.1 \
-DLUA_LIBRARY=/usr/lib/x86_64-linux-gnu/libluajit-5.1.so
cmake --build build -j"$(nproc)"
If you prefer using stock Lua 5.1 instead of JIT, do:
LUA:
sudo apt install -y liblua5.1-0-dev
rm -rf build
cmake -S . -B build -DUSE_LUAJIT=OFF \
-DLUA_INCLUDE_DIR=/usr/include/lua5.1 \
-DLUA_LIBRARY=/usr/lib/x86_64-linux-gnu/liblua5.1.so
cmake --build build -j"$(nproc)"
"Sanity checks", does it exist?:
LUA:
ls /usr/include/luajit-2.1/lua.h # does LuaJIT exist?
ls /usr/include/lua5.1/lua.h # does Lua 5.1 exist?