Home > other >  Coco2d cited extensions library, old make mistake when packaging apk.. Could you tell me how to modi
Coco2d cited extensions library, old make mistake when packaging apk.. Could you tell me how to modi

Time:09-17


Could you tell me the Android. Mk how change,,,,, please everybody to help, here are my Android. Mk file
LOCAL_PATH:=$(call my - dir)

The include $(CLEAR_VARS)

$(call the import - add - path, $(LOCAL_PATH)/../../cocos2d)
$(call the import - add - path, $(LOCAL_PATH)/../../cocos2d/external)
$(call the import - add - path, $(LOCAL_PATH)/../../cocos2d/cocos)
$(call the import - add - path, $(LOCAL_PATH)/../../cocos2d/cocos/editor - support)

The LOCAL_MODULE: cocos2dcpp_shared=

LOCAL_MODULE_FILENAME:=libcocos2dcpp

LOCAL_SRC_FILES:=hellocpp/main CPP \
./../Classes/AppDelegate. CPP \
./../Classes/Add. CPP \
./../Classes/Enemy. CPP \
./../Classes/GameLayer CPP \
./../Classes/GameScene. CPP \
./../Classes/Hero. CPP \
./../Classes/OperateLayer CPP \
./../Classes/SpriteBase CPP

LOCAL_C_INCLUDES:=$(LOCAL_PATH)/../../Classes

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

The include $(BUILD_SHARED_LIBRARY)

$(call the import - module,.)
$(call the import - module, audio/android)

# $(call the import - module, Box2D)
# $(call the import - module, editor - support/cocosbuilder)
# $(call the import - module, editor - support/spine)
# $(call the import - module, editor - support/cocostudio)
# $(call the import - module, network)
$(call the import - module, extensions)

CodePudding user response:

I remember one version is on the path and the Android vs. paths are different (that is, the Extensions library), you try to remove the Extensions/, look line not line,

CodePudding user response:

 wood, a great god!! Surprise,, I just see your development journey started!!!!!! Thank you for your reply ~ ~ but no, I have tried in the CPP file extensions/take out, still can't

CodePudding user response:

I have seen all wood book.


This verification code

CodePudding user response:

You should put the cocos engine file path contains to mk, not include this file

CodePudding user response:

I remember one version is on the path and the Android vs. paths are different (that is, the Extensions library), you try to remove the Extensions/, look line not line
  • Related