【opencv C++】成功解决:errorE: unable to locate libjasper-dev

在ubuntu18.04系统上安装opencv但是在安装依赖包的过程中,有一个依赖包,libjasper-dev在使用命令

sudo apt-get install libjaster-dev

提示:

errorE: unable to locate libjasper-dev

解决方法:

sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
sudo apt install libjasper1 libjasper-dev

即可解决

你可能感兴趣的:(Opencv,c++版)