本文介绍了Ubuntu 17.04中的OpenCV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行Ubuntu 16.10Ubuntu计算机中安装了OpenCV.最近,我更新到最新的Ubuntu 17.04,而OpenCV无法正常工作.

I had OpenCV installed in my Ubuntu machine running Ubuntu 16.10. Recently I updated to the latest Ubuntu 17.04 and OpenCV failed to work.

我遇到以下错误.

ImportError: libjasper.so.1: cannot open shared object file: No such file or directory

我尝试安装libjasper.使用命令sudo apt-get install libjasper-dev

I tried to install libjasper. With the command sudo apt-get install libjasper-dev

但是我收到错误E: Unable to locate package libjasper-dev

我该如何解决?

推荐答案

我在这里找到了答案: https://github.com/opencv/opencv/issues/8622

I found the answer here: https://github.com/opencv/opencv/issues/8622

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

对17.04软件包的引用不再起作用.

References to 17.04 packages no longer work.

这篇关于Ubuntu 17.04中的OpenCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 23:00