Configure fails to find includes Topic is solved

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Segfault
Posts: 28
Joined: Friday 04 January 2019 18:22
Target OS: Linux
Domoticz version: GIT
Contact:

Configure fails to find includes

Post 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.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Configure fails to find includes

Post 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?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Segfault
Posts: 28
Joined: Friday 04 January 2019 18:22
Target OS: Linux
Domoticz version: GIT
Contact:

Re: Configure fails to find includes

Post 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest