ubuntu1804系统(xavier、NX)编译opencv报E:Unable to locate package libjasper-dev等最新解决方法

opencv依赖包安装

sudo apt install libjasper1 libjasper-dev

报错:

使用《Xavier NX安装opencv3.4.7》里说的解决方法~不行:

ubuntu1804系统(xavier、NX)编译opencv报E:Unable to locate package libjasper-dev等最新解决方法_第1张图片

新的解决方法:

1.sudo gedit /etc/apt/sources.list

2.在sources.list文件最后面 添加:

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe

如下图: ubuntu1804系统(xavier、NX)编译opencv报E:Unable to locate package libjasper-dev等最新解决方法_第2张图片

3.sudo apt-get update

4.sudo apt install libjasper1 libjasper-dev

 其他依赖包:

1. No package ‘gtk+-3.0’ found

sudo apt-get install libgtk-3-dev

2. No package 'gstreamer-base-1.0' found

sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

你可能感兴趣的:(opencv)