Native Android Export with NDK (please help!)

I’m trying to export a native game to Android, following the instructions here: wiki.compilgames.net/doku.php/gd … oid_export

However, when I get to the ndk-build stage, it gives me errors when it gets to compiling OpenGLTools.h and RuntimeScene.cpp. I have attached the console output below. I would really appreciate if someone could help, but please bear in mind I have no programming knowledge.

Thanks!

[code]Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd c:\Users\Natan\Desktop\n1

c:\Users\Natan\Desktop\n1>“C:\Program Files (x86)\GDevelop\CppPlatform\MinGW32\m
ingwvars.bat”

Setting up environment for using MinGW with GCC from C:\Program Files (x86)\GDev
elop\CppPlatform\MinGW32.

c:\Users\Natan\Desktop\n1>PATH=“C:\Users\Natan\AppData\Local\apache-ant-1.9.4\bi
n”;“C:\Users\Natan\Documents\ANDROID\NDK”;“C:\Users\Natan\AppData\Local\Android
Sdk\tools”;“C:\Users\Natan\AppData\Local\Android\Sdk\platform-tools”;%PATH%

c:\Users\Natan\Desktop\n1>android update project --target “android-19” --path .
Updated and renamed default.properties to project.properties
Updated local.properties
Updated file C:\Users\Natan\Desktop\n1\proguard-project.txt

c:\Users\Natan\Desktop\n1>ndk-build
[armeabi] Gdbserver : [arm-linux-androideabi-4.9] libs/armeabi/gdbserver
[armeabi] Gdbsetup : libs/armeabi/gdb.setup
[armeabi-v7a] Gdbserver : [arm-linux-androideabi-4.9] libs/armeabi-v7a/gdbs
erver
[armeabi-v7a] Gdbsetup : libs/armeabi-v7a/gdb.setup
[x86] Gdbserver : [x86-4.9] libs/x86/gdbserver
[x86] Gdbsetup : libs/x86/gdb.setup
[armeabi] Prebuilt : libsfml-activity.so <= /sources/sfml/lib/armeabi
/
[armeabi] Install : libsfml-activity.so => libs/armeabi/libsfml-activity.
so
[armeabi] Compile++ thumb: sfml-example <= BehaviorsRuntimeSharedData.cpp
[armeabi] Compile++ thumb: sfml-example <= BehaviorsRuntimeSharedDataHolder.cpp
[armeabi] Compile++ thumb: sfml-example <= CodeExecutionEngine.cpp
In file included from jni/GDCpp/GDCpp/Runtime/Tools/DynamicLibrariesTools.h:7:0,

             from jni/GDCpp/GDCpp/Runtime/CodeExecutionEngine.h:8,
             from jni/GDCpp/GDCpp/Runtime/CodeExecutionEngine.cpp:8:

jni/Core/GDCore/Tools/DynamicLibrariesTools.h:22:6: warning: #warning system not
supported for dynamic libraries loading [-Wcpp]
#warning system not supported for dynamic libraries loading
^
[armeabi] Compile++ thumb: sfml-example <= Collisions.cpp
[armeabi] Compile++ thumb: sfml-example <= DatFile.cpp
[armeabi] Compile++ thumb: sfml-example <= ExtensionsLoader.cpp
In file included from jni/Core/GDCore/IDE/ExtensionsLoader.cpp:11:0,
from jni/GDCpp/GDCpp/Runtime/ExtensionsLoader.cpp:8:
jni/Core/GDCore/Tools/DynamicLibrariesTools.h:22:6: warning: #warning system not
supported for dynamic libraries loading [-Wcpp]
#warning system not supported for dynamic libraries loading
^
[armeabi] Compile++ thumb: sfml-example <= FontManager.cpp
[armeabi] Compile++ thumb: sfml-example <= Force.cpp
[armeabi] Compile++ thumb: sfml-example <= ImageManager.cpp
[armeabi] Compile++ thumb: sfml-example <= InputManager.cpp
[armeabi] Compile++ thumb: sfml-example <= Log.cpp
[armeabi] Compile++ thumb: sfml-example <= ManualTimer.cpp
[armeabi] Compile++ thumb: sfml-example <= Music.cpp
[armeabi] Compile++ thumb: sfml-example <= ObjInstancesHolder.cpp
[armeabi] Compile++ thumb: sfml-example <= Point.cpp
[armeabi] Compile++ thumb: sfml-example <= Polygon2d.cpp
[armeabi] Compile++ thumb: sfml-example <= PolygonCollision.cpp
[armeabi] Compile++ thumb: sfml-example <= ResourcesLoader.cpp
[armeabi] Compile++ thumb: sfml-example <= RuntimeContext.cpp
[armeabi] Compile++ thumb: sfml-example <= RuntimeGame.cpp
[armeabi] Compile++ thumb: sfml-example <= RuntimeLayer.cpp
[armeabi] Compile++ thumb: sfml-example <= RuntimeObject.cpp
[armeabi] Compile++ thumb: sfml-example <= RuntimeObjectsListsTools.cpp
[armeabi] Compile++ thumb: sfml-example <= RuntimeScene.cpp
In file included from jni/GDCpp/GDCpp/Runtime/Tools/DynamicLibrariesTools.h:7:0,

             from jni/GDCpp/GDCpp/Runtime/CodeExecutionEngine.h:8,
             from jni/GDCpp/GDCpp/Runtime/RuntimeScene.cpp:40:

jni/Core/GDCore/Tools/DynamicLibrariesTools.h:22:6: warning: #warning system not
supported for dynamic libraries loading [-Wcpp]
#warning system not supported for dynamic libraries loading
^
In file included from jni/GDCpp/GDCpp/Runtime/Tools/OpenGLTools.h:1:0,
from jni/GDCpp/GDCpp/Runtime/RuntimeScene.cpp:32:
jni/Core/GDCore/Tools/OpenGLTools.h:5:33: error: variable or field ‘PerspectiveG
L’ declared void
void GD_CORE_API PerspectiveGL( GLdouble fovY, GLdouble aspect, GLdouble zNear,
GLdouble zFar );
^
jni/Core/GDCore/Tools/OpenGLTools.h:5:33: error: ‘GLdouble’ was not declared in
this scope
jni/Core/GDCore/Tools/OpenGLTools.h:5:48: error: ‘GLdouble’ was not declared in
this scope
void GD_CORE_API PerspectiveGL( GLdouble fovY, GLdouble aspect, GLdouble zNear,
GLdouble zFar );
^
jni/Core/GDCore/Tools/OpenGLTools.h:5:65: error: ‘GLdouble’ was not declared in
this scope
void GD_CORE_API PerspectiveGL( GLdouble fovY, GLdouble aspect, GLdouble zNear,
GLdouble zFar );
^
jni/Core/GDCore/Tools/OpenGLTools.h:5:81: error: ‘GLdouble’ was not declared in
this scope
void GD_CORE_API PerspectiveGL( GLdouble fovY, GLdouble aspect, GLdouble zNear,
GLdouble zFar );

^
make: *** [obj/local/armeabi/objs-debug/sfml-example/GDCpp/GDCpp/Runtime/Runtime
Scene.o] Error 1[/code]

OK, if anyone is reading this post, no need to reply anymore; I managed to export my game with Cocos 2D, which works perfectly :slight_smile: