在eclipse中找不到Opencv库文件
Opencv library files cannot find in eclipse
我正在尝试开发一个使用opencv的简单c++项目。我紧随其后http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html网站但eclipse显示类似的错误
/usr/bin/ld: cannot find -llibopencv_photo
/usr/bin/ld: cannot find -llibopencv_stitching
/usr/bin/ld: cannot find -llibopencv_superres
/usr/bin/ld: cannot find -llibopencv_ts
/usr/bin/ld: cannot find -llibopencv_video
/usr/bin/ld: cannot find -llibopencv_videostab
/usr/bin/ld: cannot find -llibopencv_calib3d
/usr/bin/ld: cannot find -llibopencv_contrib
/usr/bin/ld: cannot find -llibopencv_ocl
/usr/bin/ld: cannot find -llibopencv_core
/usr/bin/ld: cannot find -llibopencv_core
/usr/bin/ld: cannot find -llibopencv_flann
/usr/bin/ld: cannot find -llibopencv_gpu
/usr/bin/ld: cannot find -llibopencv_highgui
/usr/bin/ld: cannot find -llibopencv_imgproc
/usr/bin/ld: cannot find -llibopencv_legacy
/usr/bin/ld: cannot find -llibopencv_ml
/usr/bin/ld: cannot find -llibopencv_nonfree
/usr/bin/ld: cannot find -llibopencv_objdetect
collect2: ld returned 1 exit status
make: *** [MyProject] Error 1`
我以以下方式包含了库及其路径。
项目->房地产
在C/C++构建->设置中。
In GCC C++ Compiler ->Includes.
In Include paths(-l) I have added /usr/local/include/opencv.
In GCC C++ Linker
I have added the path (-L) as /usr/local/lib and also library names.
谁能告诉我这个错误的原因吗?
您必须添加不带前缀"lib"的库名称
相关文章:
- 在C++代码中包含opencv时,使用ctypes创建.so文件
- OpenCV 4.2.0 文件存储分段错误
- 加载"D:UsersPublicDocumentsopencvbuildx64vc14binopencv_world340d.dll",找不到或打开PDB文件
- OpenCV 3 Visual Studio 2017 调试,调用堆栈没有.pdb文件
- OpenCV 安装错误:没有这样的文件或目录"pyopencv_generated_include.h"
- 如何在Visual Studio中添加OpenCV文件
- 无法在 CLion 中编译 OpenCV 头文件
- 使用 Opencv 将姿势值实时写入文本文件
- 如果函数使用 OPENCV Mat 作为输入,如何编写头文件?
- OPENCV - 如何在OpenCV中使用Haar Cascade Github xml文件?
- CUDA opencv 构建失败 - 缺少实际存在的文件
- 在头文件中使用opencv类型来实现未定义的标识符
- 帧提取 使用OpenCV的视频文件开头只有几秒钟
- 从YML文件OPENCV C 初始化摄像机参数
- 从文件OpenCV读取视频
- 如何从XML文件(OpenCV)将一定数量的行读入Mat对象
- 将矢量<Mat>转换为矢量文件 Opencv
- 在Linux上构建opencv_controib示例可执行文件(opencv 3.0.0-alpha)
- BASH脚本编译多个c++文件- OpenCV
- 当对象靠近时将帧保存到文件 opencv.