I have followed http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How\_to\_run\_HelloWorld\_on\_ndk\_r4\_and\_r5 except that I have used ndk r6 from google instead version from crystax also changed nothing in cocos2dx/android.mk and helloworld.mk.
But when i try to run build_native.sh I always get this error.StaticLibrary : libstdc++.aPrebuilt : libstlport_static.a <= /sources/cxx-stl/stlport/libs/armeabi/SharedLibrary : libcocos2d.soC:/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: D:/projects/ccd/cocos2d-x/HelloWorld/android/obj/local/armeabi/libstlport_static.a: No such file: Permission deniedcollect2: ld returned 1 exit statusmake: \* [/cygdrive/d/projects/ccd/cocos2d-x/HelloWorld/android/obj/local/armeabi/libcocos2d.so] Error 1make: Leaving directory `/cygdrive/d/projects/ccd/cocos2d-x/HelloWorld/android’
How can I fix this? Im using cocos2d-1.0.1-x-0.9.1 btw.Thanks in advance.
I will try it now.
I have built with ndk-r6, it worked ok.My codes is the latest of github, but the .mk file is the same as cocos2d-1.0.1-x-0.9.1.
No such file: Permission denied
It seems you have not permission?
yes, changing the mode of the file solved the problem.
chmod a+rw libstlport_static.a
Thanks for the immediate response. =)