opencv - How to build a portable program by visual studio -
i using visual studio 2010 under win7-64bit build application opencv. finished development , build release version without error. run program in debug mode. move .exe
file other directory in same computer. run in cmd.exe
, got error warning: error opening file <../../modules/highgui/src/cap_ffmpeg_implhpp:537>
guess there dependence libraries of opencv don't how solve it. final task can use .exe
in computer under win7 directly. how it?
found similar question here. don't have .dll
file built, should solve problem?
building opencv app shared libs (dlls) require dlls available (same folder or in lookup path) exe
when run.
if using static linking don't need of opencv dlls reachable. however, due licensing issues, ffmpeg linked dynamically even when rest of libs linked statically, , thus, need have ffmpeg dll available exe
. called opencv_ffmpeg*.dll
.
note needed if using highgui
related functionality.
Comments
Post a Comment