第一次在这里向stackoverflow发帖提问.对不起,如果我屠宰格式!
我试图遵循openCV的基础教程,即这一篇:http: //aishack.in/tutorials/tracking-colored-objects-in-opencv/
我在线查看了有关如何安装openCV的各种教程,包括:
为Visual Studio 2010安装OpenCV-2.3 和opencv.willowgarage.com/wiki/VisualC%2B%2B
没有太多运气.
我现在运行的当前版本是OpenCV 2.3.0.我目前正在使用Microsoft Visual C++ Express 2010在Windows 7上运行.
每当我尝试构建并运行我的代码时,都会出现以下错误:
1>------ Build started: Project: Camera, Configuration: Debug Win32 ------
1>camera.obj : error LNK2019: unresolved external symbol _cvReleaseImage referenced in function "struct _IplImage * __cdecl GetThresholdedImage(struct _IplImage *)" (?GetThresholdedImage@@YAPAU_IplImage@@PAU1@@Z)
1>camera.obj : error LNK2019: unresolved external symbol _cvInRangeS referenced in function "struct _IplImage * __cdecl GetThresholdedImage(struct _IplImage *)" (?GetThresholdedImage@@YAPAU_IplImage@@PAU1@@Z)
1>camera.obj : error LNK2019: unresolved external symbol _cvCvtColor referenced in function "struct _IplImage * …Run Code Online (Sandbox Code Playgroud) 我正在做一些研究,当我感到无聊时,我发现这个glut32.dll,glut32.h和glut32.lib文件应该保存几个不同功能的函数定义(如果我没有记错)源代码使用.
我正在使用Visual Studio 2010,因此我必须使用项目的属性手动添加.lib文件.所以...
我转到Project/Properties/Config.属性/ VC++目录并将我的头文件和.lib/.dll文件添加到包含,引用,源和库属性的位置.
然后我在Config中进入C/C++.将支持菜单放入常规选项卡,并将我的.h/.lib/.dll文件的位置添加到Additonal Include目录.
回到C/C++目录,进入Advanced选项卡并告诉代码编译为C代码(在C和C++代码之间更改此代码最后不做任何事情).
然后,从C/C++选项卡进入Config.Prop.s选项卡,我进入链接器选项卡.在这里,我转到"附加库目录"并添加我的.lib和.dll文件所在的位置.
然后进入Input选项卡,我在Addition Dependencies选项卡中写入.lib文件的名称.我在每次更改后都点击申请,然后点击申请/确定.
我按代码构建并得到此错误:
1>------ Build started: Project: simplVRML, Configuration: Debug Win32 ------
1>Build started 3/30/2011 7:46:45 AM.
1>InitializeBuildStatus:
1> Touching "Debug\simplVRML.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>object.obj : error LNK2019: unresolved external symbol _arLoadPatt referenced in function _read_VRMLdata
1>object.obj : error LNK2019: unresolved external symbol _arVrmlLoadFile referenced in function _read_VRMLdata
1>simpleVRML.obj : error LNK2019: unresolved external symbol _arVrmlDraw referenced in function _main
1>simpleVRML.obj …Run Code Online (Sandbox Code Playgroud)