fatal error C1083: Cannot open precompiled header file: 'Debug/dian.pch': No such
file or directory
在菜单->工程(project)->设置(settings)->c/c++ ->在 category 下选 ->预编译头
文件(precompiled headers)->选不使用预编译头文件(Not using precompiled
headers)
m_capture = cvCaptureFromFile("D:\test.avi");
cvCaptureFromFile()此函数读取 avi 视频需要如下解码器:
K-Lite_Codec_Pack_810_Mega.exe
链接错误:
backgroundExtractionTest.obj : error LNK2001: unresolved external symbol
_cvReleaseCapture
backgroundExtractionTest.obj : error LNK2001: unresolved external symbol
_cvReleaseMat
backgroundExtractionTest.obj : error LNK2001: unresolved external symbol
_cvReleaseImage
backgroundExtractionTest.obj : error LNK2001: unresolved external symbol
_cvDestroyWindow
这是因为没有添加依赖的库文件,将以下依赖文件添加到工程:
cv.lib cxcore.lib highgui.lib cvaux.lib
添加方法:工程-->设置--->
Visual Studio 2008 运行时提示找不到 msvcr90d.dll 的解决办法
说说微软的 bug 吧,昨天装 Visual Studio 2008,注意:我出现这个 bug 的
缘故是因为将 Visual Studio 2008 装在了 FAT32 分区下,当然装在这里
也不是说完全有问题,但是这样装的话,就不能将项目同样放在 FAT32