资源描述:
《vs2010上配置opencv-2.4.0(图文并茂)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、1VS2010上配置OpenCV-2.4.01.1安装文件1.2解压OpenCV2.4.01.3解压TBB1.4系统Path里添加(注销当前用户或者重启系统会生效):1.5项目(菜单项)→当前项目属性→VC++目录:需要配置“包含目录”。1.6项目(菜单项)→当前项目属性→VC++目录:需要配置““库目录”两项1.7配置连接器:项目(菜单项)→当前项目属性→连接器→输入→附加依赖项1.8编译地时候CvRound错误处理2Ref3其他1VS2010上配置OpenCV-2.4.01.1安装文件[1]OpenCV2.4.0:下载地址:http://sourc
2、eforge.net/projects/opencvlibrary/files/opencv-win/2.4.0/[2]TBB:下载地址:http://threadingbuildingblocks.org/ver.php?fid=185(IntelThreadingBuildingBlocks(IntelTBB)offersarichandcompleteapproachtoexpressingparallelisminaC++program.)1.2解压OpenCV2.4.0解压OpenCV2.4.0压缩包到C:OpenCV-2.4.0(本例以这
3、个为准,下面的路径都是以这个路径为准,自己可以根据自己喜欢设置)1.3解压TBB解压TBB到C:OpenCV-2.4.0tbb40_20120408oss1.4系统Path里添加(注销当前用户或者重启系统会生效):;C:OpenCV-2.4.0buildx86vc10bin;C:OpenCV-2.4.0buildcommontbbia32vc10otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficei
4、nJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommi
5、tteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersand1.1项目(菜单项)→当前项目属性→VC++目录:需要配置“包含目录”。;C:OpenCV-2.4.0buildincludeopencv;C:OpenCV-2.4.0buildincludeopencv2;C:OpenCV-2.4.0buildincludeotherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,
6、andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,Directo
7、rofNingxiaCountypartyCommitteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersand1.1项目(菜单项)→当前项目属性→VC++目录:需要配置““库目录”两项C:OpenCV2.4beta2buildx86vc10lib;C:OpenCV-2.4.0tbb40_20120408osslibia32vc101.2配置连接器:项目(菜单项)→当前项目属性→连接器→输入→附加依赖项针对debug配置添加以下库opencv_cali
8、b3d240d.lib;opencv_contrib240d.lib;opencv_core2