build_native.sh how to recompile?

Hi I modified my HelloWorldScene.cpp files but whenever i try to build my solution again using cygwin It simply outputs:

dan@dan-PC /cygdrive/c/cocos2d-1.0.1-x-0.10.0/widroid/android
$ ./build_native.sh
make: Entering directory `/cygdrive/c/cocos2d-1.0.1-x-0.10.0/widroid/android’
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Install : libcocos2d.so => libs/armeabi/libcocos2d.so
Install : libcocosdenshion.so => libs/armeabi/libcocosdenshion.so
Install : libgame_logic.so => libs/armeabi/libgame_logic.so
Install : libgame.so => libs/armeabi/libgame.so
make: Leaving directory `/cygdrive/c/cocos2d-1.0.1-x-0.10.0/widroid/android’

and does not build my new code. How do I fix this?

Sometimes I met this problem coz I ran build_native.sh in a wrong project folder.
So at first, please check:
* The modification in HelloworldScene.cpp is saved.
* You’re running a very build_native.sh of your project.

If the problem still existing, I have a finishing move:
* build_native.sh clean
Clean before build, aha.

Bingo. I was trying to do a clean but i was using clean as parameter. Are there other parameters, can I do a build_native.shB to force a rebuild?

You can use it like this:

./build_native.sh clean

You can pass any parameter ndk-build supports to build_native.sh.

All the things done according to the process
but
I faced the same problem ….

And this file isn’t present in the android ndk folder ….

what should I do to solve this problem ???

Hello. Can someone help me please.

I try to compile my helloWorld project for Android through cygwin:
$ ./build_native.sh
NDK_ROOT = C:ndk-r7-crystax-5.beta3-windows\android-ndk-r7-crystax-5.beta3
COCOS2DX_ROOT = /cygdrive/c/cocos2d-2.0-x-2.0.4/ee/proj.android/…/…
APP_ROOT = /cygdrive/c/cocos2d-2.0-x-2.0.4/ee/proj.android/…
APP_ANDROID_ROOT = /cygdrive/c/cocos2d-2.0-x-2.0.4/ee/proj.android
Using prebuilt externals
make: Вход в каталог `/cygdrive/c/cocos2d-2.0-x-2.0.4/ee/proj.android’
Gdbserver : libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
make: * No rule for target `cocos2d’, needed by `ndk-app-local’. Stop.
./build_native.sh clean
does not help.

day in googling without results… Thanks.

Through android met a lots of problem …. should I move to iOS ??
or
Plz improve the solution which faced during the compilation ….

Current problem is :
"
Install : libgame.so => libs/armeabi/libgame.so
install -p ./obj/local/armeabi/libgame.so ./libs/armeabi/libgame.so
/d/android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip —strip-unneeded ./libs/armeabi/libgame.so
make.exe: Leaving directory `/d/android/cocos2d-x-master/t14/proj.android’
"
How Can I fix it???

Sergey Droba wrote:

Hello. Can someone help me please.
>
I try to compile my helloWorld project for Android through cygwin:
$ ./build_native.sh
NDK_ROOT = C:UsersdrobaDownloadsandroid-ndk-r7-crystax-5.beta3-windowsandroid-ndk-r7-crystax-5.beta3
COCOS2DX_ROOT = /cygdrive/c/cocos2d-2.0-x-2.0.4/ee/proj.android/…/…
APP_ROOT = /cygdrive/c/cocos2d-2.0-x-2.0.4/ee/proj.android/…
APP_ANDROID_ROOT = /cygdrive/c/cocos2d-2.0-x-2.0.4/ee/proj.android
Using prebuilt externals
make: Вход в каталог `/cygdrive/c/cocos2d-2.0-x-2.0.4/ee/proj.android’
Gdbserver : [arm-linux-androideabi-4.6.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
make: * No rule for target `cocos2d’, needed by `ndk-app-local’. Stop.
>
./build_native.sh clean - does not help.
>
day in googling without results… Thanks.

Wow! I solved it! I just reinstall cocos2d-x to new folder, create new helloworld project and compiled it in VS 2012.
What from that helped me? I don’t know :slight_smile: But my project succefull run on android.