一開始會出現這個錯誤:
1 CMake Error at CMakeLists.txt:11 (message): 2 3 4 FATAL: In-source builds are not allowed. 5 6 You should create separate directory for build files. 7 8 9 10 -- Configuring incomplete, errors occurred!
原因是:則應該是在代碼根目錄下直接執行過 cmake,導致根目錄下生成了 CMakeCache.txt,需要刪除 CMakeCache.txt再次執行編譯即可。
cmake 的時候會下載 IPPICV: Download: ippicv_2017u2_lnx_intel64_20170418.tgz ,速度有點慢。。。。
官方安裝網址:https://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html#linux-installation
已成功安裝。。。。。好海森。。。。