简体   繁体   中英

Compiling OpenCV program and not requiring opencv Installed

I have developed a C++ program that uses OpenCV. However, when I compile it and try running it into another computer it doesn't run unless I install OpenCV in it and set the environment path to it. Is there any way to tackle this and how?

I'm using Visual Studio Ultimate 2013 and the propgram only runs in Windows (since Kinect SDK is also used with it). Thanks!

With dynamic linking , make sure to use Dependency Walker (or a similar to tool) to identify which OpenCV DLLs you need to ship along with your executable (you don't need to install the entire OpenCV package).

That's something you don't have to deal with static linking : Using static libraries instead of dynamic libraries in OpenCV

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM