opencv installation in ubuntu 11.10
i am getting the error while using the make command .......
THESE ARE THE STEPS I HAVE FOLLOWED .......
1)installing per-requisites
sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install pkg-config
sudo apt-get install libpng12-0 libpng12-dev libpng++-dev libpng3
sudo apt-get install libpnglite-dev libpngwriter0-dev libpngwriter0c2
sudo apt-get install zlib1g-dbg zlib1g zlib1g-dev
sudo apt-get install libjasper-dev libjasper-runtime libjasper1
sudo apt-get install pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools
sudo apt-get install libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-prog
sudo apt-get install ffmpeg libavcodec-dev libavcodec52 libavformat52 libavformat-dev
sudo apt-get install libgstreamer0.
sudo apt-get install libxine1-ffmpeg libxine-dev libxine1-bin
sudo apt-get install libunicap2 libunicap2-dev
sudo apt-get install libdc1394-22-dev libdc1394-22 libdc1394-utils
sudo apt-get install swig
sudo apt-get install libv4l-0 libv4l-dev
sudo apt-get install python-numpy
sudo apt-get install build-essential libgtk2.0-dev libjpeg62-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy libtbb-dev libeigen2-dev yasm libfaac-dev libopencore-
2)Install the python development headers
sudo apt-get install python-dev
3)Download the source code:
http://
4)Go to the directory where OpenCV is downloaded via the terminal only and then un zip the package:
(note:- It is recommended that you move the downloaded OpenCV package to the home/<user> directory
tar -xvf OpenCV-
cd OpenCV-2.3.1/
5)Now make a new directory called build and go in to it
mkdir build
cd build
6)Run Cmake
cmake -D WITH_TBB=ON -D BUILD_NEW_
7)Now make
make
8) Make it permanent
sudo make install
9)Configuring OpenCV for using shared libraries:
sudo gedit /etc/ld.
Add the following line at the end of the file (it may be an empty file, that is ok) and then save it:
/usr/local/lib
Close the file and run the following command to configure the library:
sudo ldconfig
OR RUN : export LD_LIBRARY_
10)Open your .bashrc file and add the following:
gedit .bashrc
sudo gedit /etc/bash.bashrc
add the following at the end of the file -
PKG_CONFIG_
export PKG_CONFIG_PATH
Save and close the file
11) Reboot the system
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu opencv Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- vivek mittal
- Solved:
- Last query:
- Last reply: