在 ubuntu 18.04 上安装 opencv 2.4.9 [英] installing opencv 2.4.9 on ubuntu 18.04

查看:119
本文介绍了在 ubuntu 18.04 上安装 opencv 2.4.9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的电脑上安装了 ubuntu 18.04,我设法安装了最新版本的 opencv.尽管如此,我需要在我的电脑上运行旧版本的opencv,即opencv-2.4.9. 所以我卸载了新版本的opencv,以便安装旧版本.我像任何指令一样遵循,到目前为止我可以在互联网上找到这些指令,但不幸的是,它们实际上都是为 ubuntu 14.04 或更早版本准备的,所以它们都不起作用.所以在不深入这些说明的细节的情况下,我想问你,你是否知道在 ubuntu 18.04 (LTS) 上安装 opencv-2.4.9 的任何可能性?

I have ubuntu 18.04 installed on my pc and I managed to install the newest version of opencv. Nevertheless, I need an older version of opencv running on my pc, namely opencv-2.4.9. So I deinstalled the new version of opencv, in order to install the old version. I followed like any instruction, which I could find so far in the internet, but unfortunately all of them were actually prepared for ubuntu 14.04 or earlier, so none of them worked. So without going further into the details of those instructions, I would like to ask you, whether there you know of any possibility to install opencv-2.4.9 on ubuntu 18.04 (LTS)?

最好的问候,独狼

推荐答案

jmarina's 的回答对我解决这个问题有很大帮助.就我而言,我没有使用 opencv/opencv 存储库,而是使用了 https://github.com/skvark/opencv-python.git 如本post(虽然它使用 2.4.13).

jmarina's answer helped me a lot with this issue. In my case, instead of using the opencv/opencv repository, I used branch 2.4 from https://github.com/skvark/opencv-python.git as suggested in this post (it uses 2.4.13 though).

我的步骤如下:

git clone --recursive https://github.com/skvark/opencv-python.git
cd opencv-python/opencv
git checkout 2.4
mkdir -p build & cd build
cmake ../
cmake --build .
make install

这篇关于在 ubuntu 18.04 上安装 opencv 2.4.9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆