LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static cocos_extension_static
LOCAL_WHOLE_STATIC_LIBRARIES *= box2d_static
include $
$
$
$
$
——————————————————————-
While executing the build_native.sh, I got errors:
Compile*+ thumb : game_shared <= main.cpp
Compile*+ thumb : game_shared <= AppDelegate.cpp
Compile*+ thumb : game_shared <= HelloWorldScene.cpp
Compile++ thumb : cocos_extension_static <= CCPhysicsSprite.cpp
In file included from D:/android/cocos2d-x/Cocos2d_x_Android/proj.android/…/…/extensions/physics_nodes/CCPhysicsSprite.cpp:23:0:
D:/android/cocos2d-x/Cocos2d_x_Android/proj.android/…/…/extensions/physics_nodes/CCPhysicsSprite.h:33:2: error: #error “You must define either CC_ENABLE_CHIPMUNK_INTEGRATION or CC_ENABLE_BOX2D_INTEGRATION to use CCPhysicsSprite.h”
/cygdrive/D/android/android-ndk-r8e/build/core/build-binary.mk:272: recipe for target `obj/local/armeabi/objs/cocos_extension_static/physics_nodes/CCPhysicsSprite.o’ failed
make: * [obj/local/armeabi/objs/cocos_extension_static/physics_nodes/CCPhysicsSprite.o] Error 1
make: Leaving directory `/cygdrive/D/android/cocos2d-x/Cocos2d_x_Android/proj.android’
#if CC_ENABLE_CHIPMUNK_INTEGRATION #include “chipmunk.h” #elif CC_ENABLE_BOX2D_INTEGRATION
class b2Body; #else // CC_ENABLE_BOX2D_INTEGRATION #error “You must define either CC_ENABLE_CHIPMUNK_INTEGRATION or CC_ENABLE_BOX2D_INTEGRATION to use CCPhysicsSprite.h” #endif
Hey guys:
i have solve this problem!
and it`s very simple
step:
open proj.android\jni\Application.mk
add -D CC_ENABLE_BOX2D_INTEGRATION or CC_ENABLE_CHIPMUNK_INTEGRATION
Hey guys:
i have solve this problem!
and it`s very simple
step:
open proj.android\jni\Application.mk
add -D CC_ENABLE_BOX2D_INTEGRATION or CC_ENABLE_CHIPMUNK_INTEGRATION
Hey guys:
i have solve this problem!
and it`s very simple
step:
open proj.androidjniApplication.mk
add ~~D CC_ENABLE_BOX2D_INTEGRATION or CC_ENABLE_CHIPMUNK_INTEGRATION
>
like this:
>
i have sole the problem like this:
APP_STL := gnustl_static
APP_CPPFLAGS :=~~frtti DCOCOS2D_DEBUG=1DCC_ENABLE_CHIPMUNK_INTEGRATION=1