首页 > 代码库 > opencv2.4.4安装和配置

opencv2.4.4安装和配置

1.下载opencv 2.4.4.exe。如果只下载源代码,没有build文件夹。

2. 在环境变量中加入path\build\x86\v10\bin

3. 配置vs2010.在solution explorer-> VCC direction中:

include directories:path\build\include  path\build\include\opencv  path\build\include\opencv2

library directories:path\build\x86\vc10\lib

注意,原来的$(VCInstallDir)include ,$(VCInstallDir)atlmfc\include 和$(VCInstallDir)lib,$(VCInstallDir)atlmfc\lib,$(WindowsSdkDir)lib,$(FrameworkSDKDir)\lib要保留。不然会报错,找不到msvprtd.lib之类。

 然后在solution explorer->linker->general->additional library directories里,path\build\x86\bc10\lib

linker->debug->input里:添加依赖库(末位有d)在release->input里添加依赖库(末位无d)目录在path\build\x86\vc10\lib里。

4. 完成。