1. 程式人生 > >在Mac OSX 10.10 上安裝opencv

在Mac OSX 10.10 上安裝opencv

2. 右擊工程名, 選擇“Properties”,在屬性配置頁中選擇,點選C/C++ Build, 在下拉選項中選擇 Settings. 在右邊的選項卡中選擇 Tool Settings。
3. 在GCC C++ Compiler選項列表中選擇Includes,在Include paths(-l)中新增安裝好的opencv的標頭檔案存放目錄:/usr/local/Cellar/opencv/2.4.9/include
4. 在MacOS X C++Linker選項列表中選擇Library,在Library search path (-L)中新增安裝好的opencv Lib檔案存放目錄:/usr/local/Cellar/opencv/2.4.9/lib
5. 在MacOS X C++Linker選項列表中選擇Library, 在Libraries(-l) 中依次點選“+”號,新增需要使用的Lib檔案(通常情況下,使用前三個):
opencv_core opencv_imgproc opencv_highgui opencv_ml opencv_video opencv_features2d opencv_calib3d opencv_objdetect opencv_contrib opencv_legacy opencv_flann
6. 重新build all工程,大功告成~~*^_^*