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:
Use OpenCV 2.4.9 instead
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
Split File into Multiple File Using Awk, But in Date Format
How to Mail Script Output in Table Format
Escaping the Exclamation Point in Grep
How Can a Program Detect If It Is Running as a Systemd Daemon
How to Make Linux Power Off When Halt Is Run
Usb Modem Is Echoing Back Wrong Characters
Can Someone Explain the Shell Shock Bash Code
Undefined Reference to 'Pthread_Init' When Using -Lpthread Flag:
Bash -Eq and ==, What's the Diff
Perf Tool Stat Output: Multiplex and Scaling of "Cycles"
How to Set a Non-Standard Baudrate on a Serial Port Device on Linux
Libreoffice Command Line Conversion - No Output File
How to Check If a Process Is Still Running from the Kernel in C
How to Print Formatted HTML in Linux Server
Bash Script - "Tar Czf ..." Command Ignore Parameters
Syntax Error of ";; Unexpected" on Simple Init Script for Debian