Ricardo Alves
Ricardo Alves

Reputation: 1131

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!

Upvotes: 1

Views: 489

Answers (1)

karlphillip
karlphillip

Reputation: 93478

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

Upvotes: 1

Related Questions