http://www.codebind.com/cpp-tutorial/install-opencv-ubuntu-cpp/
+
apt-get install libopencv-dev
完美解决。