Closed dazzag24 closed 8 years ago
aeons ago... but i just found this while having trouble compiling with lua and for all coming after me, see the end of the config.mk file and adapt as follwing i.e.
LUA_CFLAGS = pkg-config --cflags lua-5.2
LUA_LIBS = pkg-config --libs lua-5.2
Using Ubuntu 15.10.
Activated WITH_LUA ?= yes in config.mk. Installed liblua5.2-dev as per the instructions at the end of the README.MD.
make then gives error:
$ make cc -Wall -Werror -I/usr/include -DGHASHPREC=7 -DWITH_PING=1 -DWITH_LUA=1
pkg-config --cflags lua
-DWITH_LMDB=1 -Imdb/ -DWITH_HTTP=1 -DJSON_INDENT=NULL -DSTORAGEDEFAULT=\"/var/spool/owntracks/recorder/store\" -DDOCROOT=\"/var/spool/owntracks/recorder/htdocs\" -c -o recorder.o recorder.c Package lua was not found in the pkg-config search path. Perhaps you should add the directory containing `lua.pc' to the PKG_CONFIG_PATH environment variable No package 'lua' found In file included from recorder.c:51:0: hooks.h:5:18: fatal error: lua.h: No such file or directory compilation terminated.