Okay, so I’ve had another try, but I’ve now got this really wired error with the NDK.
I solved the include statements, don’t know how, I just did all your steps again, and it’s fine now?
So anyway, I build the project, and it says:
/home/Daniel/Development/Software/ndk/build/gmsl/__gmsl:513: *** non-numeric second argument to `wordlist’ function: ‘’. Stop.
So it’s starts building it fine, but there’s something wrong with an NDK file???
So I googled the error:
https://groups.google.com/forum/#!msg/android-ndk/b4DSxE1NAS0/X8djK5cP7q0J
And someone said to change this:
int_encode = $(__gmsl_tr1)$(wordlist 1,$1,$(__gmsl_input_int))
to this :
int_encode = $(__gmsl_tr1)$(wordlist 1,$(words $1),$(__gmsl_input_int))
Which from what I can gather addresses the problem.
So I did a build and clean in Eclipse and I get this now:
/home/Daniel/Development/Software/ndk/build/gmsl/__gmsl:513: *** missing separator. Stop.
Okay, the same line is failing, but now there’s a missing separator?
Any ideas?
Is there something wrong with my NDK version :
r8c.
Thanks again for fixing everything else though. Even though you’ve broken something else ;).
Daniel,
_____________________________________________________________________________________________________________________________–
I didn’t want to do 3 posts in a row, so I’ll edit this one.
I googled the error (should have done that first) and it’s was obviously a rouge space in the line
So now I do a build and clean and I get this…
**** Build of configuration Default for project Pong ****
bash /home/Daniel/Development/Projects/PongSample/android/build_native.sh NDK_DEBUG=1 V=1 all
make: Entering directory `/home/Daniel/Development/Projects/PongSample/android’
/home/Daniel/Development/Software/ndk/build/core/add-application.mk:128: Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion in ./AndroidManifest.xml
------------Deleted some here------------------
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp -o ./obj/local/armeabi/objs-debug/cocos2d/effects/CCGrabber.o
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp: In constructor ‘cocos2d::CCGrabber::CCGrabber()’:
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp:46:32: error: ‘glGenFramebuffersOES’ was not declared in this scope
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp: In member function ‘void cocos2d::CCGrabber::grab(cocos2d::CCTexture2D*)’:
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp:61:47: error: ‘glBindFramebufferOES’ was not declared in this scope
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp:65:26: error: ‘glFramebufferTexture2DOES’ was not declared in this scope
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp:68:63: error: ‘glCheckFramebufferStatusOES’ was not declared in this scope
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp: In member function ‘void cocos2d::CCGrabber::beforeRender(cocos2d::CCTexture2D*)’:
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp:88:47: error: ‘glBindFramebufferOES’ was not declared in this scope
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp: In member function ‘void cocos2d::CCGrabber::afterRender(cocos2d::CCTexture2D*)’:
make: Leaving directory `/home/Daniel/Development/Projects/PongSample/android’
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp:113:50: error: ‘glBindFramebufferOES’ was not declared in this scope
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp: In destructor ‘virtual cocos2d::CCGrabber::~CCGrabber()’:
jni/…/…/libs/cocos2dx/effects/CCGrabber.cpp:127:35: error: ‘glDeleteFramebuffersOES’ was not declared in this scope
make: *** [obj/local/armeabi/objs-debug/cocos2d/effects/CCGrabber.o] Error 1
**** Build Finished ****
The 3rd line says APP_PLATFORM android-14 is larger than android:minSdkVersion in ./AndroidManifest.xml
That makes no fucking sense what so ever, why is it complaining the platform is LARGER than the MINIMUM?
The rest is a whole bunch of building crap.
Then the last couple of lines are some more errors about libs/cocos2dx/effects/CCGrabber.cpp
My only theory on that is the Pong sample was built with an older version of the cocos engine and now the new one is throwing an error because of some feature, but I don’t know.
So I went from having one error, to 9.
I might break that ndk file again ;).