Opencv installation guide
I was installing opencv on my ubuntu system. I got some problems while installation. Finally i installed openCV on my system. Steps i followed are as below.
To install opencv i installed dependencies that must exist in system. To install dependencies execute below commands.
To install opencv i installed dependencies that must exist in system. To install dependencies execute below commands.
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y pkg-config
sudo apt-get install -y libpng12-0 libpng12-dev libpng++-dev libpng3
sudo apt-get install -y libpnglite-dev
sudo apt-get install -y zlib1g-dbg zlib1g zlib1g-dev
sudo apt-get install -y pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools
sudo apt-get install -y libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs
sudo apt-get install -y ffmpeg libavcodec-dev libavcodec53 libavformat53 libavformat-dev
sudo apt-get install -y libgstreamer0.10-0-dbg libgstreamer0.10-0 libgstreamer0.10-dev
sudo apt-get install -y libxine1-ffmpeg libxine-dev libxine1-bin
sudo apt-get install -y libunicap2 libunicap2-dev
sudo apt-get install -y libdc1394-22-dev libdc1394-22 libdc1394-utils
sudo apt-get install -y swig
sudo apt-get install -y libv4l-0 libv4l-dev
sudo apt-get install -y python-numpy
sudo apt-get install -y libpython2.6 python-dev python2.6-dev
sudo apt-get install -y libgtk2.0-dev pkg-config
After dependency installation download opencv source.
wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.3/OpenCV-2.4.3.tar.bz2/download
tar -xzvf download
rm download
cd OpenCV-2.4.3
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ..
Build will take much time.
After build completed successfully execute below commands.
sudo make install
Comments
Post a Comment