使用 OpenCV2.2 和 Code::Blocks 10.05。错误:ld.exe 找不到 -lhighgui
我正在尝试用 C++ 构建一个简单的网络摄像头应用程序。我使用 wxWidget 进行 GUI 操作,使用 OpenCV 进行图像和视频操作。但我在 IDE 上设置 OpenCV 时遇到问题。当我尝试运行示例代码或任何与此相关的代码时,我收到一条错误消息:
ld.exe 找不到 -lhighgui
我已正确给出了库并包含 IDE 的链接。 OpenCV的路径也添加了,我查了一下。我什至尝试单独链接每个库文件,但 id 不起作用。
请帮忙。 :)
我正在使用 Windows 7 Professional X64 和 Code::Blocks 10.05
任何类型的帮助将不胜感激。
——阿尤什·什雷斯塔
I'm trying to build a simple webcam application in C++. I'm using wxWidget for GUI and OpenCV for image and video operations. But I'm having trouble setting up OpenCV on my IDE. When i try to run a sample code, or any code for that matter, I get an error that says:
ld.exe cannot find -lhighgui
I'v properly given the library and include links to the IDE. OpenCV's path is also added, I checked. I even tried linking each library file individually but id didnt work.
Please Help. :)
I'm using Windows 7 Professional X64 and Code::Blocks 10.05
Any kind of help will be appreciated.
--Aayush Shrestha
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
OpenCV 库文件已在 2.2 版本中重命名。您可以链接到新库
opencv_highgui
而不是highgui
。您还需要对您使用的其他 OpenCV 库执行此操作。
OpenCV library files have been renamed with version 2.2. You can link to the new library
opencv_highgui
instead ofhighgui
.You also need to do this for other OpenCV libraries you use.