c++opencvnsight

Entry Point Not Found - VS2019 OpenCV C++


I'm using C++ through Visual Studio 2019. I was running my compiled *.exe files with no problems until I did a mistake reinstalling CUDA and insight, and then repairing Visual Studio.

Although there is no problem with the build, I'm now constantly getting the following error:

enter image description here

I uninstalled Visual Studio 2019, CUDA, and OpenCV, and reinstalled them again, and I'm keeping getting the same error.


Solution

  • The error message in the picture usually means there is a dll conflict between the import library you linked to and the dll that was found when windows searched for the matching dll. One such place windows searches is all the folders of the PATH environment variable.

    It was mentioned in the comments that you attempted to build opencv using vcpkg but did not end up using it because of a cuda conflict. If any part of the dlls or import libraries for this opencv build are being used by your code or the dlls for opencv are in a folder in the PATH environment variable this could cause the problem you have in this question.

    My advice is to remove any opencv dlls, headers and import libraries from the vcpkg install

    vcpkg remove opencv4 
    

    can solve this. Or if you don't need vcpkg at all you can remove the binary folders for vcpkg from your windows PATH environment variable.