Ask Your Question
0

App exportation

asked 2013-07-12 04:16:24 -0600

Lucas gravatar image

Hi,

Just a silly question. If I compile an app using OpenCV so as to run it on another computer, do I need to install OpenCV on the target computer, or add some .dll ?

Thanks for your answer

Lucas

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-07-12 04:49:51 -0600

berak gravatar image

there are 2 cases:

  • dynamic linking:

that's the default. if you're using the prebuild libs

your program gets linked against dynamic libs(dll's/so's). you'll need them on the target machine as well ( in the same folder, or by adjusting the PATH var so that it points to their location )

  • static linking

you can rebuild the opencv libs with BUILD_SHARED_LIBS=OFF ( cmake/cmake-gui ).

when you link your program against those libs, you'll get a huge all-in-one binary without further (opencv) dependancies.

tools like http://www.dependencywalker.com are quite helpful for checking

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-12 04:16:24 -0600

Seen: 151 times

Last updated: Jul 12 '13