我目前正在尝试为64位计算机构建项目,但配置管理器不会列出64位作为选项.它给了我Win32,但没有x64(在"平台"下).我正在使用Visual Studio 2010 C++ Express.
它可以在我的其他计算机上运行,但不是这个.我读过的大多数内容都是说要进入"Active Solution platform"下拉菜单,并添加'x64'.我试过了,但它仍然只列出了Win32.
我是OpenCV的新手,并一直试图在Visual Studios 2010 Ultimate中进行设置.我完全按照文档,并按照它说的链接文件.以下是我正在使用的其他库:
opencv_core231d.lib
opencv_imgproc231d.lib
opencv_highgui231d.lib
opencv_ml231d.lib
opencv_video231d.lib
opencv_features2d231d.lib
opencv_calib3d231d.lib
opencv_objdetect231d.lib
opencv_contrib231d.lib
opencv_legacy231d.lib
opencv_flann231d.lib
Run Code Online (Sandbox Code Playgroud)
以及他们所有的Release版本.但是,当我尝试调试和编译给我的示例代码时,我收到以下错误.(我在某处读到你必须编译和发布项目以使其正常工作?这也是正确的吗?)
1>------ Build started: Project: openCVTest, Configuration: Debug Win32 ------
1>Build started 5/6/2012 10:39:03 AM.
1>InitializeBuildStatus:
1> Touching "Debug\openCVTest.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>openCVTest.obj : error LNK2019: unresolved external symbol _cvWaitKey referenced in function _main
1>openCVTest.obj : error LNK2019: unresolved external symbol "void __cdecl cv::imshow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::_InputArray const &)" (?imshow@cv@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV_InputArray@1@@Z) referenced in …Run Code Online (Sandbox Code Playgroud)