Fedora 37 编译安装opencv 4.7.0 —— 筑梦之路
环境说明:
操作系统版本:fedora 37
内核版本:6.1.5
# 拉取源码
git clone https://github.com/opencv/opencv.git
# 切换版本
git checkout 4.7.0
# 安装依赖包
dnf install cmake gcc libpng-devel gtk2-devel jasper-devel openexr-devel libwebp-devel libjpeg-turbo-devel libtiff-devel tbb-devel eigen3-devel boost boost-thread boost-devel libv4l-devel gcc-c++
# 编译
mkdir build && cd build && cmake .. && make
# 安装
make install
#配置环境变量和验证参考
https://blog.csdn.net/qq_34777982/article/details/124025467