What is libopencv-dev for?

asked 2019-01-22 13:51:58 -0600

run_the_race gravatar image

I tried following the official tutorial on how to build and install openCV, but it fails: https://docs.opencv.org/master/d7/d9f...

Many other tutorials install:

sudo apt-get install libopencv-dev

Is libopencv-dev needed (the official tutorial does not mention it)? Out of desperation I am downloading the 350MB and installing it (my harddrive is only 20GB).

edit retag flag offensive close merge delete

Comments

Are you using unbuntu?

supra56 gravatar imagesupra56 ( 2019-01-22 14:09:12 -0600 )edit

Remove it:

sudo apt-get remove libopencv-dev

Then install a new version:

sudo apt-get install libopencv-dev
supra56 gravatar imagesupra56 ( 2019-01-22 14:12:52 -0600 )edit

If python:

sudo apt-get install libopencv-dev python-opencv
sudo pip3 install opencv-python
supra56 gravatar imagesupra56 ( 2019-01-22 14:18:43 -0600 )edit

Yes I am using Ubuntu 18.04 thanks, and planning to try c++ because apparently it faster. I tried googling what it is for but only found this: https://packages.ubuntu.com/xenial/li... "Development libraries", I'm guessing that's if you want to contribute to the source? So you don't need it if you are just using OpenCV?

run_the_race gravatar imagerun_the_race ( 2019-01-22 23:52:14 -0600 )edit

is seems to be a outdated binary version of the opencv libs, provided from ubuntu

imho, you don't need it , and should not install it, if you want to build recent opencv from src

berak gravatar imageberak ( 2019-01-23 01:26:15 -0600 )edit