资源描述:
《opencv 2.4.8在vs2010下的安装》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、OpenCV2.4.8在VS2010下的安装1)在网站上下载OpenCV安装包(目前最新版本是2.4.8)下载地址:http://opencv.org/选择OpenCVforWindows进行下载右键opencv-2.4.8.exe,在Windows7下要选择,以管理员身份运行,在弹出窗口中选择解压路径,将其解压到某一目录下,如:D:ProgramFiles(x86)OpenCVOpenCV2.4.8。3)配置VC配置include路径打开MicrosoftVisualStudio2010,View->PropertyManager,在窗口左
2、侧原来的SolutionExplorer的位置出现PropertyManager页面,选择Debug
3、Win32下面的Microsoft.Cpp.Win32.user,弹出Microsoft.Cpp.Win32.userProperty。(选择下图中的1和2均可,打开同一窗口)在弹出的窗口中,找到VC++Directories进行针对Debug的目录配置。在IncludeDirectories中,加入目录:D:ProgramFiles(x86)OpenCVOpenCV2.4.8buildincludeD:ProgramFiles(x86
4、)OpenCVOpenCV2.4.8buildincludeopencvD:ProgramFiles(x86)OpenCVOpenCV2.4.8buildincludeopencv2otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthO
5、rganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersandotherstaff
6、oftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederati
7、onofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersand(选择Tools-->Options-->ProjectsandSolutions-->VC++Directories,不能设置VC++全局目录,出现VC++DirectorieseditinginTools-->Optionshasbeend
8、eprecated。VS2010中设置VC++目录有两种方法,一是通过项目属性页面ProjectPropertyPages逐个项目的设置,另外一个方法是通过属性管理PropertyManager进行全局设置)。配置lib路径在LibraryDirectories中加入:D:ProgramFiles(x86)OpenCVOpenCV2.4.8buildx86vc10lib设置环境变量需要将OpenCV的dll文件所在的目录添加到环境变量Path里。32位系统&VC2010,dll目录为:D:ProgramFilesOpenCV2.4
9、.8opencvbuildx86vc10bin由于有些函数需要TBB,所以需要将tbb所在的目录也加入到环境变量