Lua ~ Linking the Lua library to chiventure on CSIL machines - uchicago-cs/chiventure GitHub Wiki

As Lua isn't installed on the CSIL machines, linking the Lua library is different from linking other libraries Chiventure has that are installed to the system directory (such as Criterion, LibYAML, etc.).

Right now, a workaround is to point CMake to the local Lua folder that would be stored in your home directory on the CSIL machines. This document will describe how to achieve the local library linking process.


Step 1: Download and install Lua to the CSIL machines through the following commands:

curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz -o ~/
tar zxf ~/lua-5.3.5.tar.gz
cd ~/lua-5.3.5
make linux test

Step 2: In your chiventure directory on the CSIL machines, follow the process below to build the code:

mkdir build
cd build
cmake -DLUA_INCLUDE_DIR=~/lua-5.3.5/src/ -DLUA_LIBRARY=~/lua-5.3.5/src/liblua.a ..
make

After the code compiles successfully, you should be all good to go to run and/or test chiventure.