Page 1 of 1
Configure fails to find includes
Posted: Saturday 08 May 2021 5:46
by Segfault
Code: Select all
-- LUA library found at : lua5.2;m
-- LUA includes found at :
I'm getting this and compile fails. Running Gentoo, gcc-10.3, binutils-2.36.1. Domoticz is from git, as of today.
Why configure can't find lua includes? They are right there, installed in /usr/lua5.2/, I even added symlink to this directory /usr/lua/. While compiling it stops with error lua.h not found.
Re: Configure fails to find includes
Posted: Saturday 08 May 2021 12:29
by waaren
Segfault wrote: ↑Saturday 08 May 2021 5:46
I'm getting this and compile fails. Running Gentoo, gcc-10.3, binutils-2.36.1. Domoticz is from git, as of today.
Why configure can't find lua includes? They are right there, installed in /usr/lua5.2/, I even added symlink to this directory /usr/lua/. While compiling it stops with error lua.h not found.
domoticz uses Lua 5.3. On my system the library is located in /usr/include/lua5.3 and found by the cmake process.
Code: Select all
total 84
drwxr-xr-x 2 root root 4096 Aug 6 2020 .
drwxr-xr-x 56 root root 20480 May 4 22:53 ..
-rw-r--r-- 1 root root 8432 Nov 23 2015 lauxlib.h
-rw-r--r-- 1 root root 21503 Jul 14 2019 luaconf.h
-rw-r--r-- 1 root root 14833 May 30 2016 lua.h
-rw-r--r-- 1 root root 191 Dec 23 2004 lua.hpp
-rw-r--r-- 1 root root 1173 Feb 6 2014 lualib.h
root@NUC: 192.168.192.115:/usr/include/lua5.3:#
Did you follow the
Build domoticz from source procedure to the letter?
Re: Configure fails to find includes
Posted: Saturday 08 May 2021 17:33
by Segfault
Thanks for reply. No, I am not following the instructions, I'm using a Gentoo ebuild (not official). It has always worked in past, I guess it is no good any more. Will see now if this ebuild can be fixed or I will build by hand.
It was PEBCAK after all. I didn't notice my way to upgrade overlay didn't work properly and there was a new ebuild, now everything is built and runs as expected. The tip about lua version put me in the right track. Thanks!