安装opencv报错/usr/bin/ld: warning: libpcre.so.1, needed by /home//anaconda3/lib/libglib-2.0.so.0

1.method one, but still have some errors:

cd /usr/lib/x86_64-linux-gnu
sudo ln -s ~/anaconda3/lib/libzstd.so.1
sudo ldconfig

sudo ln -s ~/anaconda3/lib/libffi.so.7
sudo ldconfig

sudo ln -s ~/anaconda3/lib/libpcre.so.1
sudo ldconfig

2.method two:ok
在.bashrc里面屏蔽anaconda
在cmake编译opencv时候加参数编译-DBUILD_TIFF=ON

你可能感兴趣的:(opencv,人工智能,计算机视觉)