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
原文链接:https://www.f2er.com/cocos2dx/344754.html