Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing opencv 2.4.9 on ubuntu 18.04

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)?

Best regards, lonewolf

like image 666
lonewolf07 Avatar asked Oct 18 '25 16:10

lonewolf07


1 Answers

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).

My steps were the following:

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
like image 152
sigfriddo Avatar answered Oct 20 '25 09:10

sigfriddo