I am testing box2d on linux, everything seems working perfectly,but when I move code to android,with this Android.mk:
everything else works, but when I try to use b2CircleShape; this error showed to me:
error: undefined reference to 'vtable for b2CircleShape',by the way I've tried the v2.3.0 and the version from svn,both give me same result,
but the code works great on linux platform, even if I try to declare a circle like this on android :
b2CircleShape cshape; //undefined reference 'vtable for b2CircleShape'
so what could cause the undefined vtable? everything works on linux,so I am guessing it's not because of missing implementation.
Code: Select all
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := box2d
LOCAL_C_INCLUDES := $(LOCAL_PATH)/Box2D \
$(LOCAL_PATH)/Box2D/Collision $(LOCAL_PATH)/Box2D/Collision/Shapes \
$(LOCAL_PATH)/Box2D/Common \
$(LOCAL_PATH)/Box2D/Dynamics $(LOCAL_PATH)/Box2D/Dynamics/Contacts $(LOCAL_PATH)/Box2D/Dynamics/Joints \
$(LOCAL_PATH)/Box2D/Rope
LOCAL_SRC_FILES := \
$(subst $(LOCAL_PATH)/,, \
$(wildcard $(LOCAL_PATH)/Box2D/Collision/*.cpp) \
$(wildcard $(LOCAL_PATH)/Box2D/Collision/Shapes/*.cpp) \
$(wildcard $(LOCAL_PATH)/Box2D/Common/*.cpp) \
$(wildcard $(LOCAL_PATH)/Box2D/Dynamics/*.cpp) \
$(wildcard $(LOCAL_PATH)/Box2D/Dynamics/Contacts/*.cpp) \
$(wildcard $(LOCAL_PATH)/Box2D/Dynamics/Joints/*.cpp) \
$(wildcard $(LOCAL_PATH)/Box2D/Rope/*.cpp))
APP_STL := stlport_static
include $(BUILD_STATIC_LIBRARY)everything else works, but when I try to use b2CircleShape; this error showed to me:
error: undefined reference to 'vtable for b2CircleShape',by the way I've tried the v2.3.0 and the version from svn,both give me same result,
but the code works great on linux platform, even if I try to declare a circle like this on android :
b2CircleShape cshape; //undefined reference 'vtable for b2CircleShape'
so what could cause the undefined vtable? everything works on linux,so I am guessing it's not because of missing implementation.