Install the dependent libraries from here
http://milq.github.io/install-opencv-ubuntu-debian/
Then, refer to this site
http://embedonix.com/articles/image-processing/installing-opencv-3-1-0-on-ubuntu/
If “eigen” library makes a problem, copy the “unsupported” folder to the “user/include”