2014-06-16 1 views
-1
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvDecRefData':| 
main.c|| undefined reference to `cvFree_'| 
main.c|| undefined reference to `cvFree_'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvGetRow':| 
main.c|| undefined reference to `cvGetRows'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvGetCol':| 
main.c|| undefined reference to `cvGetCols'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvReleaseMatND':| 
main.c|| undefined reference to `cvReleaseMat'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvSubS':| 
main.c|| undefined reference to `cvAddS'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvCloneSeq':| 
main.c|| undefined reference to `cvSeqSlice'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvSetNew':| 
main.c|| undefined reference to `cvSetAdd'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvGetSetElem':| 
main.c|| undefined reference to `cvGetSeqElem'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvEllipseBox':| 
main.c|| undefined reference to `cvEllipse'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvFont':| 
main.c|| undefined reference to `cvInitFont'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvReadIntByName':| 
main.c|| undefined reference to `cvGetFileNodeByName'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvReadRealByName':| 
main.c|| undefined reference to `cvGetFileNodeByName'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvReadStringByName':| 
main.c|| undefined reference to `cvGetFileNodeByName'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvReadByName':| 
main.c|| undefined reference to `cvGetFileNodeByName'| 
main.c|| undefined reference to `cvRead'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvContourPerimeter':| 
main.c|| undefined reference to `cvArcLength'| 
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvCalcHist':| 
main.c|| undefined reference to `cvCalcArrHist'| 
||=== Build failed: 18 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===| 

나는, 예를 들어 여러 가지 방법으로 설치하도록 시도하지했습니다 : https://www.youtube.com/watch?v=MqQB5KKJCh0Code :: OpenCV 사용시 블록 반환 오류 "cvFree_ '|"에 대한 정의되지 않은 참조 C에서

그리고 아직도 아무것도.

+0

무엇을 연결하나요? 당신은 -lopencv_core와 같은 opencv 라이브러리가없는 것처럼 보입니다. (제발, 제발, C++ API 대신에 C++ API를 사용하십시오) – berak

답변

0

이미 고정되었으므로 OpenCV를 설정/컴파일러에 추가해야합니다. 먼저 "usr/include/opencv"및 "usr/include/opencv2"를 Search Directories/Compiler에 추가하십시오. 링커 설정 탭에서 OpenCV 용 usr/local/lib의 .so를 모두 추가하십시오.

관련 문제