ginotria at October 11th, 2011 09:35 — #1
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++.a
Prebuilt : libstlport_static.a <= /sources/cxx-stl/stlport/libs/armea
SharedLibrary : libcocos2d.so
atic.a: No such file: Permission denied
collect2: ld returned 1 exit status
make: \* [/cygdrive/d/projects/ccd/cocos2d-x/HelloWorld/android/obj/local/armea
bi/libcocos2d.so] Error 1
make: 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.
zhangxm at October 11th, 2011 15:20 — #2
zhangxm at October 11th, 2011 16:13 — #3
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?
ginotria at October 11th, 2011 17:58 — #4
yes, changing the mode of the file solved the problem.
chmod a+rw libstlport_static.a
Thanks for the immediate response. =)