Fedora 37 server 编译安装opencv 4.8.0 —— 筑梦之路

Fedora 37 编译安装opencv 4.7.0 —— 筑梦之路_筑梦之路的博客-CSDN博客

参考之前的博文,这里主要记录下比较容易出问题的地方。

#  下载离线包

wget https://raw.githubusercontent.com/opencv/opencv_3rdparty/1224f78da6684df04397ac0f40c961ed37f79ccb/ippicv/ippicv_2021.8_lnx_intel64_20230330_general.tgz

#  修改源码

cd  opencv/3rdparty/ippicv  

# 主要修改文件位置

vim ippicv.cmake
...
set(THE_ROOT "${OpenCV_BINARY_DIR}/3rdparty/ippicv")
  ocv_download(FILENAME ${OPENCV_ICV_NAME}
               HASH ${OPENCV_ICV_HASH}
               URL
                 "${OPENCV_IPPICV_URL}"
                 "$ENV{OPENCV_IPPICV_URL}"
                 #"https://raw.githubusercontent.com/opencv/opencv_3rdparty/${IPPICV_COMMIT}/ippicv/"
                 "file:///root/"
               DESTINATION_DIR "${THE_ROOT}"
               ID IPPICV
               STATUS res
               UNPACK RELATIVE_URL)
...

此处有两种写法:

第一种:直接就是文件所在绝对路径  "/root/"

第二种:表示本地路径 "file:///root/"

Fedora 37 server 编译安装opencv 4.8.0 —— 筑梦之路_第1张图片

 

你可能感兴趣的:(linux系统运维,机器学习,python学习,opencv,webpack,人工智能)