I'm making an application in C++ where I need to use OpenCV x86. I use OpenCV 4.1.2, which I compiled and build my self by using CMake and visual studio 2019. During the configure/generation of the OpenCV files, I did not use the extra modules in opencv_contrib
as this resulted in large amounts of errors during the build of OpenCV x86. When I run OpenCV x64 (did not need to build this my self) I do not get any errors, but I do need to make this application is x86.
I have added the include and lib path into the vs 2019 C++ solution, and I have added the OpenCV_world412d.lib file. When I build the application, I do not receive any errors, but when I run the application, I get the following error: The application was unable to start correctly (0xc000007b).
I downloaded dependency walker, and to my surprise, I'm missing hundreds of DLLs according to dependency walker (500 different DLLs).
Of course, it's not feasible to show all the DLLs I'm missing here, but there are two big categories and a few lone DLLs that I'm missing. See the list below.
- API-ms-win -*
- DMENTERPRISEDIAGNOSTICS.DLL
- EFSCORE.DLL
- EMCLIENT.DLL
- EXT-MS-*
- IESHIMS.DLL
- NGCRECOVERY.DLL
- WFDSCONMGR.DLL
- WPAXHOLDER.DLL
To see the full list of DLLs I'm missing, please find them here: GitHub Gist
This is the code that I use to test out OpenCV
#include <string>
#include <vector>
#include <opencv2/opencv.hpp>
using namespace cv;
int main()
{
Mat image = Mat::zeros(300, 600, CV_8UC3);
circle(image, Point(250, 150), 100, Scalar(0, 255, 128), -100);
circle(image, Point(350, 150), 100, Scalar(255, 255, 255), -100);
imshow("Display Window", image);
waitKey(0);
return 0;
}
Not sure if this is relevant to this issue. I'm using a Windows 10 64bit laptop to create the application and run dependency walker.
I hope I have given enough information about this issue, if not please say so.