Add lib files (Visual studio)

  • Configuration Properties -> Linker -> General -> Additional Library Directories
      加入
      $(SolutionDir)External_lib\lib
      $(SolutionDir)為在電腦中資料夾的位置        
    

  • Configuration Properties -> Linker -> Input -> Additional Dependencies

  • 於下圖紅框中加入
      opencv_calib3d249d.lib
      opencv_contrib249d.lib
      opencv_core249d.lib
      opencv_features2d249d.lib
      opencv_flann249d.lib
      opencv_gpu249d.lib
      opencv_highgui249d.lib
      opencv_imgproc249d.lib
      opencv_legacy249d.lib
      opencv_ml249d.lib
      opencv_nonfree249d.lib
      opencv_objdetect249d.lib
      opencv_photo249d.lib
      opencv_stitching249d.lib
      opencv_ts249d.lib
      opencv_video249d.lib
      opencv_videostab249d.lib
    

我們的OpenCV為2.4.9版,數字需為249,若為其他OpenCV版本數字會不一樣

results matching ""

    No results matching ""