Quick_Cocos2d_x V3.3 Protobuf Android
ios集成protobuf之后,调用pro.android/build_native.sh 生成android工程的时候会出现 jni/../../Classes/AppDelegate.cpp:125: error: undefined reference to 'luaopen_protobuf_c' clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [obj/local/armeabi/libcocos2dlua.so] Error 1 这时要修改 Android.mk文件, define copy-pbc-file-name $(patsubst jni/%,%, $(shell find $(LOCAL_PATH)/../../Classes/pbc $(LOCAL_PATH)/../../Classes/binding/lua -name "*.c")) endef LOCAL_SRC_FILES := hellolua/main.cpp \ ../../Classes/VisibleRect.cpp \ ../../Classes/AppDelegate.cpp \ ../../Classes/ConfigParser.cpp \ $