Ubuntu:NetBeans:OpenCV:找不到共享库
我在 Ubuntu 11.04 (Gnome) 上的 NetBeans 7.1 上使用 OpenCV 2.3.1 和 C++。当我添加调用
cvCreateSubdivDelaunay2D
并尝试在调试模式下运行该程序时,我收到错误消息
/home/peter/NetBeansProjects/ArtifactImgFromCellFile/dist/Debug/GNU-Linux-x86/artifactimgfromcellfile: error while loading共享库: libopencv_calib3d.so .2.3:无法打开共享对象文件:没有这样的文件或目录
尽管事实上我有 中的 libopencv_calib3d.so.2.3
/home/peter/OpenCV-2.3.1/lib
在 NetBeans 上,我转到
“属性:链接器:运行时搜索目录”
并添加了
/home/peter/OpenCV-2.3.1/lib
但这没有解决问题。
任何帮助将不胜感激,
彼得
I am using OpenCV 2.3.1 with C++ on NetBeans 7.1 on Ubuntu 11.04 (Gnome). When I add the call
cvCreateSubdivDelaunay2D
and try to run the program in Debug mode I get the error message
/home/peter/NetBeansProjects/ArtifactImgFromCellFile/dist/Debug/GNU-Linux-x86/artifactimgfromcellfile: error while loading shared libraries: libopencv_calib3d.so.2.3: cannot open shared object file: No such file or directory
This despite the fact that I have libopencv_calib3d.so.2.3 in
/home/peter/OpenCV-2.3.1/lib
On NetBeans I went to
Properties:Linker:Run Time Search Directories
and added
/home/peter/OpenCV-2.3.1/lib
but that did not fix the problem.
Any assistance would be greatly appreciated,
Peter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Netbeans 中,您还需要明确链接该库,如下所示。
In Netbeans you explicitly also need to link the library as follows.