Menu

compiling error linknx

Help
hd88
2009-02-01
2012-12-14
  • hd88

    hd88 - 2009-02-01

    Hi jef2000,

    I've linknx from cvs to use, but always get the following error message:

    luacondition.cpp:24:17: error: lua.h: Datei oder Verzeichnis nicht gefunden
    luacondition.cpp:25:20: error: lualib.h: Datei oder Verzeichnis nicht gefunden
    luacondition.cpp:26:21: error: lauxlib.h: Datei oder Verzeichnis nicht gefunden
    luacondition.cpp: In constructor ‘LuaCondition::LuaCondition(ChangeListener*)’:
    luacondition.cpp:31: error: ‘lua_State’ was not declared in this scope
    luacondition.cpp:31: error: ‘l’ was not declared in this scope
    luacondition.cpp:32: error: ‘lua_open’ was not declared in this scope
    luacondition.cpp:38: error: ‘luaL_openlibs’ was not declared in this scope
    luacondition.cpp:40: error: ‘luaL_dofile’ was not declared in this scope
    luacondition.cpp:42: error: ‘lua_close’ was not declared in this scope
    make[2]: *** [luacondition.o] Fehler 1
    make[2]: Leaving directory `/usr/src/linknx/src'
    make[1]: *** [all-recursive] Fehler 1
    make[1]: Leaving directory `/usr/src/linknx'
    make: *** [all] Fehler 2

    I use debian.
    I must lua.h, lauxlib.h externally to install?

    Regards,

    Hans

     
    • hd88

      hd88 - 2009-02-01

      Hi jef2000,

         
      ok. I have installed lua, but it remains the following message:

      luacondition.cpp: In constructor ‘LuaCondition::LuaCondition(ChangeListener*)’:
      luacondition.cpp:38: error: ‘luaL_openlibs’ was not declared in this scope
      luacondition.cpp:40: error: ‘luaL_dofile’ was not declared in this scope
      make[2]: *** [luacondition.o] Fehler 1
      make[2]: Leaving directory `/usr/src/linknx/src'
      make[1]: *** [all-recursive] Fehler 1
      make[1]: Leaving directory `/usr/src/linknx'
      make: *** [all] Fehler 2

      Regards, 

      Hans

       
    • Ronny H

      Ronny H - 2009-02-01

      Hi!

      You are right, the cvs version cannot be compiled under debian (etch/lenny). The configure script didnt find the lualib header files.

      root@Linux:/$ aptitude search lua | grep ^i
      i A liblua40
      i   liblua40-dev
      i A liblua5.1-0
      i   liblua5.1-0-dev
      i A liblua50
      i   liblua50-dev
      i A liblualib50
      i   liblualib50-dev
      i   libtolua-dev
      i A lua50

      The lua.h can be found under:

      /usr/include/lua40/lua.h
      /usr/include/lua5.1/lua.h
      /usr/include/lua50/lua.h

      but a ./configure --enable-lua says

      checking for log4cpp/CategoryStream.hh... yes
      checking lua.h usability... no
      checking lua.h presence... no
      checking for lua.h... no
      configure: error: Cannot find lua header file.

      I hope jef2000 can help us.

      Regards,
      Ronny

       
    • jef2000

      jef2000 - 2009-02-01

      Hi,

      LUA support is not yet working.
      Due to a bug in the latest CVS sources, some parts of the LUA related code were not properly disabled if LUA is not detected by configure script.
      I fixed it today, so you should now be able to compile latest sources from CVS. The configure script will detect that LUA is missing and disable it. If LUA is detected but you want to disable it, add --disable-lua option to the configure command.

      For your information, the CVS head version is my working area for development of new features and may contain buggy/development.
      I discourage its usage except for development purpose.

      Regards,

      Jean-François

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.