“The program can't start because opencv_world300.dll is missing from your computer” error in C++

后端 未结 10 1714
情深已故
情深已故 2020-12-30 01:59

I want to compile an opencv Console C++ program in Visual Studio 2013. This is my code:

#include \"stdafx.h\"
#include \"opencv2/highgui/highgui.hpp\"
#inclu         


        
相关标签:
10条回答
  • 2020-12-30 02:46

    Best and simple solution is

    1. Add path_variable of OpenCV/build/x64/bin in environment system variables.

    2. And then restart the visual studio.

    this definitely will solve the problem.

    the problem might be you've updated the path variable after opening the visual studio so it can't update the *.dll files.

    0 讨论(0)
  • 2020-12-30 02:46

    After installing OpenCV version 3.4.1 for use with VS 2017 following these instructions, Visual Studio complained about missing opencv_world341d.dll. Even though I had added C:\opencv\build\x64\vc15\bin to the windows PATH, Visual Studio still couldn't find it as VS was already open when I modified the PATH. Restarting Visual Studio fixed the problem.

    0 讨论(0)
  • 2020-12-30 02:48

    You can check your system variable to confirm the directory in which opencv_world300.dll is located (maybe C:\opencv\build\x64\vc12\bin) is present.

    If it exists but the problem still is not solved, try to put all .dll files in the directory to C:\WINDOWS\system32

    0 讨论(0)
  • 2020-12-30 02:48

    I just had the exact same problem using version 320. In my case my "Comodo Internet Security" was blocking a few things of the application itself and of OpenCV. Make sure to put them all on the "trusted" list by right clicking on them in your firewall.

    0 讨论(0)
提交回复
热议问题