Page 1 of 1

Building springrts on OpenBSD

Posted: 04 Jul 2011, 21:39
by Anthony J. Bentley
Hi,

IÔÇÖm trying to install Spring RTS on OpenBSD, but the build fails at 8%:

Code: Select all

[  8%] Building CXX object AI/Skirmish/KAIK/CMakeFiles/KAIK.dir/__/__/__/rts/lib/lua/src/ldump.cpp.o
In file included from /tmp/spring_0.82.7.1/rts/lib/lua/src/ldump.cpp:14:
/tmp/spring_0.82.7.1/rts/lib/lua/src/lobject.h:204: error: 'lua_Hash' does not name a type
In file included from /tmp/spring_0.82.7.1/rts/lib/lua/src/ldump.cpp:15:
/tmp/spring_0.82.7.1/rts/lib/lua/src/lstate.h:96: error: 'lua_Func_fopen' does not name a type
/tmp/spring_0.82.7.1/rts/lib/lua/src/lstate.h:97: error: 'lua_Func_popen' does not name a type
/tmp/spring_0.82.7.1/rts/lib/lua/src/lstate.h:98: error: 'lua_Func_pclose' does not name a type
/tmp/spring_0.82.7.1/rts/lib/lua/src/lstate.h:99: error: 'lua_Func_system' does not name a type
/tmp/spring_0.82.7.1/rts/lib/lua/src/lstate.h:100: error: 'lua_Func_remove' does not name a type
/tmp/spring_0.82.7.1/rts/lib/lua/src/lstate.h:101: error: 'lua_Func_rename' does not name a type
I do have Lua 5.1.4 installed. Does anyone have an idea of a solution?

Re: Building springrts on OpenBSD

Posted: 04 Jul 2011, 23:43
by hoijui
you do not have to have Lua installed somehow. all of Lua that spring needs is in the spring repo already.
i do not know why you get this compile error, but i would guess it is something BSD related. maybe some core libraries, the gcc version you are using, ... something else in the environment.

'lua_Hash' for example is defined in rts/lib/lua/include/lua.h.
maybe the header guard define lua_h is already defined when the header first appears, so it's content gets never included.
you likely have to play detective yourself, i am afraid. :/