How to generate EXE files that can be run on computers that do not have OPENCV libraries and VS2010 environments installed

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.