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)、然后把文件放入cygwin64\tmp目录下
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:\project\trunk\clIEnt\Project\XXKaPai\proj.androID>javac-cp E:\project\trunk\clIEnt\Project\XXKaP
ai\proj.androID\src;E:\soft\adt-bundle-windows\sdk\platforms\androID-8\androID.jar -enCoding utf8 -
d . E:\project\trunk\clIEnt\Project\XXKaPai\proj.androID\src\com\zhi\util\StringUtil.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
总结以上是内存溢出为你收集整理的cocos2dx编程记录(3)全部内容,希望文章能够帮你解决cocos2dx编程记录(3)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)