Building springrts on OpenBSD

Building springrts on OpenBSD

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
Anthony J. Bentley
Posts: 1
Joined: 04 Jul 2011, 21:35

Building springrts on OpenBSD

Post 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?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Building springrts on OpenBSD

Post 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. :/
Post Reply

Return to “Linux”