/ usr / bin / ld:找不到-lopencv_contrib

时间:2015-01-21 13:23:57

标签: c++ linux opencv eclipse-cdt

我是openCV 3.0的新手。我按照here给出的说明安装了Eclipse cdt。现在,当我构建项目时,我得到以下结果:

18:15:16 **** Incremental Build of configuration Debug for project DisplayImage ****
make all
Building target: DisplayImage
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -o "DisplayImage"  ./src/DisplayImage.o   -lopencv_core -lopencv_contrib -lopencv_legacy -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d  -lopencv_calib3d -lopencv_objdetect -lopencv_flann
/usr/bin/ld: cannot find -lopencv_contrib
/usr/bin/ld: cannot find -lopencv_legacy
collect2: error: ld returned 1 exit status
make: *** [DisplayImage] Error 1

我搜索了其他库存在的/ usr / local / lib,我找不到这两个文件。我现在应该怎么做才能解决这个问题?

1 个答案:

答案 0 :(得分:3)

这只是文档中的错误。虽然你应该使用3.0 docs,同样的事情。

3.0中没有opencv_contrib或opencv_legacy模块。

它的大部分内容(如face-reco)都是moved