编程遇到问题与解决(opencv 、sys / videoio.h 、eigen)

本文解决了在OpenCV项目构建过程中遇到的多个常见问题,包括libopencv_nonfree.so.2.4符号添加错误、sys/videoio.h未找到及unsupported/Eigen/MatrixFunctions未发现等问题。提供了详细的步骤说明如何添加缺失的库、调整头文件路径,以及正确配置Eigen库的位置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

OpenCV modules:

To be built:

core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib python stitching superres ts videostab viz world

 

出现错误:

libopencv_nonfree.so.2.4: error adding symbols: DSO missing from command line

解决办法:

将opencv_nonfree加入到opencv项目对应的头文件中

项目——》属性

Screenshot%20from%202018-10-29%2011-27-52.pnguploading.4e448015.gif转存失败重新上传取消

 

选择——》Add——》将缺少的nonfree加入进行,点击应用即可解决这个问题。

 

 

出现问题:

关于sys / videoio.h 

搏斗了很长一段时间,但是,Github上出现了从贡献者这样的言论的问题

同样,“未找到sys / videoio.h”不是错误 - 它只是一个检查结果。所以这根本不是问题。

即sys / videoio.h没有找到的错误可以忽略

 

出现的问题:

unsupported/Eigen/MatrixFunctions not Found

 

解决办法:

I met this problem and I solved it easily!
Just read the error message, it says header file unsupported/Eigen/MatrixFunctions not Found!

so with eigen3 we downloaded, (use apt-get, default location is usr/include/eigen3/) there are two folders in eigen3/, 1. Eigen, 2. unsupported. (my Eigen is 3.2.92).

Solution: copy both of these folders to /usr/include. (I assume you have already put Eigen in /usr/include, that's what tutorial usually says. leaving unsupported in usr/include/eigen3 folder is like hiding it, system can not find it.)

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值