Has anyone tried to developed this on linux? android-ndk-linux-r5c and cocos2d-x.0.8.4

Hello, I ’m trying to use cocos2d-x for my android project.
However, from the instructions i found, it’s just all about windows…
i can’t find any tutorial and steps to use this on linux.

yesterday, i tried this by myself:
well, i just downloaded all packages needed and made some changes
of the ndk and cocos path at build_native.sh inside Helloworld android project.

first i run this on my terminal: sh build_native.sh
and it turns out pushd notfound, ./ndk-build: not found, popd:not found ???

then when i try this: bash build_native.sh
it compiles and make 2 additional folders but at the terminal there are a lot of errors…

i really have no idea how to compile build_native.sh and the steps below it…

please give me solution…

Thanks!

Maybe you can follow the section of mac osx in the tutorials.