动态:
mkdir build_shared
cd build_shared
cmake ..
make
sudo make install
静态:
mkdir build_static
cd build_static
cmake .. -OpenCV_SHARED=OFF
make
sudo make install