OpenRTMFP/Cumulus — Issue #49: ./sources/Script.h:30:25: error: lua5.1/lua.h: No such file or directory 
Author: complexi
Created: 2012-01-21 10:04:53+00:00
State: open

when trying to run make in ~/CumulusServer i get the following error:

root@complexi7 [/usr/local/src/OpenRTMFP-Cumulus-ca335fe/CumulusServer]# make
compiling main.cpp
In file included from ./sources/Service.h:21,
from ./sources/Server.h:22,
from ./sources/main.cpp:20:
./sources/Script.h:30:25: error: lua5.1/lua.h: No such file or directory
./sources/Script.h:31:29: error: lua5.1/lauxlib.h: No such file or directory
./sources/Script.h:108: error: expected â;â before â(â token
./sources/Script.h:110: error: âlua_Stateâ has not been declared
./sources/Script.h:112: error: âlua_Stateâ has not been declared
./sources/Script.h:113: error: âlua_Stateâ has not been declared
./sources/Script.h:115: error: âlua_Stateâ has not been declared
./sources/Script.h:116: error: ISO C++ forbids declaration of âlua_Stateâ with no type
./sources/Script.h:116: error: expected â;â before â*â token
./sources/Script.h:117: error: âlua_Stateâ has not been declared
./sources/Script.h:117: error: âlua_CFunctionâ has not been declared
./sources/Script.h:129: error: âlua_Stateâ was not declared in this scope
./sources/Script.h:129: error: âpStateâ was not declared in this scope
./sources/Script.h:129: error: expected primary-expression before âconstâ
./sources/Script.h:129: error: ISO C++ forbids in-class initialization of non-const static member âClearPersistentObjectâ
./sources/Script.h:129: error: template declaration of âbool ClearPersistentObjectâ
./sources/Script.h:155: error: âlua_Stateâ was not declared in this scope
./sources/Script.h:155: error: âpStateâ was not declared in this scope
./sources/Script.h:155: error: expected primary-expression before â&â token
./sources/Script.h:155: error: âobjectâ was not declared in this scope
./sources/Script.h:155: error: variable or field âWriteObjectâ declared void
./sources/Script.h:155: error: ISO C++ forbids in-class initialization of non-const static member âWriteObjectâ
./sources/Script.h:155: error: template declaration of âint WriteObjectâ
./sources/Script.h:165: error: âlua_Stateâ was not declared in this scope
./sources/Script.h:165: error: âpStateâ was not declared in this scope
./sources/Script.h:165: error: expected primary-expression before âconstâ
./sources/Script.h:165: error: variable or field âWriteObjectâ declared void
./sources/Script.h:165: error: ISO C++ forbids in-class initialization of non-const static member âWriteObjectâ
./sources/Script.h:165: error: template declaration of âint WriteObjectâ
./sources/Script.h:200: error: âlua_Stateâ was not declared in this scope
./sources/Script.h:200: error: âpStateâ was not declared in this scope
./sources/Script.h:200: error: expected primary-expression before â&â token
./sources/Script.h:200: error: âobjectâ was not declared in this scope
./sources/Script.h:200: error: variable or field âWritePersistentObjectâ declared void
./sources/Script.h:200: error: ISO C++ forbids in-class initialization of non-const static member âWritePersistentObjectâ
./sources/Script.h:200: error: template declaration of âint WritePersistentObjectâ
./sources/Script.h:210: error: âlua_Stateâ was not declared in this scope
./sources/Script.h:210: error: âpStateâ was not declared in this scope
./sources/Script.h:210: error: expected primary-expression before âconstâ
./sources/Script.h:210: error: variable or field âWritePersistentObjectâ declared void
./sources/Script.h:210: error: ISO C++ forbids in-class initialization of non-const static member âWritePersistentObjectâ
./sources/Script.h:210: error: template declaration of âint WritePersistentObjectâ
./sources/Script.h:240: error: âlua_Stateâ was not declared in this scope
./sources/Script.h:240: error: âpStateâ was not declared in this scope
./sources/Script.h:240: error: template declaration of âType* DestructorCallbackâ
./sources/Script.h:254: error: âlua_Stateâ was not declared in this scope
./sources/Script.h:254: error: âpStateâ was not declared in this scope
./sources/Script.h:254: error: template declaration of âType* PopCallbackâ
./sources/Script.h:268: error: âlua_Stateâ was not declared in this scope
./sources/Script.h:268: error: âpStateâ was not declared in this scope
./sources/Script.h:268: error: expected primary-expression before âboolâ
./sources/Script.h:268: error: template declaration of âType* PushCallbackâ
./sources/Script.h:274: error: âlua_Stateâ was not declared in this scope
./sources/Script.h:274: error: âpStateâ was not declared in this scope
./sources/Script.h:274: error: expected primary-expression before âboolâ
./sources/Script.h:274: error: template declaration of âType* Callbackâ
./sources/Script.h:342: error: âlua_Debugâ does not name a type
./sources/Script.h:345: error: âlua_Stateâ has not been declared
./sources/Script.h:346: error: âlua_Stateâ has not been declared
./sources/Script.h:349: error: âlua_Stateâ was not declared in this scope
./sources/Script.h:349: error: âpStateâ was not declared in this scope
./sources/Script.h:349: error: template declaration of âint Callâ
./sources/Script.h:357: error: âlua_Stateâ has not been declared
./sources/Script.h:358: error: âlua_Stateâ has not been declared
./sources/Script.h:359: error: âlua_Stateâ has not been declared
./sources/Script.h:360: error: âlua_Stateâ has not been declared
./sources/Script.h:361: error: âlua_Stateâ has not been declared
./sources/Script.h:362: error: âlua_Stateâ has not been declared
./sources/Script.h:364: error: âlua_Stateâ has not been declared
./sources/Script.h:365: error: âlua_Stateâ has not been declared
./sources/Service.h:27: error: expected `)' before â*â token
./sources/Service.h:30: error: âlua_Stateâ has not been declared
./sources/Service.h:31: error: âlua_Stateâ has not been declared
./sources/Service.h:32: error: âlua_Stateâ has not been declared
./sources/Service.h:37: error: ISO C++ forbids declaration of âlua_Stateâ with no type
./sources/Service.h:37: error: expected â;â before â*â token
./sources/Service.h:47: error: âlua_Stateâ has not been declared
./sources/Service.h:48: error: âlua_Stateâ has not been declared
./sources/Service.h:49: error: âlua_Stateâ has not been declared
./sources/Service.h:52: error: ISO C++ forbids declaration of âlua_Stateâ with no type
./sources/Service.h:52: error: expected â;â before â*â token
./sources/Service.h:63: error: variable or field âInitGlobalTableâ declared void
./sources/Service.h:63: error: âService::InitGlobalTableâ declared as an âinlineâ variable
./sources/Service.h:63: error: âint Service::InitGlobalTableâ is not a static member of âclass Serviceâ
./sources/Service.h:63: error: âlua_Stateâ was not declared in this scope
./sources/Service.h:63: error: âpStateâ was not declared in this scope
./sources/Service.h:63: error: expected â,â or â;â before â{â token
./sources/Server.h:59: error: ISO C++ forbids declaration of âlua_Stateâ with no type
./sources/Server.h:59: error: expected â;â before â*â token
make: *** [main.o] Error 1

i installed the lua bin first, then compile lua from src and setup the LUA_DIR environment variable in bashrc. after both times i still get the above error. i see in Script.h that it's looking for lua 5.1 directory. i assume shell then outputs the subsequent error messages because it can't find it.

if anyone has the fix, please let me know.

thanks,
john h