1

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!

2
  • 1
    One option is to create an installer that copies the required dlls along with your application. Commented Dec 16, 2014 at 15:08
  • ^^ or just copy and paste them Commented Dec 16, 2014 at 15:11

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.