这里的联调是指在cocos2d-3.2上创建的项目可以通过usb链接到真实机器后,通过visual GDB来进行断点调试。
总体工程百度之 比较顺利。这里记录几个我的问题。
android目录下的Application:
APP_STL := gnustl_static APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCOCOS2D_DEBUG=1 -std=c++11 -fsigned-char APP_PLATFORM := android-16 APP_OPTIM := debug APP_ABI := armeabi armeabi-v7a LOCAL_C_FLAGS += -gdwarf-3
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) $(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos/editor-support) LOCAL_MODULE := cocos2dcpp_shared LOCAL_MODULE_FILENAME := libcocos2dcpp LOCAL_SRC_FILES := hellocpp/main.cpp ../../Classes/AppDelegate.cpp ../../Classes/HelloWorldScene.cpp ../../Classes/Jui.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 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)
出现的问题。编译过程中需要gdb带调试信息。如果不设置1.2那么apk是不带调试信息的。
在上文,开启了cocostudio模块的。
现在开发流程是。1. 开发win32版本 2. 配置android版本信息(主要是android.mk) eclipse导出apk 3. vs2012中使用visual gdb调试apk
2014.7.23 cocos2d-x3.2到android的联调,布布扣,bubuko.com
2014.7.23 cocos2d-x3.2到android的联调
原文地址:http://my.oschina.net/wpracker/blog/294319