2014-10-10 3 views
0
#include "chipmunk/CCPhysicsHelper_chipmunk.h" 

Эта ошибка строки на Android, но iOS работает.Cocos2d-x включает ошибку CCPhysicsHelper_chipmunk.h в android

$ ./build_native.py 

... 
[armeabi] Compile++ thumb: cocos2dcpp_shared <= PEShapeCache_X3_0.cpp 
jni/../../src/MenuScene.cpp:97:54: warning: missing sentinel in function call 
     [-Wsentinel] 
    auto menu = Menu::create(playItem, rateItem, NULL); 
                ^
                , NULL 
jni/../../cocos2d/cocos/3d/../2d/CCMenu.h:81:18: note: function has been 
     explicitly marked sentinel here 
    static Menu* create(MenuItem* item, ...) CC_REQUIRES_NULL_TERMINATION; 
       ^
jni/../../src/PEShapeCache_X3_0.cpp:13:10: fatal error: 
     'chipmunk/CCPhysicsHelper_chipmunk.h' file not found 
#include "chipmunk/CCPhysicsHelper_chipmunk.h" 
     ^
[armeabi] Compile++ thumb: cocos2dcpp_shared <= AdmobHelper.cpp 
1 error generated. 
make: *** [obj/local/armeabi/objs/cocos2dcpp_shared/__/__/src/PEShapeCache_X3_0.o] Error 1 
make: *** Waiting for unfinished jobs.... 
1 warning generated. 
make: Leaving directory `/Users/js/iOS_Projects/cocos2d-x/MyGame/proj.android' 
Traceback (most recent call last): 
    File "./build_native.py", line 159, in <module> 
    build(opts.ndk_build_param,opts.android_platform,opts.build_mode) 
    File "./build_native.py", line 146, in build 
    do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode) 
    File "./build_native.py", line 82, in do_build 
    raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!") 
Exception: Build dynamic library for project [ /Users/js/iOS_Projects/cocos2d-x/MyGame/proj.android ] fails! 

Кто-нибудь знает, как это исправить?

ответ

2

ошибка из локальной включает Вы можете добавить это под LOCAL_C_INCLUDES ...

добавить это в Android.mk файл

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../cocos2d/cocos/physics 

 Смежные вопросы

  • Нет связанных вопросов^_^