http://www.xuephp.com/main/detail.php?cid=40009
这篇文章有说了如何修改Android.mk文件,但是这个不是高版本的quick,好像是2点多版本的,现在mk文件都不太相同,请问下有人接触过用3点多版本的quick集成风云pbc的吗?有试过编译Android版本吗?有的话能否发下需要的mk文件,感谢万分
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := cocos2dlua_shared
LOCAL_MODULE_FILENAME := libcocos2dlua
FILE_LIST := hellolua/main.cpp
FILE_LIST += (wildcard (LOCAL_PATH)/…/…/Classes/.cpp)
FILE_LIST += (wildcard (LOCAL_PATH)/…/…/Classes/ide-support/.cpp)
FILE_LIST += (wildcard (LOCAL_PATH)/…/…/Classes/ide-support/.c)
FILE_LIST += (wildcard (LOCAL_PATH)/…/…/Classes/assets-manager/.cpp)
FILE_LIST += (wildcard (LOCAL_PATH)/…/…/Classes/TDGA/*.cpp)
FILE_LIST += (LOCAL_PATH)/../../../quick_libs/src/extensions/quick_extensions.c
FILE_LIST += (wildcard (LOCAL_PATH)/../../../quick_libs/src/extensions/cjson/*.c)
FILE_LIST += (wildcard (LOCAL_PATH)/../../../quick_libs/src/extensions/filesystem/*.c)
FILE_LIST += (wildcard (LOCAL_PATH)/../../../quick_libs/src/extensions/lpack/*.c)
FILE_LIST += (wildcard (LOCAL_PATH)/../../../quick_libs/src/extensions/zlib/*.c)
FILE_LIST += (wildcard (LOCAL_PATH)/../../../quick_libs/src/extra/filters/filters/*.cpp)
FILE_LIST += (wildcard (LOCAL_PATH)/../../../quick_libs/src/extra/filters/nodes/*.cpp)
FILE_LIST += (wildcard (LOCAL_PATH)/../../../quick_libs/src/extra/filters/shaders/*.cpp)
FILE_LIST += (LOCAL_PATH)/…/…/…/quick_libs/src/extra/luabinding/lua_cocos2dx_extension_filter_auto.cpp
FILE_LIST += $(LOCAL_PATH)/…/…/…/pbc/binding/lua/pbc-lua.c
LOCAL_SRC_FILES := (FILE_LIST:(LOCAL_PATH)/=)
LOCAL_C_INCLUDES :=
(LOCAL_PATH)/../../Classes \
(LOCAL_PATH)/…/…/Classes/TDGA
(LOCAL_PATH)/../../../pbc \
(LOCAL_PATH)/…/…/…/quick_libs/src
(LOCAL_PATH)/../../../quick_libs/src/extra \
(LOCAL_PATH)/…/…/…/TalkingDataGameAnalytics/include
LOCAL_STATIC_LIBRARIES := cocos2d_lua_static
LOCAL_STATIC_LIBRARIES += cocos2d_simulator_static
LOCAL_STATIC_LIBRARIES += pbc
LOCAL_STATIC_LIBRARIES += cocos2dx-talkingdata
include (BUILD_SHARED_LIBRARY)
(call import-module,pbc)
(call import-module,scripting/lua-bindings/proj.android/prebuilt-mk)
(call import-module,tools/simulator/libsimulator/proj.android/prebuilt-mk)
$(call import-module,TalkingDataGameAnalytics/android)
===================
上面是我用的,不过我用的不是quick,我是原版cocos2d-lua,quick的一些东西,我是自己集成的。
上面文件你看一下pbc相关的东西在你自己的mk里加一下就好了,相对路径搞不清楚可以用绝对路径的。
你好,你的pbc文件夹是放在哪个目录下面的
编译通过了,但是运行的时候还是提示找不到 protobuf.c文件,好像没有编译到