- 博客(5)
- 收藏
- 关注
原创 ndk开发-gtest编译
用NDK编译gtest库:1. gtest代码pull下来后,创建jni目录,将googleTest下文件放到jni目录下2. 在jni目录下创建Application.mk和Android.mk文件Application.mk##Application.mk############################################################...
2018-12-11 15:48:06 1197
原创 交叉编译valgrind
valgrind编译注意事项:1. --prefix的路径必须和手机上实际运行的目录是一致的,不然运行valgrind会报错:failed to start tool 'memcheck' for platform 'arm-linux': No such file or directory"2. 用ndk-r11c,valgrind版本3.12,编译出来在android6.0上跑,结...
2018-12-11 15:43:44 1108
转载 yuv420转为cv::Mat
函数1:读取avi格式的视频文件,转换成Yuv420格式,并写入文件void WriteYuv() { cv::VideoCapture vc; bool flag = vc.open("S1000008.avi"); if (!flag) { printf("avi file open error \n"); ...
2018-12-11 15:39:14 2210
转载 yuv420p转jpg图片
yuv420p转jpg图片int yuv420p_to_jpeg(const char * filename, const char* pdata,int image_width,int image_height, int quality){ struct jpeg_compress_struct cinfo; struct jpeg_error_mgr jerr...
2018-12-11 15:32:48 1983 1
原创 常见编译问题
1. 链接库时报错,提示recompile with -fPIC的问题/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libz.a(gzlib.o): relocation R_X86_64_32S against `.rodata' can not be used when making a sh...
2018-12-11 15:30:15 859
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人