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)
相关推荐
马小学编程39 分钟前
Python元组
开发语言·笔记·python·学习·职场发展
flying robot1 小时前
小结:PIM-SM/DM
笔记
Allen_LVyingbo1 小时前
数智读书笔记系列020《快速掌握PostgreSQL版本新特性》简介和读书笔记
数据库·人工智能·笔记·postgresql·健康医疗
平乐君3 小时前
Leetcode 刷题笔记1 图论part01
笔记·leetcode·图论
Allen_LVyingbo3 小时前
英伟达GTC 2025大会产品全景剖析与未来路线深度洞察分析
人工智能·笔记·学习
codexu_4612291874 小时前
如何在 Github 上获得 1000 star?
笔记·开源·github
OSwich4 小时前
【UE5 PuerTS笔记】PuerTS安装
笔记·ue5
歌维6 小时前
Nvidia 官方CUDA课程学习笔记
笔记·学习
lul~7 小时前
ubuntu20.04系统没有WiFi图标解决方案_安装Intel网卡驱动
笔记·ubuntu·机器人·电脑
weixin_502539858 小时前
rust学习笔记17-异常处理
笔记·学习·rust