spring 0.82.7.1 on Mac OS
Posted: 03 Feb 2011, 16:43
Since I'm having only very little time to work on the project these days, I'll be creating a thread like this one for each new source release to help spring devs work out cross-platform issues (and let them know that spring on Mac still lives )
So as usual, all depending libraries have been installed via MacPorts, as seen on this tutorial. Project is then ccmaked "as is" and maked with -j option.
The good news is there's only one error left:
[code]Building CXX object AI/Skirmish/KAIK/CMakeFiles/KAIK.dir/__/__/__/rts/lib/lua/src/lapi.cpp.o
In file included from .../spring_0.82.7.1/rts/lib/lua/src/lapi.h:11,
from .../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:19:
.../spring_0.82.7.1/rts/lib/lua/src/lobject.h:204: error: ÔÇÿlua_HashÔÇÖ does not name a type
In file included from .../spring_0.82.7.1/rts/lib/lua/src/ldebug.h:11,
from .../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:20:
.../spring_0.82.7.1/rts/lib/lua/src/lstate.h:96: error: ÔÇÿlua_Func_fopenÔÇÖ does not name a type
.../spring_0.82.7.1/rts/lib/lua/src/lstate.h:97: error: ÔÇÿlua_Func_popenÔÇÖ does not name a type
.../spring_0.82.7.1/rts/lib/lua/src/lstate.h:98: error: ÔÇÿlua_Func_pcloseÔÇÖ does not name a type
.../spring_0.82.7.1/rts/lib/lua/src/lstate.h:99: error: ÔÇÿlua_Func_systemÔÇÖ does not name a type
..../spring_0.82.7.1/rts/lib/lua/src/lstate.h error: ÔÇÿlua_Func_removeÔÇÖ does not name a type
.../spring_0.82.7.1/rts/lib/lua/src/lstate.h:101: error: ÔÇÿlua_Func_renameÔÇÖ does not name a type
In file included from .../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:27:
.../spring_0.82.7.1/rts/lib/lua/src/lstring.h:30: error: ÔÇÿlua_HashÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿbool lua_toboolean(lua_State*, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:338: error: new declaration ÔÇÿbool lua_toboolean(lua_State*, int)ÔÇÖ
/opt/local/include/lua.h:148: error: ambiguates old declaration ÔÇÿint lua_toboolean(lua_State*, int)ÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: At global scope:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:466: error: ÔÇÿlua_HashÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1111: error: ÔÇÿlua_Func_fopenÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿvoid lua_set_fopen(lua_State*, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1112: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿfopen_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: At global scope:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1116: error: ÔÇÿlua_Func_popenÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1117: error: ÔÇÿlua_Func_pcloseÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿvoid lua_set_popen(lua_State*, int, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1119: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿpopen_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1120: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿpclose_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1122: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿpopen_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1123: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿpclose_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: At global scope:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1128: error: ÔÇÿlua_Func_systemÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿvoid lua_set_system(lua_State*, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1129: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿsystem_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: At global scope:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1133: error: ÔÇÿlua_Func_removeÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿvoid lua_set_remove(lua_State*, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1134: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿremove_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: At global scope:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1138: error: ÔÇÿlua_Func_renameÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿvoid lua_set_rename(lua_State*, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1139: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿrename_funcÔÇÖ
make[2]: *** [AI/Skirmish/KAIK/CMakeFiles/KAIK.dir/__/__/__/rts/lib/lua/src/lapi.cpp.o] Error 1
make[1]: *** [AI/Skirmish/KAIK/CMakeFiles/KAIK.dir/all] Error 2
[/code]Strangely, lobject.h does have an 'include "lua.h"' line where lua_Hash and lua_Func_* are defined.
The bad news is that now spring crashes at startup, before the window opens (I'm not "make install"ing, but launching spring from the build folder right away). gdb / bt give:
[code]#0 0x00007fff8709ed55 in __cxxabiv1::__pbase_type_info::__do_catch ()
#1 0x00007fff8709d16e in get_adjusted_ptr ()
#2 0x00007fff8709d8de in __gxx_personality_v0 ()
#3 0x00007fff832a11f1 in _Unwind_RaiseException ()
#4 0x00007fff8709dbef in __cxa_throw ()
#5 0x00007fff885ab192 in objc_exception_throw ()
#6 0x00007fff8739a969 in -[NSException raise] ()
#7 0x00007fff844264b5 in -[NSWindow _commonAwake] ()
#8 0x00007fff8442316e in -[NSWindow _commonInitFrame:styleMask:backing:defer:] ()
#9 0x00007fff84421dfa in -[NSWindow _initContent:styleMask:backing:defer:contentView:] ()
#10 0x00007fff84421883 in -[NSWindow initWithContentRect:styleMask:backing:defer:] ()
#11 0x00000001011dec0d in -[SDL_QuartzWindow initWithContentRect:styleMask:backing:defer:] ()
#12 0x00000001011dc0e4 in QZ_SetVideoMode ()
#13 0x00000001011d325f in SDL_SetVideoMode ()
#14 0x000000010050e55e in SpringApp::SetSDLVideoMode (this=0x7fff5fbff860) at .../spring_0.82.7.1/rts/System/SpringApp.cpp:396
#15 0x000000010050edc1 in SpringApp::InitWindow (this=0x7fff5fbff860, title=0x102e49c58 "Spring 0.82.7") at .../spring_0.82.7.1/rts/System/SpringApp.cpp:355
#16 0x000000010051442b in SpringApp::Initialize (this=0x7fff5fbff860) at .../spring_0.82.7.1/rts/System/SpringApp.cpp:173
#17 0x0000000100514a11 in SpringApp::Run (this=0x7fff5fbff860, argc=1, argv=0x7fff5fbff988) at .../spring_0.82.7.1/rts/System/SpringApp.cpp:1153
#18 0x00000001005049e2 in Run (argc=1, argv=0x7fff5fbff988) at .../spring_0.82.7.1/rts/System/Main.cpp:55
#19 0x000000010003eac8 in start () at iostream:77
[/code]Apparently it still is a SDL-related issue... (sigh)
Well, that's it for now. Your turn
So as usual, all depending libraries have been installed via MacPorts, as seen on this tutorial. Project is then ccmaked "as is" and maked with -j option.
The good news is there's only one error left:
[code]Building CXX object AI/Skirmish/KAIK/CMakeFiles/KAIK.dir/__/__/__/rts/lib/lua/src/lapi.cpp.o
In file included from .../spring_0.82.7.1/rts/lib/lua/src/lapi.h:11,
from .../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:19:
.../spring_0.82.7.1/rts/lib/lua/src/lobject.h:204: error: ÔÇÿlua_HashÔÇÖ does not name a type
In file included from .../spring_0.82.7.1/rts/lib/lua/src/ldebug.h:11,
from .../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:20:
.../spring_0.82.7.1/rts/lib/lua/src/lstate.h:96: error: ÔÇÿlua_Func_fopenÔÇÖ does not name a type
.../spring_0.82.7.1/rts/lib/lua/src/lstate.h:97: error: ÔÇÿlua_Func_popenÔÇÖ does not name a type
.../spring_0.82.7.1/rts/lib/lua/src/lstate.h:98: error: ÔÇÿlua_Func_pcloseÔÇÖ does not name a type
.../spring_0.82.7.1/rts/lib/lua/src/lstate.h:99: error: ÔÇÿlua_Func_systemÔÇÖ does not name a type
..../spring_0.82.7.1/rts/lib/lua/src/lstate.h error: ÔÇÿlua_Func_removeÔÇÖ does not name a type
.../spring_0.82.7.1/rts/lib/lua/src/lstate.h:101: error: ÔÇÿlua_Func_renameÔÇÖ does not name a type
In file included from .../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:27:
.../spring_0.82.7.1/rts/lib/lua/src/lstring.h:30: error: ÔÇÿlua_HashÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿbool lua_toboolean(lua_State*, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:338: error: new declaration ÔÇÿbool lua_toboolean(lua_State*, int)ÔÇÖ
/opt/local/include/lua.h:148: error: ambiguates old declaration ÔÇÿint lua_toboolean(lua_State*, int)ÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: At global scope:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:466: error: ÔÇÿlua_HashÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1111: error: ÔÇÿlua_Func_fopenÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿvoid lua_set_fopen(lua_State*, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1112: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿfopen_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: At global scope:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1116: error: ÔÇÿlua_Func_popenÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1117: error: ÔÇÿlua_Func_pcloseÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿvoid lua_set_popen(lua_State*, int, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1119: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿpopen_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1120: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿpclose_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1122: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿpopen_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1123: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿpclose_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: At global scope:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1128: error: ÔÇÿlua_Func_systemÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿvoid lua_set_system(lua_State*, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1129: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿsystem_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: At global scope:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1133: error: ÔÇÿlua_Func_removeÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿvoid lua_set_remove(lua_State*, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1134: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿremove_funcÔÇÖ
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: At global scope:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1138: error: ÔÇÿlua_Func_renameÔÇÖ has not been declared
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp: In function ÔÇÿvoid lua_set_rename(lua_State*, int)ÔÇÖ:
.../spring_0.82.7.1/rts/lib/lua/src/lapi.cpp:1139: error: ÔÇÿstruct global_StateÔÇÖ has no member named ÔÇÿrename_funcÔÇÖ
make[2]: *** [AI/Skirmish/KAIK/CMakeFiles/KAIK.dir/__/__/__/rts/lib/lua/src/lapi.cpp.o] Error 1
make[1]: *** [AI/Skirmish/KAIK/CMakeFiles/KAIK.dir/all] Error 2
[/code]Strangely, lobject.h does have an 'include "lua.h"' line where lua_Hash and lua_Func_* are defined.
The bad news is that now spring crashes at startup, before the window opens (I'm not "make install"ing, but launching spring from the build folder right away). gdb / bt give:
[code]#0 0x00007fff8709ed55 in __cxxabiv1::__pbase_type_info::__do_catch ()
#1 0x00007fff8709d16e in get_adjusted_ptr ()
#2 0x00007fff8709d8de in __gxx_personality_v0 ()
#3 0x00007fff832a11f1 in _Unwind_RaiseException ()
#4 0x00007fff8709dbef in __cxa_throw ()
#5 0x00007fff885ab192 in objc_exception_throw ()
#6 0x00007fff8739a969 in -[NSException raise] ()
#7 0x00007fff844264b5 in -[NSWindow _commonAwake] ()
#8 0x00007fff8442316e in -[NSWindow _commonInitFrame:styleMask:backing:defer:] ()
#9 0x00007fff84421dfa in -[NSWindow _initContent:styleMask:backing:defer:contentView:] ()
#10 0x00007fff84421883 in -[NSWindow initWithContentRect:styleMask:backing:defer:] ()
#11 0x00000001011dec0d in -[SDL_QuartzWindow initWithContentRect:styleMask:backing:defer:] ()
#12 0x00000001011dc0e4 in QZ_SetVideoMode ()
#13 0x00000001011d325f in SDL_SetVideoMode ()
#14 0x000000010050e55e in SpringApp::SetSDLVideoMode (this=0x7fff5fbff860) at .../spring_0.82.7.1/rts/System/SpringApp.cpp:396
#15 0x000000010050edc1 in SpringApp::InitWindow (this=0x7fff5fbff860, title=0x102e49c58 "Spring 0.82.7") at .../spring_0.82.7.1/rts/System/SpringApp.cpp:355
#16 0x000000010051442b in SpringApp::Initialize (this=0x7fff5fbff860) at .../spring_0.82.7.1/rts/System/SpringApp.cpp:173
#17 0x0000000100514a11 in SpringApp::Run (this=0x7fff5fbff860, argc=1, argv=0x7fff5fbff988) at .../spring_0.82.7.1/rts/System/SpringApp.cpp:1153
#18 0x00000001005049e2 in Run (argc=1, argv=0x7fff5fbff988) at .../spring_0.82.7.1/rts/System/Main.cpp:55
#19 0x000000010003eac8 in start () at iostream:77
[/code]Apparently it still is a SDL-related issue... (sigh)
Well, that's it for now. Your turn