[En-Nut-Discussion] nutcomponent.c:140:17: lua.h: No such file or directory in Ethernut 3.9.7

Jean Marc LACROIX jeanmarc.lacroix at free.fr
Sun Jun 12 09:44:56 CEST 2005


Hi Harald,

in Ethernut 3.9.7, i have following error in
/ethernut-v3.9.7/tools/nutconf
-> make all
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/lua50/ 
-DNUT_CONFIGURE_EXEC   -g -O2 -MT nutconfigure-nutcomponent.o -MD -MP 
-MF ".deps/nutconfigure-nutcomponent.Tpo" -c -o 
nutconfigure-nutcomponent.o `test -f 'nutcomponent.c' || echo 
'./'`nutcomponent.c; \
then mv -f ".deps/nutconfigure-nutcomponent.Tpo" 
".deps/nutconfigure-nutcomponent.Po"; else rm -f 
".deps/nutconfigure-nutcomponent.Tpo"; exit 1; fi
gcc  -g -O2   -o nutconfigure  nutconfigure-nutcomponent.o  -llualib50 
-llua50

but  i have installed on my Linux Debian Testing box ...
->  dpkg -l |grep lua
ii  liblua50          5.0.2-5           Main interpreter library for the 
Lua 5.0 programmi
ii  liblua50-dev      5.0.2-5           Main interpreter library for Lua 
5.0: static libra
ii  liblualib50       5.0.2-5           Extension library for the Lua 
5.0 programming lang
ii  liblualib50-dev   5.0.2-5           Extension library for Lua 5.0: 
static and headers
ii  lua50             5.0.2-5           Small embeddable language with 
simple procedural s


...and ...
-> dpkg -S  lua.h
liblua50-dev: /usr/include/lua50/lua.h

so it seems that ./configure don't detect lua50 package (?????).
I am not expert about autoconf, but the following patch is ok.

file ethernut-v3.9.7/tools/nutconf/Makefile
------ before patch -----
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
-------------------------

------ after patch -----
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
DEFAULT_INCLUDES += -I/usr/include/lua50/
------- end patch -----

Regards


-- 
--------------------------------------
  -- Jean-Marc LACROIX                 --
   -- mailto : jeanmarc.lacroix at free.fr --
     ---------------------------------------



More information about the En-Nut-Discussion mailing list