I am working on a project creating an application with Computer Vision using C ++, OpenCV and Visual Studio. I am not a specialist in deploying programs to use them on other PCs.
I created a program that I need to distribute for a certain number of people, and I can’t get it to work on all the computers that I would like to. The program was written using Visual Studio 2015, this is an MFC project, and the code is written in C ++, since I use OpenCV.
When it was all over, I tried to run it on another computer, and I realized that it would not open. I looked on the Internet and found out that I needed to link libraries statically, so I did it. In addition, when I was looking for information, I found that Visual Studio 2015 was building its projects, so you can run programs on machines from Win7 to Win10. When I found out about this, I tried to open it on computers running Windows 7, 8, 8.1 and 10. I tested my program on about 20 computers, gave or received.
Results? I could not get it to work in Windows 7, each time I tried to open it, ucrtbase.terminate api-ms-win-crt-runtime-l1-1-0.dll was shown . It also did not open on the same machine with Windows 8 without displaying any error message, but its DID is open on the machines with Win 8.1 and Win 10 itself. The thing is that "the most "; there were some PCs (with Win 8.1 and 10) on which I could not open my program. I found that sometimes it appears in the task manager in less than a second, and then disappears. The most cramped is that he does not tell me what the problem is, there is no error message in it. It just won't open.
I tried using Dependency Walker (both on my PC and on one of which I couldn’t run my program on) to see if there was something, and I got a long list of files that the system could not find, Here is an example: List 1/11 . Something curious is that my program works fine on my computer and on those with whom I could open it, although Dependency Walker (DW) tells me that there might be a problem with it. This indicates that DW is not finding the exact error I have.
Another thing I tried is to compare the things that I installed on my computer and install them on the one on which I want to run my program. I tried to install the .NET Framework 4.6.1 only because VS 2015 says that my project was built using this (and I have it installed on my PC and the other one isn’t. I also tried with the .NET 4.6.1 SDK) . Nothing changed.
c ++ opencv deployment visual-studio-2015 mfc
David bernal
source share