使用 Visual C++ 2008 配置 OpenCV [英] Configuring OpenCV with visual c++ 2008
问题描述
我是 OpenCV 的新手,我正在关注 http://www.hanckmann.net/?q=node/17 配置 openCV 的教程,配置 openCV 后,我收到此错误,有人可以帮助我.
I am new to OpenCV , i was following http://www.hanckmann.net/?q=node/17 tutorial to configure openCV, after configuring openCV , i get this error, could someone help me on this.
这是解释如何配置 openCV 的地方http://opencv.willowgarage.com/wiki/VisualC++
this is where it explains how to configure openCV http://opencv.willowgarage.com/wiki/VisualC++
这是我使用的示例代码.它给出了错误致命错误 LNK1104:无法打开文件 'cvcam.lib'
and this is the example code i was using. it gives the error fatal error LNK1104: cannot open file 'cvcam.lib'
#include "stdafx.h"
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
int _tmain(int argc, _TCHAR* argv[])
{
IplImage *img = cvLoadImage("Image.bmp");
cvNamedWindow("Image:",1);
cvShowImage("Image:",img);
cvWaitKey();
cvDestroyWindow("Image:");
cvReleaseImage(&img);
return 0;
}
推荐答案
您是否定义了包含 .lib
文件的文件夹?右键单击您的项目名称,选择 Properties
,选择 Linker
->General
并将包含 OpenCV 库文件的目录的名称添加到附加库目录
字段.
Have you defined the folder which contains the .lib
files? Right-click your project name, choose Properties
, select Linker
->General
and add the name of the directory which contains the OpenCV library files to the Additional Library Directories
field.
这篇关于使用 Visual C++ 2008 配置 OpenCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!