Opencv -lippicv
阅读原文时间:2023年07月11日阅读:1

参考博客:https://blog.csdn.net/tmosk/article/details/76578082

参考博客:https://blog.csdn.net/kaka20080622/article/details/51075608

问题:

/usr/bin/ld: cannot find -lippicv
collect2: error: ld returned 1 exit status

解决方案一、

解决方法:找到-lippicv对应的库(libippicv.a),该库位于 安装目录opencv-3.1.0/3rdparty/ippicv/unpack/ippicv_lnx/lib/intel64文件夹下 ,进入该文件夹下执行

sudo cp libippicv.a /usr/local/lib/即可

sudo cp libippicv.a /usr/local/lib/

继续执行make 即可

解决方案二、

找到ippicv

执行:

locate ippicv

输出所有ippicv存在的路径:

/home/wmz/.local/share/Trash/files/ippicv_linux_20151201.tgz
/home/wmz/.local/share/Trash/info/ippicv_linux_20151201.tgz.trashinfo
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/downloader.cmake
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/downloads
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/ippicv_linux_20151201.tgz
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/include
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/lib
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/license
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/readme.htm
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/include/ipp.h
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/include/ippicv_base.h
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/include/ippicv_defs.h
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/include/ippicv_redefs.h
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/include/ippicv_types.h
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/include/ippversion.h
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/lib/ia32
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/lib/intel64
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/lib/ia32/libippicv.a
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/lib/intel64/libippicv.a
/home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/license/ippEULA.txt
/home/wmz/anaconda3/pkgs/opencv-3.1.-np111py35_1/share/OpenCV/3rdparty/lib/libippicv.a
/home/wmz/anaconda3/share/OpenCV/3rdparty/lib/libippicv.a
/mnt/hgfs/vmsharefolders/ippicv_linux_20151201.tgz
/usr/local/share/OpenCV/3rdparty/lib/libippicv.a

找到需要的 libippicv.a建立软链接:

sudo ln -s /home/wmz/Documents/opencv-3.1./3rdparty/ippicv/unpack/ippicv_lnx/lib/intel64/libippicv.a /usr/local/lib/libippicv.a

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章