How to include all dll's in exe?

前端 未结 4 647
不知归路
不知归路 2021-02-14 16:04

I have a Visual Studio 12 project; source code written in C++; it\'s an OpenCV project. I want to give my compiled program to someone else, but, on other PC, I getting an error

4条回答
  •  醉酒成梦
    2021-02-14 16:42

    If you opt for the accepted solution (package the DLLs with the EXE file), and you don't want to go into the trouble of finding which DLLs to use, then you can copy all the OpenCV DLLs. They're not so big (65 MB on OpenCV 2.43). They are located at ...\opencvXXX\build\x64\vc10\bin\

    where XXX is the OpenCV version. You can use x64 or x86 depending on your platform (32 or 64-bit). And the version of vc can be different on your system (vc9, vc10, etc...)

提交回复
热议问题