nekruz2 / kwaak3

Automatically exported from code.google.com/p/kwaak3
0 stars 0 forks source link

Building fails using NDK R4 #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Modifying Makefile.local to include NDK R4 path and its arm-eabi-4.4.0 
compiler
2. Running make from the ioquake3 directory
3.

What is the expected output? What do you see instead?
It should compile successfully according to the build instructions. But I get 
two errors:

code/qcommon/net_ip.c:85: error: redefinition of 'in6addr_any'
code/qcommon/net_ip.c:86: error: redefinition of 'in6addr_loopback'

What version of the product are you using? On what operating system?
SDK 2.1, NDK R4, trying to run the game on the emulator.

Please provide any additional information below.

Original issue reported on code.google.com by ahmed....@gmail.com on 7 Jul 2010 at 10:18

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Maybe I should also add that I'm trying to compile on a 64-bit Ubuntu 9.04 
machine.

CC code/qcommon/net_ip.c
code/qcommon/net_ip.c:84:1: warning: "IN6ADDR_ANY_INIT" redefined
In file included from 
/Android-Devel/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/net
inet/in.h:35,
                 from /Android-Devel/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/arpa/inet.h:33,
                 from code/qcommon/net_ip.c:65:
/Android-Devel/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/net
inet/in6.h:96:1: warning: this is the location of the previous definition
code/qcommon/net_ip.c:85: error: redefinition of 'in6addr_any'
/Android-Devel/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/net
inet/in.h:43: note: previous definition of 'in6addr_any' was here
code/qcommon/net_ip.c:86: error: redefinition of 'in6addr_loopback'
/Android-Devel/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/net
inet/in.h:44: note: previous definition of 'in6addr_loopback' was here
make[2]: *** [build/release-linux-arm/client/net_ip.o] Error 1
make[2]: Leaving directory `/Gaming/kwaak3/kwaak3-read-only/ioquake3'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/Gaming/kwaak3/kwaak3-read-only/ioquake3'
make: *** [release] Error 2

Original comment by ahmed....@gmail.com on 7 Jul 2010 at 10:47

GoogleCodeExporter commented 8 years ago
The android headers used to be broken and that's why I define this stuff in 
kwaak3. It is likely safe to remove the conflicting lines from the code :) When 
I have time I will update the code.

Original comment by thunderb...@gmail.com on 8 Jul 2010 at 2:48

GoogleCodeExporter commented 8 years ago
Thanks! I managed to compile it after commenting out those two lines. I'm able 
to launch the game now. However, the graphics seem to be rendering ok up to the 
point where the game session starts. During game play, I get a pixelated 
picture with a white background. Is that normal on the AVD (emulator)?! I 
attach a couple of screen shots to clarify what I mean.

Original comment by ahmed....@gmail.com on 8 Jul 2010 at 6:11

Attachments:

GoogleCodeExporter commented 8 years ago
Yeah the game doesn't work well in the emulator. I haven't researched it well. 
It could be that quake3 uses opengl texture formats which the emulator doesn't 
offer. Others also said the emulator was quite buggy. Once quake3 started, I 
didn't use the emulator anymore.

Original comment by thunderb...@gmail.com on 10 Jul 2010 at 10:34

GoogleCodeExporter commented 8 years ago
The compile bug has been fixed in SVN.

Original comment by thunderb...@gmail.com on 12 Jul 2010 at 1:20