3.4.7版本
1、先上参考:
https://blog.csdn.net/u010003609/article/details/100601388?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param
2、在这个之外我还遇到下面问题:
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_iterator.cpp.o
/usr/include/eigen3/Eigen/src/Geometry/Rotation2D.h:81:3: error: ‘EIGEN_DEVICE_FUNC’ does not name a type; did you mean ‘EIGEN_REVERSE_H’?
EIGEN_DEVICE_FUNC inline Scalar& angle() { return m_angle; }
^~~~~~~~~~~~~~~~~
EIGEN_REVERSE_H
/usr/include/eigen3/Eigen/src/Geometry/Rotation2D.h:84:3: error: ‘EIGEN_DEVICE_FUNC’ does not name a type; did you mean ‘EIGEN_REVERSE_H’?
EIGEN_DEVICE_FUNC inline Scalar smallestPositiveAngle() const {
^~~~~~~~~~~~~~~~~
EIGEN_REVERSE_H
没解决。
3.3.0版本:
1、错误:CUDA_nppi_LIBRARY (ADVANCED)
solution1:
https://blog.csdn.net/u014613745/article/details/78310916
solution 2:文件OpenCVDetectCUDA.cmake
46行 set(_generations "Fermi" "kepler" "Maxwell" "Pascal") 中 "Fermi" 去掉
推荐第二种,第一种是从cmake的-D FORCE_INLINES命令推出来的,后来第二次编译,发现第二种方法更从根本解决问题。