简体   繁体   English

NDK-构建如何重建项目?

[英]NDK-Build how to rebuild project?

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: 我正在为windows和android使用双项目结构cocos2d-x,并使用cygwin构建我的项目,首先它构建了整个解决方案:

build 建立

$ANDROID_NDK_ROOT/ndk-build -C $GAME_ANDROID_ROOT $* $ 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? 如何强制它重建整个项目?

通过传递clean参数解决了问题,另一种可能的解决方案是使用-B参数强制执行。

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. 我不确定是不是这样,但是如果你使用Eclipse,你必须在ndk-build之后刷新项目(F5或在Project Explorer中右键单击项目并选择Refresh), 然后在Eclipse中构建它。 When you build you native portion on command line, Eclipse is not automatically aware of file changes that were made. 当您在命令行上构建本机部分时,Eclipse 不会自动识别所做的文件更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM