View Installing OpenCV on Ubuntu
Despite what you may read elsewhere on the net, I’ve had great success with installing OpenCV using Synaptic or Apt, and I highly recommend investigating that route for any Debian based system.
So, in a nutshell:
apt-get install libcv1 libcvaux1 libcvaux-dev libcv-dev libhighgui1 libhighgui-dev opencv-doc python-opencv
... or less if you choose.
Once you have that installed, the docs and examples should be in:
/usr/share/doc/opencv-doc/
... and you can run “make” in the example directories to build the example programs.
Good luck!