2 frosen lu frosen_lu 于 2014.06.13 18:00 提问

cocos2dx 3.1.1 使用build_native.py编译成安卓文件时出错

**平常没有错误

但是我只要在cpp文件中添加了别的库 比如 “extension/cocos-ext.h”这样

在windows下没问题 但是用build_native.py编译就会告诉我 no such file or directory

我该怎么在cocos2dx 3.1.1 中添加别的库并保证能成功编译到安卓上呢

下面是我的mk文件

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := cocos2dcpp_shared
LOCAL_MODULE_FILENAME := libcocos2dcpp
LOCAL_SRC_FILES := hellocpp/main.cpp \
../../Classes/AppDelegate.cpp \
../../Classes/HelloWorldScene.cpp \
../../Classes/llyToast.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
$(LOCAL_PATH)/../../../../
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static

  • # LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
  • # 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)**
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!