videoio\src\cap_dshow.cpp:2145:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA'

I met the same issue with opencv3.0.0 to be built with mingw, and I have workaround this, the way I worked around is,

edit file %OPENCV_HOME%\sources\modules\videoio\src\cap_dshow.cpp Add

#define STRSAFE_NO_DEPRECATE
posted @ 2017-10-24 10:35  飞晨信息  阅读(1015)  评论(0)    收藏  举报