当前位置:网站首页>Cmake 报错 Could not find a package configuration file provided by “OpenCV“
Cmake 报错 Could not find a package configuration file provided by “OpenCV“
2022-08-09 01:00:00 【子燕若水】
嗨,
这是“找不到opencv”的警告,而不是错误。
要修复该警告,您有两种选择:
-DNCNN_BUILD_EXAMPLES=OFF
在调用 cmake 时通过传递来打开示例的构建,例如:
mkdir build && cd build cmake .. -DNCNN_BUILD_EXAMPLES=OFF make -j
- 告诉cmake你的opencv在哪里,以cmake的方式,比如指定
OpenCV_DIR
变量,其值为包含的目录OpenCVConfig.cmake
mkdir build && cd build cmake .. -DOpenCV_DIR=/home/zz/soft/opencv-3.4.11/share/OpenCV
或者您可以通过 安装 opencv sudo apt instal libopencv-dev
,然后不必指定OpenCV_DIR
,因为 cmake 足够聪明,可以找到它。
边栏推荐
猜你喜欢
VS中如何添加依赖的库
makefile file compilation
Transformer前言:self-attention与Multi-Headed Attention的详细理解
C语言-大端存储和小端存储
卷积神经网络EfficentNet v1学习记录--Model Scaling
Early departure, learning source half a year, finally got the ants Offer to share the interview process
【图像增强】基于Step和Polynomial 滤波实现图像增强附matlab代码
Wireshark抓包工具
Unity3D小白学习日记(01):如何把物体移动到鼠标点击处
微信企业号开发之获取公共域名
随机推荐
TCP/IP协议栈
pytorch计算模型的参数量和计算速度
动态style定义背景渐变
jetson nano 开机闪一下然后黑屏
网络安全基础-基本dos命令(一)
js中常用方法总结
"Replay" interview BAMT came back to sort out 398 high-frequency interview questions to help you get a high salary offer
任务六 特征衍生 案例分析
Network In Network学习记录
入门数据库Days5
容器运维平台的故障处理-1
JSON basics, transfer JSON data, and introduce four mainstream frameworks, jackson, gson, fastjson, and json-lib!
笔记&代码 | 统计学——基于R(第四版) 第九章一元线性回归
轻量化网络ChannelNet--channel-wize Conv在channel维度卷积
易周金融分析 | 互联网系小贷平台密集增资;上半年银行理财子公司综合评价指数发布
Sencha Touch延迟加载模块中的小类提高程序进入每个模块时性能
猿辅导联合多方专家共议新课标:语文将更强调“实践性”
经典卷积神经网络ZFNet--解卷积可视化
知识图谱学习笔记——我的第一次知识图谱实践
JD.com was abused on three sides. Regarding redis, high concurrency, and distributed, I am confused.