没有这样的.h文件或目录(Android,Cocos2d-x,NDK)

时间:2015-05-24 06:17:11

标签: android c++ facebook android-ndk cocos2d-x

我正在使用开源库来实现cocos2d-x的facebook共享功能。 但是,当我与android集成时,我遇到了一个无法加载.h文件的问题" jni / screw"夹。 截图: enter image description here

enter image description here

文件结构:

enter image description here

这是我的android.mk:

    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

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

    LOCAL_MODULE := cocos2dcpp_shared

    LOCAL_MODULE_FILENAME := libcocos2dcpp

    CPP_FILES := $(shell find $(LOCAL_PATH)/../../Classes -name *.cpp)
    LOCAL_SRC_FILES := hellocpp/main.cpp
    LOCAL_SRC_FILES += $(CPP_FILES:$(LOCAL_PATH)/%=%)


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

    # _COCOS_HEADER_ANDROID_BEGIN
    # _COCOS_HEADER_ANDROID_END


    LOCAL_STATIC_LIBRARIES := cocos2dx_static
    LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx_store_static
    LOCAL_WHOLE_STATIC_LIBRARIES += screw_static
    # _COCOS_LIB_ANDROID_BEGIN
    # _COCOS_LIB_ANDROID_END

    include $(BUILD_SHARED_LIBRARY)

    $(call import-module,.)
    $(call import-module, extensions/cocos2dx-store)

    # _COCOS_LIB_IMPORT_ANDROID_BEGIN
    # _COCOS_LIB_IMPORT_ANDROID_END

如何解决?谢谢!

参考库螺丝: https://github.com/hiepnd/Screw

0 个答案:

没有答案