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.
static int maxdevice = 6;
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.
int IsIPV6() { return strchr(m_szIP,':') ? 1 : 0; }
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.
#include <EGL/egl.h>
#include <GLES2/gl2.h>
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.