NDK-Build how to rebuild project?
Asked Answered
K

2

5

I am using a dual project structure cocos2d-x for windows and android, and using cygwin to build my project, at first it build the whole solution:

build

$ANDROID_NDK_ROOT/ndk-build -C $GAME_ANDROID_ROOT $*

but in posterior builds it does not build my modified files. How do I force it to rebuild the whole project?

Kleper answered 13/12, 2011 at 19:13 Comment(0)
K
7

Problem was solved by passing the clean parameter, another possible solution is to force by using the -B parameter.

Kleper answered 14/12, 2011 at 16:55 Comment(0)
Y
0

I'm not sure if this is it, but if you use Eclipse, you have to refresh your project (F5 or right-click on the project in Project Explorer and select Refresh), after ndk-build and then build it in Eclipse. When you build you native portion on command line, Eclipse is not automatically aware of file changes that were made.

Yclept answered 13/12, 2011 at 22:57 Comment(3)
That is not the problem. The problem is that ndk-build does not build the project again. I solved it by forcing a clean on ndk-build.Kleper
Great, you should accept your own answer whenever the system allows you to do so.Yclept
done. thanks for the tip, did not know we could anwser own questions.Kleper

© 2022 - 2024 — McMap. All rights reserved.