Saturday, 10 August 2013

Debugging cocos2d-x game in android SDK

Debugging cocos2d-x game in android SDK

Please help me how to run the cocos2d-x game in the phone successfully.
Configuration: Win7 64 + latest SDK + ndk r8e + cocos2d-x 2.1.4
When I use Android Native Application to debug cocos2d-x example
SimpleGame, the console shows these message and it stop to run the
application.
warning: Could not load shared library symbols for 93 libraries, e.g.
/system/bin/linker. Use the "info sharedlibrary" command to see the
complete listing. Do you need "set solib-search-path" or "set sysroot"?
warning: Unable to find dynamic linker breakpoint function. GDB will retry
eventurally. Meanwhile, it is likely that GDB is unable to debug shared
library initializers or resolve pending breakpoints after dlopen().
Tool chain editor Android GCC Compiler
Build command ndk-build DEBUG=1
Application.mk
APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
APP_CFLAG := -g -ggdb -O0
APP_ABI := armeabi armeabi-v7a x86
Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := game_shared
LOCAL_MODULE_FILENAME := libgame
LOCAL_SRC_FILES := hellocpp/main.cpp \
../../Classes/AppDelegate.cpp \
../../Classes/HelloWorldScene.cpp \
../../Classes/GameOverScene.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static
include $(BUILD_SHARED_LIBRARY)
$(call import-module,CocosDenshion/android)
$(call import-module,cocos2dx)
Marker
Invalid project path: Include path not found
(\toolchains\arm-linux-androideabi-4.4.3\prebuilt\darwin-x86\lib\gcc\arm-linux-androideabi\4.4.3\include).
SimpleGame pathentry Path Entry Problem
Invalid project path: Include path not found
(\sources\cxx-stl\gnu-libstdc++\4.6\include). SimpleGame pathentry Path
Entry Problem
Invalid project path: Include path not found
(\sources\cxx-stl\gnu-libstdc++\4.6\libs\armeabi-v7a\include). SimpleGame
pathentry Path Entry Problem
Invalid project path: Include path not found
(\platforms\android-8\arch-arm\usr\include). SimpleGame pathentry Path
Entry Problem
Invalid project path: Include path not found
(\sources\cxx-stl\stlport\stlport). SimpleGame pathentry Path Entry
Problem

No comments:

Post a Comment