26 (edited by CarmineZ 2019-03-07 09:21:00)

Re: Compiling Teeworlds Android version on Windows

is possible to port the newer 0.7.x version to Android?
while sdl and others stuff changed

27

Re: Compiling Teeworlds Android version on Windows

No

28 (edited by 2019-03-08 16:59:22)

Re: Compiling Teeworlds Android version on Windows

thanks for information pelya... last question:
is possible to build the apk (of your 0.6.4 port) to meet the minimum Api level required to publish in Google Play Store?

can I decrease the render refresh while in menus navigation, if this mean lower battery consuming?

29

Re: Compiling Teeworlds Android version on Windows

I tried to run teeworlds server 0.7.4 on a vps CentOS Linux release 7.7.1908 (Core)
and got this error:

/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./teeworlds_srv)

how can I solve?

30

Re: Compiling Teeworlds Android version on Windows

CarmineZ wrote:

I tried to run teeworlds server 0.7.4 on a vps CentOS Linux release 7.7.1908 (Core)
and got this error:

/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./teeworlds_srv)

how can I solve?

This isn't an old CentOS hmm
Linux does not seem great at compiling for other Linuxes. Can you try to build from source?

Not Luck, Just Magic.

31

Re: Compiling Teeworlds Android version on Windows

thanks for the advice (maybe was obvious), do you suggest the 0.7.4 release sources or the master branch in development?

32

Re: Compiling Teeworlds Android version on Windows

This shouldn't matter. 0.7.4 is a bit more stable I guess.

Not Luck, Just Magic.

33

Re: Compiling Teeworlds Android version on Windows

# make
[ 11%] Built target game-shared
[ 12%] Building C object CMakeFiles/engine-shared.dir/src/base/system.c.o
/root/teeworlds/src/base/system.c: In function ‘mem_has_null’:
/root/teeworlds/src/base/system.c:2328:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
  for(unsigned i = 0; i < size; i++)
  ^
/root/teeworlds/src/base/system.c:2328:2: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [CMakeFiles/engine-shared.dir/src/base/system.c.o] Error 1
make[1]: *** [CMakeFiles/engine-shared.dir/all] Error 2
make: *** [all] Error 2

I tried but...

34

Re: Compiling Teeworlds Android version on Windows

CarmineZ wrote:
# make
[ 11%] Built target game-shared
[ 12%] Building C object CMakeFiles/engine-shared.dir/src/base/system.c.o
/root/teeworlds/src/base/system.c: In function ‘mem_has_null’:
/root/teeworlds/src/base/system.c:2328:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
  for(unsigned i = 0; i < size; i++)
  ^
/root/teeworlds/src/base/system.c:2328:2: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [CMakeFiles/engine-shared.dir/src/base/system.c.o] Error 1
make[1]: *** [CMakeFiles/engine-shared.dir/all] Error 2
make: *** [all] Error 2

I tried but...

What's your OS, and what's your compiler? It looks like you somehow can't compile C99?
Maybe that's a CMake issue.

Not Luck, Just Magic.

35 (edited by CarmineZ 2020-04-04 23:40:31)

Re: Compiling Teeworlds Android version on Windows

ok, I solved by building the 0.7.4 release instead of the master branch, thanks... but can't register or access by ip:port

[2020-04-04 23:35:45][server]: version 0.7 802f1be60a05665f
[2020-04-04 23:35:45][engine/mastersrv]: refreshing master server addresses
[2020-04-04 23:35:45][register]: refreshing ip addresses
[2020-04-04 23:35:45][engine/mastersrv]: saving addresses
[2020-04-04 23:35:45][register]: fetching server counts
[2020-04-04 23:35:48][register]: chose 'master4.teeworlds.com' as master, sending heartbeats
[2020-04-04 23:36:48][register]: WARNING: Master server is not responding, switching master
[2020-04-04 23:36:48][engine/mastersrv]: refreshing master server addresses
[2020-04-04 23:36:48][register]: refreshing ip addresses
[2020-04-04 23:36:48][engine/mastersrv]: saving addresses
[2020-04-04 23:36:48][register]: fetching server counts
[2020-04-04 23:36:51][register]: chose 'master3.teeworlds.com' as master, sending heartbeats
[2020-04-04 23:37:51][register]: WARNING: Master server is not responding, switching master

36

Re: Compiling Teeworlds Android version on Windows

// solved by opening port with the command:
firewall-cmd permanent --zone=public --add-port=8303/udp
// and after reload the firewall (i don't know if is required)
firewall-cmd reload