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)
相关推荐
大数据追光猿5 小时前
【大数据Doris】生产环境,Doris主键模型全表7000万数据更新写入为什么那么慢?
大数据·经验分享·笔记·性能优化·doris
sevenez5 小时前
Vibe Coding 实战笔记:从“修好了C坏了AB”到企业级数据库架构重构
c语言·笔记·数据库架构
智嵌电子5 小时前
【笔记篇】【硬件基础篇】模拟电子技术基础 (童诗白) 第10章 模拟电子电路读图
笔记·单片机·嵌入式硬件
2301_800050996 小时前
mysql
数据库·笔记·mysql
QT 小鲜肉6 小时前
【Linux命令大全】001.文件管理之mmove命令(实操篇)
linux·服务器·前端·chrome·笔记
不会学习?7 小时前
markdown笔记分享
经验分享·笔记
QT 小鲜肉7 小时前
【Linux命令大全】001.文件管理之mdel命令(实操篇)
linux·运维·服务器·chrome·笔记
lkbhua莱克瓦249 小时前
基础-函数
开发语言·数据库·笔记·sql·mysql·函数
yuxb739 小时前
Kubernetes核心组件详解与实践:Service
笔记·kubernetes
wdfk_prog10 小时前
[Linux]学习笔记系列 -- [fs]kernfs
linux·笔记·学习