OpenCV 3 C ++:找不到库

时间:2016-01-07 06:10:40

标签: c++ eclipse opencv

我正在尝试使用Cygwin C ++编译器在Eclipse(Windows)中设置OpenCV 3。

Cygwin Path :“C:\ cygwin64”(已包含在系统路径中)

OpenCV包含路径:“E:\ cv \ opencv \ eclipse \ install \ include”

OpenCV库路径:“E:\ cv \ opencv \ eclipse \ lib”(包含所有库eg.libopencv_highgui310)

当我尝试构建面部检测c ++代码时

#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"

输出错误,

/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_highgui310.dll.a when searching for -llibopencv_highgui310
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_highgui310.dll.a when searching for -llibopencv_highgui310
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -llibopencv_highgui310
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_objdetect310.dll.a when searching for -llibopencv_objdetect310
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_objdetect310.dll.a when searching for -llibopencv_objdetect310
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -llibopencv_objdetect310
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_imgproc310.dll.a when searching for -llibopencv_imgproc310
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible E:\cv\opencv\eclipse\lib/libopencv_imgproc310.dll.a when searching for -llibopencv_imgproc310
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -llibopencv_imgproc310
collect2: error: ld returned 1 exit status
makefile:45: recipe for target 'opencv_cpp_v2.exe' failed

有人可以帮助解决这个错误吗?

0 个答案:

没有答案