提示file not found “extensions/coocs-ext.h”
还记得2年前初次碰到这类问题,慌得要死
现在就是小菜一叠
上网查查,
说缺了配置extensions
解决方案就是jni/android.mk
把需要的库放出来
static library和import都要放出来(删除行前面的 “#”)
# LOCAL_WHOLE_STATIC_LIBRARIES += cocosbuilder_static
# LOCAL_WHOLE_STATIC_LIBRARIES += spine_static
# LOCAL_WHOLE_STATIC_LIBRARIES += cocostudio_static
# LOCAL_WHOLE_STATIC_LIBRARIES += cocos_network_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
include $(BUILD_SHARED_LIBRARY)
$(call import-module,.)
$(call import-module,audio/android)
# $(call import-module,Box2D)
# $(call import-module,editor-support/cocosbuilder)
# $(call import-module,editor-support/spine)
# $(call import-module,editor-support/cocostudio)
# $(call import-module,network)
$(call import-module,extensions)
还少了cocostudio
提示cocos2d:ui:checkBox没有,由于ui:checkBox 是cocostudio的控件,所以要把cocostudio也放出来
undefined reference to ‘vtable for ‘
虚函数少了,{}
都说小(T)菜(M)一(D)叠(难),
vtable解决方案解析:
http://www.cnblogs.com/longdouhzt/archive/2012/08/07/2626245.html 虽然是以上链接是 qt的问题,但是原理同