dll error when calling a method of a .dll that includes Opencv dependency

41 views Asked by At

I have c++ project compiled as dll. I have set all necessay include and library directories, and compiles fine.

Then, this .dll file is called by another project, but crashes because there is not able to find the opencv dependency. The dll project has an #include <opencv2/opencv.hpp>. And it seems that is not able to find the opencv dependencies.

Context:

  • Opencv include folder is at C:\opencv\build\include I had set it to VC++ directories.
  • For VC++ directories -> Library directories, I added C:\opencv\build\x64\vc14\lib
  • In C/C++, I also added the include path to Additional Include Directories
  • In Linker -> General, I added C:\opencv\build\x64\vc14\lib to Additional Library directories.
  • In Linker -> Input, I added C:\opencv\build\x64\vc14\lib\opencv_world330d.lib to Additional dependencies (I am compiling in debug mode).

Any additional required info, please let me know.

0

There are 0 answers