
JNI
小涵
博客:https://blog.mylearning.top/
我的QQ:3049720393
欢迎交流!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
The C programming Language Second Edition
The C programming Language Second Edition原创 2015-03-03 11:50:17 · 1394 阅读 · 0 评论 -
JNI error:libEGL: call to OpenGL ES API with no current context (logged once per
错误显示:04-22 13:01:32.935: E/libEGL(17804): call to OpenGL ES API with no current context (logged once per thread)原因:GLSurfaceView中onTouch事件运行于主线程,GLSurfaceView.Renderer 中回调运行于 OPENGL线程。两者不在一个原创 2016-04-22 13:06:42 · 6652 阅读 · 2 评论 -
JNI Error: cc1plus: all warnings being treated as errors
错误类似:error: variable 'idx' set but not used [-Werror=unused-but-set-variable] index_t idx; ^cc1plus: all warnings being treated as errors解决方式:在 Application.mk中加入原创 2016-04-22 10:12:31 · 1434 阅读 · 0 评论 -
Android JNI: Can't include C++ headers like vector or string...
错误如下:fatal error: string: No such file or directory #include ^compilation terminated.修正:第一步:在 $PROJECT_DIR/jni/Application.mk: 加入APP_STL := stlport原创 2016-04-22 09:24:27 · 1918 阅读 · 0 评论 -
Android ndk报错error: format not a string literal and no format arguments [-Werror=format-security]
问题: 在使用ndk-r9版本的ndk-build命令编译jni时,报错error: format not a string literal and no format arguments [-Werror=format-security]原因: Android-ndk-r9与Eclipse的版本不兼容问题。解决方案:原创 2016-04-21 09:12:01 · 3833 阅读 · 0 评论 -
NDK: could not load needed library 'libstlport_shared.so' for 'libxxxxx'
C++ Library SupportOn this pageHelper RuntimesRuntime CharacteristicsImportant ConsiderationsLicensingThe Android platform provides a very minimal C++ runtime support library (li原创 2016-05-02 12:56:40 · 2992 阅读 · 0 评论 -
JNI:基本数据类型转换
#include #include "com_test_Test.h" #include #include #include //获取字符串 JNIEXPORT void JNICALL Java_com_test_Test_sayHello(JNIEnv * env, jobject obj, jstring s) {原创 2016-04-26 19:38:39 · 1427 阅读 · 0 评论 -
Android JNI Develop 1 setup
1 javah -jni xxx.java (with native java interface declare)it will generate one xxx.h file2 implement xxx.cpp according to xxx.h file.3 build原创 2016-02-05 09:15:38 · 470 阅读 · 0 评论 -
Type 'jint' could not be resolved, and JNIEnv, jclass
Recently I've faced with the same problem. In my case the problem was that I converted my Eclipse project to C++ project, but I had used C type. So to solve this problem I simply deleted the line org.转载 2016-02-05 16:11:25 · 1332 阅读 · 0 评论 -
编译openCV--Mac
1、下载源代码。http://download.youkuaiyun.com/detail/ouyangtianhan/85737532、brew install cmake3、各种 sudo chmod 7774、brew link cmake5、cd 到 platform 下到 ios,python build_framework.py iOS。将会在iOS下生成各种架构的framewor原创 2015-04-08 13:34:33 · 1212 阅读 · 0 评论 -
OpenGL: glDrawArrays & glDrawElements
Error 1:当我在程序中调用 glDrawArrays(GL_TRIANGLES,0, 3 * o.numTriangles);我check到 0x0505 即 out of memory 到 OpenGL error。No ideas for now :(PS 1:I found sometimes glDrawElem原创 2016-04-23 12:56:46 · 1548 阅读 · 0 评论