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\includeI had set it toVC++ directories. - For
VC++ directories -> Library directories, I addedC:\opencv\build\x64\vc14\lib - In C/C++, I also added the include path to
Additional Include Directories - In
Linker -> General, I addedC:\opencv\build\x64\vc14\libtoAdditional Library directories. - In
Linker -> Input, I addedC:\opencv\build\x64\vc14\lib\opencv_world330d.libtoAdditional dependencies(I am compiling in debug mode).
Any additional required info, please let me know.