leper
WFG Retired-
Posts
1.290 -
Joined
-
Last visited
-
Days Won
30
Everything posted by leper
-
Guessing from the prompt you are in 0ad/build/workspaces already. The commands you entered should be entered separately (or connected with &&): cd 0ad/build/workspaces ./update-workspaces.sh -j5 && cd gcc && make -j5 EDIT: As the build process on OS X has some hiccups I just want to add that you can join us on the dev IRC channel if you have some questions
-
Thanks for reporting this, it is fixed by revision 11951.
-
You missed one. Use git svn (needs both installed) and you can work with git locally and commit to the svn repo with git svn dcommit. Apart from that I believe we should just integrate a git sync with trac's post-commit-hook and be done with it.
-
New GUI: Design & Features Discussion
leper replied to Mythos_Ruler's topic in Game Development & Technical Discussion
This. All the other suggestions are great (except tabs), but something that I've been missing in those mockups is how do we display all the stuff needed for multiple selected units (formations, stances, buildable structures, stats)? -
Press shift to keep building.
-
The errors (and warnings) are saved to mainlog.html (and a more verbose version to interestinglog.html). The location of these files depends on your OS.
-
r11697 fixes this. Every unit that has at least one of the classes 'Infantry' and 'Ranged' counts as an archer.
-
"...TypeError: cmpTimer.SetInterval is not a function..."
leper replied to lulo's topic in Bug reports
Thanks for reporting this. The issue is resolved in r11695. -
#1191 'esc' key mapped to toggleMenu()
leper replied to MattDoerksen's topic in Game Development & Technical Discussion
Well I guess querying the g_IsNetworked variable is your best bet as the gui is separeted from the simulation. The interaction with the simulation is mostly done through simulation/components/GuiInterface.js (and performCommands in helpers/Commands.js). The mouse click is handled in session.xml <action on="Press">doSomething();</action> You probably won't need to touch the C++ side of the code base for this ticket at all. -
#1191 'esc' key mapped to toggleMenu()
leper replied to MattDoerksen's topic in Game Development & Technical Discussion
Welcome to the forums. All the code needed for this task should be in gui/session/. The files you are looking for are session.js (contains g_IsNetworked to check for a network game), session.xml for the gui placement and function calling and menu.js for the menu code. And if you have finished this task we have a list of starter task (those can get you accustomed to our codebase). -
r11471 makes it possible to control domestic herd animals. This does not add support for capuring those animals.
-
So animals owned by the player should respond to move orders? Should probably take a look at that.
-
That is currently being worked on. The related ticket is #1210. As far as I know it is a design decision that you can not controll animals. There is a ticket for this too (#795). I hope I have answered your questions.
-
I suppose you want to use actors for the trees that can't be reached and are just for decoration.
-
It is planned that only one (maybe of a type) hero unit can be built at a time.
-
I fixed the wiki article but just in case you find something wrong or incomplete in the wiki you can edit the wiki yourself.
-
Is by any chance some of the folders .config or .local in your ~ directory owned by another user (usually caused by running programs that write there as root)? Did you build it with makepkg and install it with pacman? The saved games are stored in ~/.local/share/0ad/saves/ (or $XDG_DATA_HOME/0ad/saves if you changed that environment variable) so you should check the file permissions of that folder.
-
UPDATE: Modified (or rather simplified) my patch (only the build scripts) due to the better support for FreeBSD in svn. Got AtlasUI to compile (see the changes in update-workspaces.sh in the 2012-01-31.patch) if I remove the wxUSE_DEBUGREPORT block from source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp. The two tests are still failing and I couldn't solve the elf class mismatch. As some of the FreeBSD patches are going into trunk I got motivated again and cleaned up some of the build modifications in my patch. To get spidermonkey to compile you still need the patch from my previous post. Now everything is compiling fine with the one exception being AtlasUI: test@openindiana:~/build/0ad/build/workspaces/gcc$ gmake ==== Building mocks_real (release) ==== ==== Building network (release) ==== ==== Building simulation2 (release) ==== ==== Building scriptinterface (release) ==== ==== Building engine (release) ==== ==== Building graphics (release) ==== ==== Building atlas (release) ==== ==== Building gui (release) ==== ==== Building lowlevel (release) ==== ==== Building mongoose (release) ==== ==== Building pyrogenesis (release) ==== ==== Building mocks_test (release) ==== ==== Building AtlasObject (release) ==== ==== Building AtlasScript (release) ==== ==== Building AtlasUI (release) ==== DLLInterface.cpp ../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp: In member function 'virtual void AtlasDLLApp::OnFatalException()': ../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:248:3: error: 'wxDebugReport' was not declared in this scope ../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:248:17: error: expected ';' before 'report' ../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:249:3: error: 'wxDebugReportPreviewStd' was not declared in this scope ../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:249:27: error: expected ';' before 'preview' ../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:251:3: error: 'report' was not declared in this scope ../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:253:7: error: 'preview' was not declared in this scope gmake[1]: *** [obj/AtlasUI_Release/DLLInterface.o] Error 1 gmake: *** [AtlasUI] Error 2 That code is only compiled if wxUSE_DEBUGREPORT is set. If it isn't set you just need to add -mimpure-text to the LDFLAGS and remove -fstack-protector-all from the CFLAGS in AtlasUI.make to make AtlasUI compile and link properly. So to compile the game just use: gmake Collada pyrogenesis test Now just cd to binaries/system and run test with: LD_PRELOAD=/usr/g++/lib/libboost_system.so.1.48.0 ./test 2 tests are failing Running 258 tests..................................................................................................trace.cpp(67): Assertion failed: "dummy == ':'" Assertion failed: "dummy == ':'" Location: trace.cpp:67 (TraceEntry) Call stack: (85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af] (84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164] (84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13] (84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219] (84ded82) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x302 [0x84ded82] (81c8965) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0x925 [0x81c8965] (8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34] (816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f] (85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7] (81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3] errno = 0 (Invalid alignment) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? C trace.cpp(70): Assertion failed: "action == 'L' || action == 'S'" Assertion failed: "action == 'L' || action == 'S'" Location: trace.cpp:70 (TraceEntry) Call stack: (85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af] (84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164] (84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13] (84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219] (84def34) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x4b4 [0x84def34] (81c8965) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0x925 [0x81c8965] (8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34] (816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f] (85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7] (81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3] errno = 0 (No error reported here) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? C trace.cpp(74): Assertion failed: "dummy == '"'" Assertion failed: "dummy == '"'" Location: trace.cpp:74 (TraceEntry) Call stack: (85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af] (84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164] (84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13] (84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219] (84dedfc) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x37c [0x84dedfc] (81c8965) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0x925 [0x81c8965] (8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34] (816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f] (85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7] (81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3] errno = 0 (No error reported here) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? C trace.cpp(82): Assertion failed: "stream.get() == '\n'" Assertion failed: "stream.get() == '\n'" Location: trace.cpp:82 (TraceEntry) Call stack: (85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af] (84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164] (84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13] (84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219] (84df0a2) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x622 [0x84df0a2] (81c8965) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0x925 [0x81c8965] (8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34] (816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f] (85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7] (81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3] errno = 0 (No error reported here) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? C trace.cpp(83): Assertion failed: "stream.good()" Assertion failed: "stream.good()" Location: trace.cpp:83 (TraceEntry) Call stack: (85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af] (84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164] (84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13] (84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219] (84df0e6) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x666 [0x84df0e6] (81c8965) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0x925 [0x81c8965] (8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34] (816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f] (85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7] (81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3] errno = 0 (No error reported here) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? C In TestTraceEntry::test_entry: ../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:54: Error: Expected (t3.Action() == TraceEntry::Load), found ({ 30 00 00 00 } != { 4C 00 00 00 }) ../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:55: Error: Expected ((t3.Pathname()).string() == (OsPath(L"example.txt")).string()), found (L"7052: L " != L"example.txt") ../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:56: Error: Expected (t3.Size() == (size_t)1234), found (0 != 1234) trace.cpp(67): Assertion failed: "dummy == ':'" Assertion failed: "dummy == ':'" Location: trace.cpp:67 (TraceEntry) Call stack: (85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af] (84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164] (84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13] (84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219] (84ded82) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x302 [0x84ded82] (81c8b73) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0xb33 [0x81c8b73] (8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34] (816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f] (85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7] (81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3] errno = 0 (No error reported here) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? C trace.cpp(70): Assertion failed: "action == 'L' || action == 'S'" Assertion failed: "action == 'L' || action == 'S'" Location: trace.cpp:70 (TraceEntry) Call stack: (85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af] (84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164] (84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13] (84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219] (84def34) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x4b4 [0x84def34] (81c8b73) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0xb33 [0x81c8b73] (8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34] (816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f] (85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7] (81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3] errno = 0 (No error reported here) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? C trace.cpp(74): Assertion failed: "dummy == '"'" Assertion failed: "dummy == '"'" Location: trace.cpp:74 (TraceEntry) Call stack: (85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af] (84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164] (84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13] (84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219] (84dedfc) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x37c [0x84dedfc] (81c8b73) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0xb33 [0x81c8b73] (8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34] (816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f] (85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7] (81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3] errno = 0 (No error reported here) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? C trace.cpp(82): Assertion failed: "stream.get() == '\n'" Assertion failed: "stream.get() == '\n'" Location: trace.cpp:82 (TraceEntry) Call stack: (85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af] (84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164] (84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13] (84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219] (84df0a2) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x622 [0x84df0a2] (81c8b73) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0xb33 [0x81c8b73] (8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34] (816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f] (85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7] (81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3] errno = 0 (No error reported here) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? C trace.cpp(83): Assertion failed: "stream.good()" Assertion failed: "stream.good()" Location: trace.cpp:83 (TraceEntry) Call stack: (85252af) /home/test/build/0ad/binaries/system/test'_Z15debug_DumpStackPwjPvPKw+0x2f [0x85252af] (84d1164) /home/test/build/0ad/binaries/system/test'_Z23debug_BuildErrorMessagePKwS0_iPKcPvS0_P15ErrorMessageMem.constprop.59+0x1a4 [0x84d1164] (84d1f13) /home/test/build/0ad/binaries/system/test'_Z18debug_DisplayErrorPKwjPvS0_S0_iPKcPVi.part.47+0xd3 [0x84d1f13] (84d2219) /home/test/build/0ad/binaries/system/test'_Z24debug_OnAssertionFailurePKwPViS0_iPKc+0xd9 [0x84d2219] (84df0e6) /home/test/build/0ad/binaries/system/test'_ZN10TraceEntryC2ERKSbIwSt11char_traitsIwESaIwEE+0x666 [0x84df0e6] (81c8b73) /home/test/build/0ad/binaries/system/test'_ZN14TestTraceEntry10test_entryEv+0xb33 [0x81c8b73] (8159b34) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest19RealTestDescription3runEv+0x24 [0x8159b34] (816198f) /home/test/build/0ad/binaries/system/test'_ZN7CxxTest13PsTestWrapper6runGuiERiPPcRNS_12TestListenerE+0x23f [0x816198f] (85a2cd7) /home/test/build/0ad/binaries/system/test'main+0xc7 [0x85a2cd7] (81547b3) /home/test/build/0ad/binaries/system/test'_start+0x83 [0x81547b3] errno = 0 (No error reported here) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? C ../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:59: Error: Expected (t4.Action() == TraceEntry::Store), found ({ 30 00 00 00 } != { 53 00 00 00 }) ../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:60: Error: Expected ((t4.Pathname()).string() == (OsPath(L"example two.txt")).string()), found (L"7139: S " != L"example two.txt") ../../../libraries/boost/include/../../../source/lib/file/common/tests/test_trace.h:61: Error: Expected (t4.Size() == (size_t)16777216), found (0 != 16777216) .... In TestMatrix::test_getRotation: ../../../source/maths/tests/../../../source/maths/tests/test_Matrix3d.h:140: Error: Expected (m.GetYRotation() == a) up to 0.001f (0.0010), found (3.1415 != -3.1415) .......................................................................................................................................................... Failed 2 of 258 tests Success rate: 99% Now (probably due to a version bump of the available boost library to 1.48) executing LD_PRELOAD=/usr/g++/lib/libboost_signals.so.1.48.0:/usr/g++/lib/libboost_filesystem.so.1.48.0:/usr/g++/lib/libboost_system.so.1.48.0 ./pyrogenesis results in a elf class mismatch: WARNING: Invalid locale settings WARNING: LC_ALL="(unset)" WARNING: LC_COLLATE="(unset)" WARNING: LC_CTYPE="(unset)" WARNING: LC_MONETARY="(unset)" WARNING: LC_NUMERIC="(unset)" WARNING: LC_TIME="(unset)" WARNING: LC_MESSAGES="(unset)" WARNING: LANG="en_US.UTF-8" WARNING: Setting LC_ALL env variable to: C Cache: 200 (total: 2047) MiB TIMER| InitVfs: 4.60571 ms TIMER| InitScripting: 25.5709 ms TIMER| CONFIG_Init: 14.4873 ms ld.so.1: ps: fatal: /usr/g++/lib/libboost_signals.so.1.48.0: wrong ELF class: ELFCLASS32 OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM. OpenGL Warning: glXChooseVisual: ignoring attribute 0x22 ld.so.1: ps: fatal: /usr/g++/lib/libboost_signals.so.1.48.0: wrong ELF class: ELFCLASS32 OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM. Segmentation Fault (core dumped) even though pyrogenesis and libboost_signals.so.1.48.0 are both ELFCLASS32. elfdump -e pyrogenesis ELF Header ei_magic: { 0x7f, E, L, F } ei_class: ELFCLASS32 ei_data: ELFDATA2LSB ei_osabi: ELFOSABI_SOLARIS ei_abiversion: EAV_SUNW_CURRENT e_machine: EM_386 e_version: EV_CURRENT e_type: ET_EXEC e_flags: 0 e_entry: 0x8127d10 e_ehsize: 52 e_shstrndx: 2726 e_shoff: 0x4f73d0c e_shentsize: 40 e_shnum: 2727 e_phoff: 0x34 e_phentsize: 32 e_phnum: 7 elfdump -e /usr/g++/lib/libboost_signals.so.1.48.0 ELF Header ei_magic: { 0x7f, E, L, F } ei_class: ELFCLASS32 ei_data: ELFDATA2LSB ei_osabi: ELFOSABI_SOLARIS ei_abiversion: EAV_SUNW_CURRENT e_machine: EM_386 e_version: EV_CURRENT e_type: ET_DYN e_flags: 0 e_entry: 0 e_ehsize: 52 e_shstrndx: 60 e_shoff: 0x19c04 e_shentsize: 40 e_shnum: 61 e_phoff: 0x34 e_phentsize: 32 e_phnum: 4 EDIT: Fixed AtlasUI build openindiana_support-2012-01-29.patch openindiana_support-2012-01-31.patch
-
Thanks. I think it should work without any real problems if all the dependencies are satisfied. When there is a .iso of StormOS available it shouldn't be a lot of work to get 0ad running (due to the availability of the Debian repositiories). Now the promised patch for 0ad on OpenIndiana: openindiana_support-2012-01-12.patch is applied to the clone of the svn repo. openindiana-support-spidermonkey-2012-01-09.patch is applied to 0ad/libraries/spidermonkey/js185-1.0.0.tar.gz (NOTE: i saved it as js185-1.0.0-leper-fix.tar.gz as it is referenced in the other patch) To build 0ad (Building Atlas is not working at the moment) cd 0ad/build/workspaces ./update-workspaces.sh -j3 cd gcc gmake Collada pyrogenesis config=release -j3 Now we just need to fix a misnamed library (I don't know where to put that in the buildfiles as I am not sure when this file is copied there): cd ../../../binaries/system # or cd to 0ad/binaries/system ln -s libmozjs185-ps-release.so.1.0 libmozjs185-ps-release.so In an ideal world we could now just run 0ad with ./pyrogenesis but since that complains about not found libraries we need to specify those to run it: LD_PRELOAD=./libmozjs185-ps-release.so:/usr/g++/lib/libboost_signals.so.1.47.0:/usr/g++/lib/libboost_filesystem.so.1.47.0:/usr/g++/lib/libboost_system.so.1.47.0:./libenet.so.1:./libnvcore.so:./libnvmath.so:./libnvimage.so:./libnvtt.so:./libCollada.so ./pyrogenesis
-
I finally managed to get 0ad to compile. I'm currently cleaning up my edits and I am trying to edit the build scripts to make an easy build possible. I will release a patch here once I finished that.
-
Inspired by the Build on FreeBSD thread i decided to try and build 0ad on OpenIndiana. I'm currently doing this in a x86 VM. Add SFE repository pkg set-publisher -p http://pkg.openindiana.org/sfe Needed packages g++/wxwidgets (from sfe) (the graphics/wxwidgets version misses a gl library) gcc (from sfe) subversion boost openal system/header header-math gettext (for pkg-config) developer/library/lint other needed packages like libxml2 are included in the default install. After installing these packages checkout the svn repo with svn co http://svn.wildfiregames.com/public/ps/trunk/ 0ad and apply the patch i created to get fcollada to build without errors. NOTE: The spidermonkey build still fails but i'm trying to fix those errors too. EDIT: The error messages from spidermonkey In file included from ../v8-dtoa/v8.h:47:0, from ../v8-dtoa/conversions.cc:30: ../v8-dtoa/platform.h:70:5: error: expected unqualified-id before '__extension__' In file included from ../v8-dtoa/platform.h:77:0, from ../v8-dtoa/v8.h:47, from ../v8-dtoa/conversions.cc:30: ./dist/system_wrappers_js/stdarg.h:2:37: error: expected declaration before end of line gmake[1]: *** [conversions.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: Leaving directory `/home/test/build/0ad/libraries/spidermonkey/js-1.8.5/js/src/build-debug' gmake: *** [default] Error 2 ERROR: SpiderMonkey build failed EDIT2: I managed to get nvtt to build (while using the same header file as linux...) The patch to get nvtt to build and for fcollada is openindiana_support_fcollada_and_nvtt-2012-01-07.patch EDIT3: fixed wxwidgets dependency 0ad-openindiana-support-fcollada_2012-01-07.patch openindiana_support_fcollada_and_nvtt-2012-01-07.patch