Android studio 无法安装sdk 多个地点ping[dl.google.com]服务器-网站测速-站长工具 (chinaz.com)在这个网站上找到一个能用的iphosts文件地址:C:\WINDOWS\System32\drivers\etc\hosts在里面添加220.181.174.97 dl.google.comAndroid studio 里面不要使用代理了,直接可以安装sdk。使用右上角的小图标 sdk manager...
windows 安装免费版VMware workstation 1.官网下载免费版本 VMware workstation 16 player,并安装。这个是非商业版本,可以免费使用2.在官网下载Ubuntu 20 并安装在虚拟机内部3.U盘不能正常使用问题解决。点击player-》管理-》虚拟机设置-》usb控制器-》兼容usb3.1...
pycharm conda TensorFlow环境配置 pycharm 配置tensorflow环境,pycharm file->setting->python interpreter-> add->conda environment->existing environment->.....
error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] fprintf(file,str.c_ctr());编译报错error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]一拍脑袋fprintf(file,str.c_ctr(),0); 编译通过,原理不知道
安卓使用ndk native编程使用 openmp 代码#include "omp.h"#pragma omp parallel for环境配置cppFlags "-fopenmp "target_link_libraries( # Specifies the target library. native-lib # Links the target library to the log library .
Failed to connect to 127.0.0.1 port 37091: Connection refused 解决方案:export http_proxy=""export https_proxy=""export HTTP_PROXY=""export HTTPS_PROXY=""1.无效方案:取消代理:git config --global --unset http.proxy2.无效方案 $ unset http_proxy $ unset h...
联合开发遇到的问题 1. 多人使用同名的宏, 但是给不同的值. 会出现预料之外的结果,可能你此时使用的是别人的宏.2.头文件和库不匹配. 跟踪log发现准备传入库的函数的值,和库中打印的值是不一样的.必须让每个人的头文件和库都是最新的....
git 简单用法 ubuntu 比较工具设置1.安装meld或者beyondcompare 的等比较工具2.设置比较工具git config --global diff.tool meld3.使用工具比较文件git difftool xx/yy/zz.cpp
c++ 优化效率 1。 int max(int a,int b) vs int max(const int &a,const int &b) 后者的效率要高,因为不需要拷贝一次a,b2。 全局变量int a【100】vs static int a【100】, 后者效率要高. 我在arm上对数组的访问进行测试,用于存储一些乘法结果。如果不加static 反而效率不如直接使用乘法。猜测:此...
mat.inl.hpp:410: error: (-215) total() == 0 || data != NULL in function Mat #include "opencv.hpp"cv::Mat maskLiveMat(1404,1872,CV_8U);// 在include后面这种写法正确cv::Mat maskLiveMat(1404,1872,CV_8U,0);//在include后面这种写法错误
opencv 中 IplImage和Mat相互转换 Mat 转 IplImage *IplImage imgTmp= (IplImage)(frame); IplImage *img= &imgTmp;//&:原来直接使用 &(IplImage)frame操作取了临时变量的地址。返回后临时变量已经“消失”了,你不能再使用了。所以报错。反过来,有专门的函数自动转cvarrToMat...
illegal instruction arm pc运行没问题,但是arm上illegal instruction错误.定位到错误出现在下面代码(里面变量均为int) y=y+dif*0.5+boaderWidth; 改为两行,或者移位实现除以2不会报错.具体原因未知.是不能智能的转换数据类型造成的 int dif_half=dif*0.5; y=y+dif_half+b...
联想拯救者Ubontu系统WiFi不能用 入手拯救者笔记本一年有余,一直想在上面安装Ubontu系统,然后学习下。但是无线网一直不能用,有限网OK。受限于水平,在网上找了一些解决方案都不行。于是买了个不到30块的无线网卡,什么都做就解决了。特写此贴,和大家分享,如果是初学者不要和我一样瞎折腾,浪费几天的时间。