Eclipse在每次运行时编译cocos2d-x核心文件

时间:2013-12-30 05:11:30

标签: eclipse android-ndk cocos2d-x

我在Windows上使用Cocos2d-x v2.2.1和Android NDK v r9

这是CDT Build Console输出:

10:36:27 **** Build of configuration Default for project AsteroidsClone ****
ndk-build.cmd 
Android NDK: WARNING: Unsupported source file extensions in jni/Android.mk for module cocos2dcpp_shared    
Android NDK:   LOCAL_SRC_FILES +=    
Android NDK: WARNING:C:\AndroidDev\cocos2d-x-2.2.1/cocos2dx/Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static libraries    
"Compile++ thumb : cocos2dcpp_shared <= main.cpp
"Compile++ thumb : cocos2dcpp_shared <= AppDelegate.cpp
"Compile++ thumb : cocos2dcpp_shared <= Asteroid.cpp
"Compile++ thumb : cocos2dcpp_shared <= Bullet.cpp
"Compile++ thumb : cocos2dcpp_shared <= GameLoop.cpp
"Compile++ thumb : cocos2dcpp_shared <= HelloWorldScene.cpp
"Compile++ thumb : cocos2dcpp_shared <= Ship.cpp
"Compile++ thumb : cocos_extension_static <= AssetsManager.cpp
"Compile++ thumb : cocos_extension_static <= CCBFileLoader.cpp
"Compile++ thumb : cocos_extension_static <= CCBReader.cpp
C:\AndroidDev\cocos2d-x-2.2.1/extensions/CCBReader/CCBReader.cpp:383:52: warning: multi-character character constant [-Wmultichar]
"Compile++ thumb : cocos_extension_static <= CCControlButtonLoader.cpp
"Compile++ thumb : cocos_extension_static <= CCControlLoader.cpp
"Compile++ thumb : cocos_extension_static <= CCLabelBMFontLoader.cpp
"Compile++ thumb : cocos_extension_static <= CCLabelTTFLoader.cpp
"Compile++ thumb : cocos_extension_static <= CCLayerColorLoader.cpp
"Compile++ thumb : cocos_extension_static <= CCLayerGradientLoader.cpp
"Compile++ thumb : cocos_extension_static <= CCLayerLoader.cpp
"Compile++ thumb : cocos_extension_static <= CCMenuItemImageLoader.cpp
"Compile++ thumb : cocos_extension_static <= CCMenuItemLoader.cpp

更喜欢它,对于Chipmunk,Box2D等。 每次平均需要3-6分钟。

我查了一遍: Cocos2d-x sources always compiling

然后我检查了这个文件: C:\AndroidDev\AndroidNDK\android-ndk-r9\build\core\definitions.mk

在第113行,我发现: $1:| $$(__ndk_file_dir)

根据上面的链接,一个人对补丁的回答,我刚才提到的这条线是正确的。如果我删除|符号后面的空格,我的构建就不会发生。

我的cocos2d-x来源一次又一次被编译的问题还有什么问题?!

0 个答案:

没有答案