以VS2010为例,这种情况出现在编译通过,但运行时提示无法正常启动程序,原因是没有在系统环境变量中包含平台所需的bin目录,例如实在Win32下编译,则需要在系统环境变量的path下添加目录:%opencv%\build\x86\vc10\bin;
tips:为了保证win32和X64都能编译,将%opencv%\build\x86\vc10\bin;%opencv%\build\x64\vc10\bin;都加入环境变量
参考链接:
http://blog.csdn.net/github_35160620/article/details/51869845