Home > Software engineering >  [for] VS2015 Opencv2.4.9 program packaging issues
[for] VS2015 Opencv2.4.9 program packaging issues

Time:09-27

Himself by VS2015 + Opencv2.4.9 wrote a program, the program needs to pack today, I want to achieve is to put the program I wrote in other not to install Visual studio Windows PCS, can directly through the EXE file to run my program,
Check it on the website, through the method of dynamic link library, I check the exe file by using the method of the depends and dumpbin call DLL file, and put these files in the same directory as the exe file, the whole project in the end I copy to run on another computer, but prompt "application cannot start 0 xc000007b normally,"
Check a lot of information for many days, have failed to solve, very upset, hope to help!!!!!

CodePudding user response:


Pictured above,

CodePudding user response:

Not depend to see all of the DLL should be copied to the target machine, you on the target machine on-line test an exe, and then use depend to view which DLL is red or yellow, can put these tests in the past, until all the red and yellow DLL solved should be ok,
Some system DLL directly copy may lead to call out the problem in the past,

CodePudding user response:

Install VS2015 reusable package
The opencv *. Exe and DLL in the same folder,

CodePudding user response:

refer to the second floor robertbo response:
is not depend to see all of the DLL should be copied to the target machine, you on the target machine on-line test an exe, and then use depend to view which DLL is red or yellow, can put these tests in the past, until all the red and yellow DLL solved should be ok,
Some system DLL directly copy may lead to call out the problem in the past,

I tried not to put so opencv related DLL then directly open exe, prompt lack DLL files, after filling the missing DLL file is displayed to start,

CodePudding user response:

Through the experiment many times and found the following questions (experimental environment is win10/64 mirror system, only installed vc_redist)
The problems found: (mentioned below MT/MTd/MD/MDd refers to the project properties - & gt; Code generation - & gt; The runtime options)

1. Pure c + + program, through the compiled EXE MT/MTd two methods and run successfully, don't need to supplement the DLL;

2. Use the MD/MDd compiled exe suggest lack of DLL, put the required DLLS in the exe with directory to run to be normal boot, at this time again to this project use the MT/MTd to regenerate the exe, run the exe still suggest lack of DLL, also after swallow the DLL cannot normal boot,

3. The Opencv projects, with MTd/MDd directly compiled exe (don't know why can only be compiled using the two methods, the other two will compile error), using MTd suggest lack of 2 DLL, tip can't normal boot after completion; Using MDd prompt lack after four DLL, also cannot be normal boot prompt after completion,

The current personal summary: in addition to a DLL just need can normal boot program!
To solve the,

CodePudding user response:

The
quoted zhao teacher reply: 3/f
installation VS2015 to release package
The opencv *. Exe and DLL in the same folder,

Thank you very much for your answer, but after tried your method still cannot solve the problem, if you can, could you see your this post under the fifth floor of my further instructions, thank you very much,

CodePudding user response:

C the Run - Time Libraries https://msdn.microsoft.com/en-us/library/abx4dbyh.aspx
  • Related