OpenCV应用程序无法正常启动(0xc000007b)解决

64位win7+vs2012+OpenCV2.4.10

首先,用管理员模式打开VS2012

环境变量:

D:\opencv\build\x86\vc11\bin

包含目录:

D:\opencv\build\include

库目录:

</pre><pre name="code" class="plain">D:\opencv\build\x86\vc11\lib

链接器->输入:

opencv_core2410d.lib
opencv_imgproc2410d.lib
opencv_highgui2410d.lib
opencv_ml2410d.lib
opencv_video2410d.lib
opencv_features2d2410d.lib
opencv_calib3d2410d.lib
opencv_objdetect2410d.lib
opencv_contrib2410d.lib
opencv_legacy2410d.lib
opencv_flann2410d.lib

测试代码:

#include<opencv2/core/core.hpp>
#include<opencv2/highgui/highgui.hpp>

int main()
{
	cv::Mat image;
	image=cv::imread("../cat.png");
	cv::namedWindow("cat");
	cv::imshow("cat",image);
	cv::waitKey(5000);
	return 0;
}
相关文章
相关标签/搜索
每日一句
    每一个你不满意的现在,都有一个你没有努力的曾经。
公众号推荐
   一个历史类的公众号,欢迎关注
一两拨千金