自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 资源 (9)
  • 收藏
  • 关注

原创 ld: error: undefined symbol: did you mean: extern “C“

碰到个问题,先看报错:FAILURE: Build completed with 2 failures.1: Task failed with an exception.-----------* What went wrong:Execution failed for task ':shotsync:externalNativeBuildDebug'.> Build command failed. Error while executing process D:\Android\.

2022-05-21 15:02:15 3804 1

原创 OpenCV Android以及扩展模块opencv_contrib的编译

opencv_contrib扩展模块Android版SDK下载

2022-01-07 13:48:11 4437

原创 ffmpeg 命令集

将单张图片直接转换输出到H264码流:ffmpeg.exe -framerate 30 -i E:\Users\Pictures\video_loading_1080.png -c:v libx264 -crf 23 -pix_fmt yuv420p 1080-2.h264

2021-10-15 22:54:37 635

原创 Android Studio NDK编译报错requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC

报错信息:[78/82] Building CXX object lidarapp/LASlib_output_dir/CMakeFiles/LASlib.dir/E_/work/projects/LivoxLiDAR/lastools/src/main/cpp/LASzip/src/lasquadtree.cpp.o[79/82] Building CXX object lidarapp/LASlib_output_dir/CMakeFiles/LASlib.dir/E_/work/project

2021-08-02 20:44:00 1285 1

原创 合并两个git代码库,如何将一个代码库合并到另一个代码库的子目录下

这篇文章的指令主要是用来合并两个代码库的,更具体的,是把一个代码库整历史的全部搬至另一个代码库中,作为一个子目录存在,并且不丢失原来的提交历史。简单总结一下,其实就是在要插入代码的库中新加一个远程服务器,然后拉入待合并的代码,再把待合入的代码checkout到一个本地分支上,然后用git mv命令搬运要合入的代码到指定的位置或目录,完了提交。那么到此为止,待插入代码的库中其实有了至少两个分支,一个分支上就是另一个代码库的完整代码,这时只要把要合入的代码库的分支合并到待插入代码的库的分支上就可以了。之后再清理

2021-07-14 14:19:55 1346

原创 JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0x91

封了个JNI接口,就是简单的返回一个字符串,结果一调就崩溃,血淋淋的现场,莫名其妙啊!JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0x91先看错误:看了很多文章都不明就里,打印的时候明明是对的,为什么一调就崩溃了呢?这是什么原因,谁能给我个解释?他so里的代码是这样的:想了想,改了一下代码,这样竟然可以啊:那么问题到底在哪里呢?

2021-04-26 11:28:55 1239

原创 UEventObserver在安卓应用开发中的使用

1、AOSP源码树下system/extras/tests/uevents/编译uevents可执行程序,放到板子上跑,可以打印uevent消息,对调试开发有用。2、AOSP源码树下编译出来的out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar作为依赖库添加到Android Studio项目中的build.gradle,使用compileOnly选项,如:ic6hisiCompileOnly files('

2020-07-24 15:27:02 342

原创 Program type already present: android.support.v4.app.INotificationSideChannel 错误

Android Studio编译时碰到个错误,感觉莫名其妙啊,看了好几个帖子,估计是AndroidX库和appcompat库冲突的原因,想了一下,好像有个库没有用到AndroidX库但实际也添加了依赖,去掉,重新发布,再编译,好了。附其他帖子的说辞,供参考:https://www.jianshu.com/p/0cfd76a74c60https://github.com/material...

2020-04-14 18:04:30 1248

原创 手工签名APK文件

1、对齐:D:\Android\AndroidSdk\build-tools\23.0.2\zipalign.exe -v 4 LiveVideo-ic2-V1.1.56-2020-04-11-114724-release\dist\LiveVideo-ic2-V1.1.56-2020-04-11-114724-release.apk LiveVideo-ic2-V1.1.56-2020-0...

2020-04-11 14:25:04 165

原创 GMS SetupWizard重复启用

接到个奇葩需求,要求每次启动设备时都要启动Google的SetupWizard,设备Android版本8.1,改动如下: 先把两个标志位置位0 adb shell settings put global device_provisioned 0 adb shell settings put secure user_setup_complete 0 将启动的activ...

2020-04-08 17:38:21 547

原创 Failed to resolve: support-annotations

出现问题后,将被依赖模块的compileSdkVersion和targetSdkVersion 改为跟依赖模块一致,同时修改appcompat对应的版本号,就可以了。compileSdkVersion 27defaultConfig { minSdkVersion 19 targetSdkVersion 27 versionCode 1 versionN...

2019-12-17 09:16:10 202

原创 一行搞定logcat 只打印符合某些包名的log

adb shell logcat | grep -E `adb shell ps | grep -E "btcontrol|stmonitor" | awk '{print $2}' | sed 'N;s/\n/|/g'`只打印某两个进程的log:adb shell logcat | grep -E "PID1|PID2"列出符合某些报名的进程:adb shell ps ...

2019-03-21 14:53:21 3807 1

原创 Error: Google Play requires that apps target API level 26 or higher. 两种解决办法

这个问题是Android Studio和SDK升级后出现的,在编译Release版本的时候报错。两种解决办法:1)在targetSdkVersion 上面一行加注释://noinspection ExpiredTargetSdkVersion2) 在android {} 块中加入:lintOptions { abortOnError false}...

2019-02-22 15:29:58 32799 18

原创 使用iperf测试网卡吞吐性能

首先配置待测试的两个网卡的网络地址到同一网段,保证ping对方的IP地址时可以通。两个网卡用网线连接到同一个交换机上,或者直连,交换机交换最大速率不能低于待测试网卡的标称速率。 在两台机器上分别运行命令,哪台做服务端,哪台做客户端都可以: 服务端命令: iperf -s -P 0 -i 1 -p 5001 -w 2M -f k 客户端命令: iperf -c 192.1...

2018-12-17 12:38:41 9048

原创 git使用代理

git config --global http.proxy 127.0.0.1:8087git config --global http.sslVerify false SSL certificate problem: Unable to get local issuer certificate ProblemThe following is seen on the c...

2018-09-18 16:02:37 417

原创 正则表达式: 找出不含(排除)某个字符串的所有

Match string not containing stringGiven a list of strings (words or other characters), only return the strings that do not match.以正则表达式 ^((?!badword).)*$ 搜索以下内容将会得到除1、4行以外的所有内容。此表达式对于log搜索比较有用。badword...

2018-06-14 13:59:46 45593 1

jperf 2.0.2 1.3.1

jperf 2.0.2 1.3.1

2018-12-12

jperf 1.3.1

jperf 1.3.1 官网下载版本

2018-12-12

RxJava for Android development pdf

K. Matt Dupree A Quick Look for Developers RxJava for Android App Development

2018-11-22

Retrofit: Love Working with APIs on Android PDF

Retrofit: Love Working with APIs on Android You need to take delight building API clients on Android. Marcus Pöhls

2018-11-22

sony_imx385_16av200

嵌入式平台的sony imx385sensor驱动代码,已经在海思实验过,适配于主从模式,双目。

2018-07-12

Gradle Recipes for Android

Gradle Recipes for Android

2016-08-01

Building and Testing with Gradle

Building and Testing with Gradle

2016-08-01

OpenGL ES 2 for Android A Quick-Start Guide

OpenGL ES 2 for Android A Quick-Start Guide

2014-08-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除