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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With