This short post explains how to compile LuaXML for 64-bit Linux systems, particularly those running Ubuntu or anything related. The game I’m working on uses LuaXML but when I recently began development on a new laptop I found the library we were using no longer worked, as it was not compiled for 64-bit. So here’s some simple steps to remedy that problem.
sudo apt-get install liblua5.1.0-devor
liblua5.2-dev, depending on the version of LuaXML you download.
Makefilefor LuaXML and add the following variable definitions:
INCDIR = -I/usr/include/lua5.1 # Or /usr/include/lua5.2 LIBDIR = -L. -L/usr/lib/x86_64-linux-gnu # Under "generic platform specific rules LIBS = $(LIBDIR) $(LIB) -llua5.1 -ldl # Or -llua5.2
Now you can run
make and get a working
LuaXML_lib.so for your system.