Dune wrote:Looks like a problem on your end. Are you sure you have all dependencies installed? E.g can you compile other versions of Teeworlds?
My dependencies are OK, as I'm able to build 0.6 release, 0.7 trunk and SushiTee.
Indeed sort of a problem on my end: GCC version 4.7 introduced some issues, e.g "error: ‘strtok’ was not declared in this scope" (hint: Porting to gcc 4.7).
This patch solves these errors (but leave these many warnings, which are not a problem, i guess):
--- a/src/engine/client/irc.cpp 2011-09-05 21:33:24.000000000 -0300
+++ b/src/engine/client/irc.cpp 2013-06-02 17:22:47.476711496 -0300
@@ -13,6 +13,7 @@
#endif
#include <stdio.h>
+#include <string.h>
#include <base/system.h>
#include <engine/shared/config.h>
--- a/src/engine/client/client.cpp 2011-09-05 21:32:24.000000000 -0300
+++ b/src/engine/client/client.cpp 2013-06-02 17:21:33.951158702 -0300
@@ -1,6 +1,7 @@
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
+#include <string.h>
#include <stdlib.h> // qsort
#include <stdio.h> // printf
#include <stdarg.h>
So, using this patch, i have the following results:
- Good news - I managed to build Gamer 4.3 with Teeworlds 0.6.0 (it works fine!)
(build log: http://paste.archlinux-br.org/2167)
- Bad news - It still fails to build with Teeworlds 0.6.2
(build log: http://paste.archlinux-br.org/2168)
Dune, Can you help on the version 0.6.2 problem?
Arch Linux users, see packages for some Teeworlds mod
here!