I have been searching through the wide domain of Internet on how to install open CV and found many blogs with atleast 8-10 steps.If you miss one or if it doesnt work its really frustrating 😛 .
So, after this search found the simplest way
1. sudo apt-get install libopencv-*
if you want python integration also
2. sudo apt-get install python-opencv
3. sudo apt-get install python-numpy
# I have installed opencv in ubuntu 11.10 running on beagleboard-xm so if you find problem post it as comment. I’ll try solving it.