opencv4.8 ubuntu20.04源码编译 安装报错记录

-- IPPICV: Downloading ippicv_2021.8_lnx_intel64_20230330_general.tgz from https://raw.githubusercontent.com/opencv/opencv_3rdparty/1224f78da6684df04397ac0f40c961ed37f79ccb/ippicv/ippicv_2021.8_lnx_intel64_20230330_general.tgz

make -j8 到这咋不动了

代理配置问题

  • 如果你处在需要代理的环境中,CMake 可能无法直接从 GitHub 下载文件。你可以设置代理以允许下载:

    export http_proxy=http://your_proxy_address:port
    export https_proxy=https://your_proxy_address:port

In file included from /usr/local/include/eigen3/Eigen/Core:19, from /home/xwy/src/opencv-4.8.0/modules/core/include/opencv2/core/private.hpp:70, from /home/xwy/src/opencv-4.8.0/modules/core/src/precomp.hpp:59, from /home/xwy/src/opencv-4.8.0/modules/core/src/arithm.cpp:50: /usr/local/include/eigen3/Eigen/src/Core/util/Macros.h:716:2: error: #error Eigen requires at least c++14 support. 716 | #error Eigen requires at least c++14 support. | ^~~~~ In file included from /usr/local/include/eigen3/Eigen/Core:19, from /home/xwy/src/opencv-4.8.0/modules/core/include/opencv2/core/private.hpp:70, from /home/xwy/src/opencv-4.8.0/modules/core/src/precomp.hpp:59, from /home/xwy/src/opencv-4.8.0/modules/core/src/alloc.cpp:43: /usr/local/include/eigen3/Eigen/src/Core/util/Macros.h:716:2: error: #error Eigen requires at least c++14 support. 716 | #error Eigen requires at least c++14 support.

如果您正在使用CMake构建OpenCV或其他依赖Eigen的项目,可以通过在CMakeLists.txt中设置以下选项来强制使用C++14标准:

复制代码
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
相关推荐
XGeFei4 小时前
【AI应用/Agent智能体搭建平台2】Dify——自部署
人工智能·笔记·学习
祈禾4 小时前
Redis三大缓存问题与分布式锁
运维·数据库·redis·笔记·分布式·缓存
IT古董7 小时前
【MES学习笔记系列】MES 厂商与产品对比
笔记·学习
wangyue_msn_868 小时前
Agent知识学习笔记——03 RAG
笔记·学习·ai编程
嘶哈哈哈8 小时前
# 异构十电机机架数学建模:从单电机力矩到受约束控制分配
笔记
呱呱巨基8 小时前
Linux 查找命令
linux·笔记·学习·查找命令
zhangrelay9 小时前
ROS 2 Lyrical 第4章 URDF机器人建模与Gazebo Garden仿真
linux·笔记·学习·ubuntu·机器人·ros2
疯狂打码的少年10 小时前
【数据结构】串的模式匹配:KMP算法(重点)
数据结构·笔记·算法
一米阳光866110 小时前
软考(中级)软件设计师核心笔记(8)数据结构——线性结构、数组、矩阵
数据结构·笔记·职场发展·软考·软件设计师·中级职称
疯狂打码的少年11 小时前
【数据结构】树的基本概念与二叉树定义
java·数据结构·笔记·算法