2013-11-26 2 views
1

opencv.I을 사용하는 간단한 C++ 프로젝트를 개발하려고합니다. http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html 웹 사이트를 따랐습니다. 그러나 일식이 표시 오류Opencv 라이브러리 파일을 찾을 수 없습니다.

/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. 

누구든지이 오류의 이유를 말해 줄 수 있습니까?

답변

1

접두사 'lib'없이 라이브러리 이름을 추가해야합니다.

관련 문제