DSchana
DSchana

Reputation: 1038

OpenCV - Debug DLL libraries missing

I am trying to compile a simple openCV program through Visual Studio 2013. Following this tutorial http://docs.opencv.org/2.4/doc/tutorials/introduction/windows_install/windows_install.html, I have setup all the opencv libraries. The program builds no problem, but when I run it in debug mode I get an error that reads:

The program can't start because opencv_highgui310d.dll is missing.

This occurs with videoio, imgproc and core. All of which are found in the added directory in the property sheet.

I have added the directories to the linker from the install folder in my opencv_build dir.

Upvotes: 1

Views: 1582

Answers (1)

aybassiouny
aybassiouny

Reputation: 578

Windows needs to find missing dlls. They are usually placed somewhere in your opencv folder, it should be easy to find them. After that, you can do either:

  • Copy dlls directly to same folder with exe you are running (you will need to keep these in case of deployment as well)
  • In visual studio change environment from: Project -> 'project name' properties -> Configuration properties -> Debugging -> Environment and enter: PATH = $path_to_opencv_dll_folder

Upvotes: 1

Related Questions