Asked By: Anonymous
Is it possible to build opencv c++ application (for windows) without environment variable for opencv executables. I want my own executable to run on another machine without opencv installed.
Answered By: Anonymous
As far as I’m concerned you have two options:
1, It is possible using static linking, but usually OpenCV doesn’t distribute the compiled static libraries. You will have to compile your own .lib and link against those to create a standalone executable.
2, You could use Dependency Walker tool to find dlls your program depends on. Then find the dlls on your system, and copy them to your program distribution (to folder that contains executable file).