关于安装opencv编译报错:runtime library * hidden by 等若干问题

最近在有使用opencv的需要,于是安装网上方法安装,编译时报错如下:

关于安装opencv编译报错:runtime library * hidden by 等若干问题_第1张图片

错误原因不做解释,网上很多。网上其他解决方法不做评价,说说我的拙见。

将中括号中的文件,上图为 libz.so.1 在 anaconda3/lib 找出来,所有以 libz.so.1 开头的文件都找出来,然后就在 anaconda3/lib 下随便建个文件夹,如 libz_raw ,然后把那几个 libz.so.1 开头的文件放进去,然后去编译,opencv安装完以后再把他们放出来,简单有效。

另外,在cmake后,make到78%左右又出现了一个问题,如下

关于安装opencv编译报错:runtime library * hidden by 等若干问题_第2张图片

错误原因,墙。

解决方法,手动下载下面这个,放到 opencv-3.4.10/.cache/xfeatures2d 目录下,重新cmake,然后make即可。https://objects.githubusercontent.com/github-production-repository-file-5c1aeb/12756992/4520852?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220315%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220315T081916Z&X-Amz-Expires=300&X-Amz-Signature=5d97660f33b3a6a634ea85fc759363d3b0957c63720dc5c5df80c2ee8db55b2b&X-Amz-SignedHeaders=host&actor_id=37174252&key_id=0&repo_id=12756992&response-content-disposition=attachment%3Bfilename%3Dpatch__.zip&response-content-type=application%2Fziphttps://objects.githubusercontent.com/github-production-repository-file-5c1aeb/12756992/4520852?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220315%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220315T081916Z&X-Amz-Expires=300&X-Amz-Signature=5d97660f33b3a6a634ea85fc759363d3b0957c63720dc5c5df80c2ee8db55b2b&X-Amz-SignedHeaders=host&actor_id=37174252&key_id=0&repo_id=12756992&response-content-disposition=attachment%3Bfilename%3Dpatch__.zip&response-content-type=application%2Fzip

你可能感兴趣的:(Python,centOS,opencv,anaconda)