加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

cocos2dx编程记录(3)

发布时间:2020-12-14 20:09:59 所属栏目:百科 来源:网络整理
导读:9、使用Android ndk-stack tool --可参考 1)、adb logcat -v threadtime 先使用此命令设置logcat,具体含义,待查。 2)、然后把出错信息从ecplise中拷到一个文件如foo.txt,注意: The tool looksfor the initial line containing starts in the logcat outp

9、使用Android ndk-stack tool --可参考

1)、adb logcat -v threadtime 先使用此命令设置logcat,具体含义,待查。

2)、然后把出错信息从ecplise中拷到一个文件如foo.txt,注意:

The tool looksfor the initial line containing starts in the logcat output,i.e. somethingthat looks like:

*** *** *** *** *** *** *** *** *** ****** *** *** *** *** ***

When copy/pastingtraces,don't forget this line from the traces,or ndk-stack won't workcorrectly.

3)、然后把文件放入cygwin64tmp目录下

4)、 cygwin中命令:

ndk-stack-sym cygdrive/e/project/trunk/client/Project/XXKaPai/proj.android/obj/local/armeabi-dump foo.txt

($NDK/ndk-stack -sym $PROJECT_PATH/obj/local/armeabi -dump foo.txt)
 

注:此操作也可以在dos命令下操作

在cygwin下操作,必须要进入/tmp 目录。

window下,直接拖动文件到dos命令行

10、javac命令使用:

例子:

E:projecttrunkclientProjectXXKaPaiproj.android>javac-cp E:projecttrunkclientProjectXXKaP

aiproj.androidsrc;E:softadt-bundle-windowssdkplatformsandroid-8android.jar -encoding utf8 -

d . E:projecttrunkclientProjectXXKaPaiproj.androidsrccomzhiutilStringUtil.java

11、JNI

1、In theory you can have multiple JavaVMs perprocess,but Android only allows one.

12、LOCAL_LDLIBS isalways ignored for static libraries

You're right. LOCAL_STATIC_LIBRARIES is agood way to import the module you need in your project.
BTW,as far as I know,LOCAL_LDLIBS is OK when current .mk is made for sharedlibrary.You'll find that in .mk like this

include$(BUILD_SHARED_LIBRARY)

But not for astatic library as it shown

LOCAL_LDLIBS isalways ignored for static libraries

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读