Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / Error Log From jniCompile.bat

Author
Message
Parry
8
Years of Service
User Offline
Joined: 16th Dec 2009
Location:
Posted: 10th Mar 2017 06:18 Edited at: 10th Mar 2017 06:20




I'm getting these errors when running the jniCompile.bat on a unaltered "template_android_google" with AppGameKit version 2017.02.28 (steam version). I'm using the latest NDK version: android-ndk-r14-windows-x86_64.zip

Any ideas?
Parry
8
Years of Service
User Offline
Joined: 16th Dec 2009
Location:
Posted: 10th Mar 2017 06:46
I tried a older version of NDK with similar results. version android-ndk-r11c-windows-x86_64

Parry
8
Years of Service
User Offline
Joined: 16th Dec 2009
Location:
Posted: 13th Mar 2017 21:36 Edited at: 13th Mar 2017 21:43
I'm really surprised no one else is having this issue. I downloaded the previous version (2017.01.09) from the website and it complied without errors (only warnings ).

Lucas Tiridath
AGK Developer
10
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 13th Mar 2017 21:59 Edited at: 13th Mar 2017 22:04
Yeah, I get all these errors too.
Quote: "jni/main.c:675:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static maxdevice = 6;"

Fix this simply by adding int.


Quote: "In file included from jni/Core.cpp:1:
In file included from jni/../../../../../../common/include\agk.h:13:
In file included from jni/../../../../../../common/include/cImage.h:8:
In file included from jni/../../../../../../common/include/Network.h:14:
In file included from jni/../../../../../../common/include/NetworkCommon.h:19:
jni/../../../../../../common/include/../../platform/android/Source/AndroidNetwork.h:236:23: warning: address of array 'this->m_szIP' will always evaluate to 'true' [-Wpointer-bool-conversion]
int IsIPV6() { if (!m_szIP) return 0; else return strchr(m_szIP,':') ? 1 : 0; }"

I think the fix for this is simply removing the unnecessary check, but that might just be patching over a deeper problem.


Quote: "jni/Core.cpp:13:5: error: unknown type name 'EGLDisplay'
EGLDisplay display;
^
jni/Core.cpp:14:5: error: unknown type name 'EGLSurface'
EGLSurface surface;
^
jni/Core.cpp:15:5: error: unknown type name 'EGLContext'
EGLContext context;
^
jni/Core.cpp:17:5: error: unknown type name 'EGLint'
EGLint format;"

Fix this lot by adding these includes to the Core.cpp file.


Quote: "jni/main.c:1001:9: warning: implicit declaration of function 'usleep' is invalid in C99 [-Wimplicit-function-declaration]
usleep( 100000 );"

Fix this one with this include at the top of main.c.


Hope that helps.
Alex_Peres
9
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 16th Mar 2017 16:31
Thanks man! It works!
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 18th Mar 2017 10:09
yes I also get these errors, thanks for the fixes, I'll see if it works for me.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
Stab in the Dark software
Valued Member
15
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 19th Mar 2017 02:01
Is Paul aware of this????
The coffee is lovely dark and deep,and I have code to write before I sleep.

Login to post a reply

Server time is: 2018-10-23 16:39:49
Your offset time is: 2018-10-23 16:39:49