I think I've installed OpenCV correctly and made a program correctly. However, I keep getting an error which I don't comprehend. What could I do to fix it?

asked 2016-03-05 21:33:25 -0500

krisht gravatar image
 dyld: Library not loaded: lib/libopencv_videostab.3.1.dylib
  Referenced from: /Users/Krishna/ComputerVision/BlurImage/./BlurImage
  Reason: image not found

I have a Mac and I am running Yosemite. I'm using Sublime Text to write my programs and I'm using the following to create a tool for running my programs on terminal.

cmake_minimum_required(VERSION 2.8)
project( BlurImage )
find_package( OpenCV )
include_directories( ${OpenCV_INCLUDE_DIRS} )
add_executable( BlurImage BlurImage.cpp )
target_link_libraries( BlurImage ${OpenCV_LIBS} )

What could be wrong? How can I solve it?

edit retag flag offensive close merge delete