Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在eclipse中找不到Opencv库文件 我尝试开发一个使用OpenCV的简单C++项目。 但是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++_Eclipse_Opencv - Fatal编程技术网

在eclipse中找不到Opencv库文件 我尝试开发一个使用OpenCV的简单C++项目。 但是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`

在eclipse中找不到Opencv库文件 我尝试开发一个使用OpenCV的简单C++项目。 但是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++,eclipse,opencv,C++,Eclipse,Opencv,我以以下方式包括了库及其路径 项目–>属性 在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. 有人能告诉我发生此错误的原因吗?您必须添加不带前缀“l

我以以下方式包括了库及其路径

项目–>属性

在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”的库名称。

您必须添加不带前缀“lib”的库名称