becomePain / kwaak3

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

can't compile ioquake: gl.h:719: error: expected '=', ',', ';', 'asm' or 'attribute' before 'glScissor' #140

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Ubuntu on VirtualBox, which in turn runs on windows 7 
2. modify makefile.local as directed
3. run make on the ioQuake folder

What is the expected output? What do you see instead?
Instead of compiling I get a long list of errors in the form of : 'expected 
'=', ',', ';', 'asm' or 'attribute' before token' All errors relate to gl.h in 
/android-ndk-r5b/platforms/android-4/arch-arm/usr/include/GLES/ and the tokens 
are things such as glscissor. e.g. 
/android-ndk-r5b/platforms/android-4/arch-arm/usr/include/GLES/gl.h:719: error: 
expected '=', ',', ';', 'asm' or 'attribute' before 'glScissor'

not sure on the line number

Original issue reported on code.google.com by beniangi...@gmail.com on 25 Jun 2011 at 1:50

GoogleCodeExporter commented 8 years ago
Found a way to get it to compile, although I honestly don't understand what I 
did. I found a makefile.local online that had an extra CFLAG that I didn't and 
when I added it ioquake compiled just fine. The flag was -D__ANDROID__.

However I am still having issues, specifically issue 133. Using this approach 
could well be the cause

Original comment by beniangi...@gmail.com on 26 Jun 2011 at 12:14

GoogleCodeExporter commented 8 years ago
I am having this same issue as well . May i know where u set that flag ? 

Original comment by deefar...@gmail.com on 20 Sep 2011 at 3:29

GoogleCodeExporter commented 8 years ago
in the makefile.local file inside the ioquake3 folder.

I changed the line:
CFLAGS=$(ANDROID_CFLAGS) 
-I$(ANDROID_NDK_DIR)/build/platforms/android-4/arch-arm/usr/include -DANDROID 
-D__linux__ -D__MATH_NEON
to:
CFLAGS=$(ANDROID_CFLAGS) 
-I$(ANDROID_NDK_DIR)/platforms/android-9/arch-arm/usr/include -DANDROID 
-D__linux__ -D__MATH_NEON -D__ANDROID__

since it has a path in that line rather than copy and pasting the whole line 
you should just find the same line in your makefile.local and add -D__ANDROID__ 
at the end

Original comment by bigbiso...@gmail.com on 4 Jan 2012 at 1:11