2 Building QtLua
Using the autotools
QtLua can be built using the autotools based build system. This is the preferred approach on GNU/Linux systems:
./configure
make
This will build the library, the qtlua tool and all example applications.
Depending on your lua version and installation path, the configure script may not find lua header files or library files. Passing additional options to the configure script will fix this:
./configure --with-lua-lib=lua5 --with-lualib-lib=lualib5 \
--with-lua-inc-dir=/usr/include/lua5
make
Using Cmake
Cmake comes as an alternative build system and can be used on platforms were the autotools do not properly detect Qt. This approach requires Cmake installed on your platform.
cmake -G "<cmake generator name>" .
make
This will build the library and tools.