The basic algorithm of the image Stabilization project has been completed, and the client needs a demo program that can run. At present, the program can run normally on its own computer. Then I tried to copy it to another Win7 system and failed to run.
Find a variety of solutions, Baidu found two ways:
1. Use static link method, this generated EXE large, discard.
2. Copy the corresponding DLL to EXE's execution directory, although the file is many, but easy to operate, choose.
First of all, my environment Windows7 + Visual Studio + opencv2.4.7, a variety of basic configuration omitted.
1. Open the project configuration page->c/c++-> code generation, run library, set to multithreaded debug DLL (/MDD) (here is a bit of doubt, I am the release version of the program selection debug DLL actually did not error)
2.f7 generate EXE, and then copy the corresponding DLL library to the EXE folder below. Send this folder as a whole to party a.
How to generate EXE files that can be run on computers that do not have OPENCV libraries and VS2010 environments installed