Visual C++6.0中配置OpenCV

安装完OpenCV_b5a后,打开Visual C++ 6.0,在Tools -> Directories选项中,Show Directories for中选择Include files,在其中添加

C:/Program Files/OpenCV/cv/include
C:/Program Files/OpenCV/cvaux/include
C:/Program Files/OpenCV/cxcore/include
C:/Program Files/OpenCV/otherlibs/highgui
C:/Program Files/OpenCV/otherlibs/cvcam/include

选择Source files,在其中添加

C:/Program Files/OpenCV/cv/src
C:/Program Files/OpenCV/cvaux/src
C:/Program Files/OpenCV/cxcore/src
C:/Program Files/OpenCV/otherlibs/highgui
C:/Program Files/OpenCV/otherlibs/cvcam/src/windows

选择Library files,在其中添加

C:/Program Files/OpenCV/lib

在Project Setting ->Link的Input选项中,添加cv.lib cxcore.lib highgui.lib三个库文件(这一步对于每个新工程都要重新设置,而前三步不需要)。

最后要把C:/Program Files/OpenCV/bin目录下的几个动态链接库复制到工作目录或者系统目录。至此所有工作就完成了。

你可能感兴趣的:(C++,c,工作,include,library,tools)