Error When Installing Opencv on Ubuntu 14.04

Installation of OpenCV in Ubuntu 14.04

I found the solution to my problem. I had to install python-opencv as follows:

sudo apt-get install python-opencv

After that OpenCV works fine.

undefined reference error while installing opencv 2.4.10 in ubuntu 14.04 LTS

Try the following options:

  1. Use OpenCV 2.4.9 instead

  2. Run sudo apt-get install libv4l-dev

Or use the following steps, which I have used successfully to install OpenCV in Ubuntu 14.04, 12.04 and Debian Wheezy

sudo apt-get install build-essential make cmake git libgtk2.0-dev pkg-config python python-dev python-numpy libavcodec-dev libavformat-dev libswscale-dev libjpeg-dev libpng-dev libtiff-dev
cd ~/Downloads
git clone https://github.com/itseez/opencv
mv opencv /opt
cd /opt/opencv
git checkout 2.4.10.1 #or whatever version you want
sudo mkdir build
cd build
sudo cmake -j4 -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
sudo make -j4
sudo make -j4 install
sudo ldconfig

Refer to this http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html



Related Topics



Leave a reply



Submit