Ask Your Question

Ubuntu 14.04 apt-get installation missing headers

asked 2015-05-07 10:38:44 -0600

moerneldiver gravatar image

Hi everyone,

I installed opencv via apt-get on my Ubuntu 14.04 system. I am new to OpenCV so I tried to work with the tutorials provided on the Tutorial website.

Now I have the problem that some of them include header files such as videoio.hpp in the Video Tutorial or the features2d.hpp in the Feature detection Tutorial and some others too.

Does anybody know why my system does not have this files? Did I forgot to install a package via apt-get or did something change from the version of my installation?

apt-get installed opencv in version 2.4.8+dfsg1-2ubuntu1

Thank you for your answers


My installed packages :

libopencv-calib3d-dev:amd64         install
libopencv-calib3d2.4:amd64          install
libopencv-contrib-dev:amd64         install
libopencv-contrib2.4:amd64          install
libopencv-core-dev:amd64            install
libopencv-core2.4:amd64             install
libopencv-dev                   install
libopencv-features2d-dev:amd64          install
libopencv-features2d2.4:amd64           install
libopencv-flann-dev:amd64           install
libopencv-flann2.4:amd64            install
libopencv-gpu-dev:amd64             install
libopencv-gpu2.4:amd64              install
libopencv-highgui-dev:amd64         install
libopencv-highgui2.4:amd64          install
libopencv-imgproc-dev:amd64         install
libopencv-imgproc2.4:amd64          install
libopencv-legacy-dev:amd64          install
libopencv-legacy2.4:amd64           install
libopencv-ml-dev:amd64              install
libopencv-ml2.4:amd64               install
libopencv-objdetect-dev:amd64           install
libopencv-objdetect2.4:amd64            install
libopencv-ocl-dev:amd64             install
libopencv-ocl2.4:amd64              install
libopencv-photo-dev:amd64           install
libopencv-photo2.4:amd64            install
libopencv-stitching-dev:amd64           install
libopencv-stitching2.4:amd64            install
libopencv-superres-dev:amd64            install
libopencv-superres2.4:amd64         install
libopencv-ts-dev:amd64              install
libopencv-ts2.4:amd64               install
libopencv-video-dev:amd64           install
libopencv-video2.4:amd64            install
libopencv-videostab-dev:amd64           install
libopencv-videostab2.4:amd64            install
libopencv2.4-java               install
libopencv2.4-jni                install
opencv-data                 install
opencv-doc                  install
python-opencv                   install
ros-indigo-vision-opencv            install
edit retag flag offensive close merge delete


I always install OpenCv in Ubuntu by make it by hand and install it. As I see, you install opencv by get the binary and library of opencv's files, may be it lacks sample projects for Feature Detection tutorial. I think it is better when you building it by hand.

nvlinh gravatar imagenvlinh ( 2015-05-07 11:33:03 -0600 )edit

videoio is a opencv3.0 module. 2.4 does not have it.

berak gravatar imageberak ( 2015-05-17 03:24:52 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-05-17 03:15:18 -0600

harsha gravatar image

Feature detection tutorial depends on the nonfree module, which is not included in 14.04 apt-get repos. It can be installed following instructions in this answer.

sudo add-apt-repository --yes ppa:xqms/opencv-nonfree
sudo apt-get update 
sudo apt-get install libopencv-nonfree-dev
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-05-07 10:38:44 -0600

Seen: 3,755 times

Last updated: May 17 '15