资源描述:
《用opencv打开视频时常见错误解决办法》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、fatalerrorC1083:Cannotopenprecompiledheaderfile:'Debug/dian.pch':Nosuchfileordirectory在菜单->工程(project)->设置(settings)->c/c++->在category下选->预编译头文件(precompiledheaders)->选不使用预编译头文件(Notusingprecompiledheaders)m_capture=cvCaptureFromFile("D:\test.avi");cvCaptureFromFile()此函数读取avi视频需要如下解码器
2、:K-Lite_Codec_Pack_810_Mega.exe链接错误:backgroundExtractionTest.obj:errorLNK2001:unresolvedexternalsymbol_cvReleaseCapturebackgroundExtractionTest.obj:errorLNK2001:unresolvedexternalsymbol_cvReleaseMatbackgroundExtractionTest.obj:errorLNK2001:unresolvedexternalsymbol_cvReleaseImagebackg
3、roundExtractionTest.obj:errorLNK2001:unresolvedexternalsymbol_cvDestroyWindow这是因为没有添加依赖的库文件,将以下依赖文件添加到工程:cv.libcxcore.libhighgui.libcvaux.lib添加方法:工程-->设置--->VisualStudio2008运行时提示找不到msvcr90d.dll的解决办法说说微软的bug吧,昨天装VisualStudio2008,注意:我出现这个bug的缘故是因为将VisualStudio2008装在了FAT32分区下,当然装在这里也不是说
4、完全有问题,但是这样装的话,就不能将项目同样放在FAT32otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbee
5、ntheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersand分区下,装好了以后,随便编了个程序,编译连接,一切OK,是在debug模式下的,但是运行的时候,却出现一些问题,截图上来给大家看看编译和连接的时候都是正常的,惟独在运行的时候会出现这种错误,当时
6、都无语了,具体有操作有,将MSVCR90D.dll拷到system32下,结果要出现了另外一个问题,截图上来给大家看看当时都无语了,总之,以后是不要将库拷来拷去,这样解决不了根本问题,具体解决办法还有,将debug模式改为Release,然后在Release模式下可以正常的编译连接和运行.为什么会这样呢,因为release模式下,程序是不会去链接*.dll的库的,所以能正常工作.不过我要说的是,这不是根本原因,根本原因在于微软的bug,下面详细道来:otherstaffoftheCentre.Duringthewar,Zhuwastransferredback
7、toJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,Di
8、rectorofNing