简体   繁体   English

Visual Studio 2010的opencv 2.4.3配置问题

[英]opencv 2.4.3 configuration issue with visual studio 2010

I have tried to install and configure opencv and link it with visual studio 2010 in 32bit windows 7 but after all the configuration when i debug a piece of code i get this error really need help please help. 我尝试安装和配置opencv并将其与32位Windows 7中的Visual Studio 2010链接,但是经过所有配置,当我调试一段代码时,我得到此错误确实需要帮助,请帮助。

"error LNK1181: cannot open file 'opencv_calib3d243d.lib'" “错误LNK1181:无法打开文件'opencv_calib3d243d.lib'”

"'opencv_calib3d243d.lib'" was included during the configuration, but still i get this error. 在配置过程中包含了“'opencv_calib3d243d.lib'”,但仍然出现此错误。

I have followed the coniguration procedure from here. 我从这里开始执行配置过程。

Installing OpenCV 2.4.3 in Visual C++ 2010 Express 在Visual C ++ 2010 Express中安装OpenCV 2.4.3

There might be 2 things that are the source of your woes: 可能有两件事是您困扰的根源:

  1. You are trying to link to x64 instead of x86 (this is assuming that your OS is 32-bit, of course) 您正在尝试链接到x64而不是x86(当然,这是假设您的操作系统是32位)
  2. You haven't specified the Linker Directory properly. 您没有正确指定链接器目录。

I would advise you to use CMake to link your libraries as it will make your life a lot simpler.. Please refer to my answer to this question for details.. 我建议您使用CMake来链接您的库,因为它会使您的生活变得更加简单。.有关详细信息,请参阅我对这个问题的回答。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM