1、安裝cmake:sudo apt-get install cmake 2、下載opencv-2.4.10.zip,解壓 3、編譯opencv cd /home/opencv-2.4.10 mkdir build cd build/ cmake -D CMAKE_BUILD_TYPE=RELEAS ...
1、安裝cmake:sudo apt-get install cmake
2、下載opencv-2.4.10.zip,解壓
3、編譯opencv
cd /home/opencv-2.4.10
mkdir build
cd build/
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
4、結束後輸入sudo make
5、然後在輸入sudo make install
6、這樣就編譯完成了,你可以在usr/local/lib下看到編譯好的opencv函數庫