zk00006 / OpenTLD

OpenTLD is an open source library for real-time 2D tracking of a single object in video. This repository is no longer under development. For latest version see: http://www.tldvision.com/tld2.html
GNU General Public License v3.0
2.09k stars 1.27k forks source link

I got an error when I run compile.m #52

Open feral913 opened 8 years ago

feral913 commented 8 years ago

Ubuntu 15.04 Opencv 3.0.0 Matlab R2014a

I downloaded opentld source from here and modify 'include', and 'libpath' and also comment out ifdef _CHAR16T .... and I got and error like this,,

Unix lk.o: In function normCrossCorrelation(_IplImage*, _IplImage*, CvPoint2D32f*, CvPoint2D32f*, int, char*, float*, int, int)': lk.cpp:(.text+0x186): undefined reference tocvCreateImage' lk.cpp:(.text+0x19f): undefined reference to cvCreateImage' lk.cpp:(.text+0x1bc): undefined reference tocvCreateImage' lk.cpp:(.text+0x1fa): undefined reference to cvGetRectSubPix' lk.cpp:(.text+0x20d): undefined reference tocvGetRectSubPix' lk.cpp:(.text+0x221): undefined reference to cvMatchTemplate' lk.cpp:(.text+0x259): undefined reference tocvReleaseImage' lk.cpp:(.text+0x262): undefined reference to cvReleaseImage' lk.cpp:(.text+0x26b): undefined reference tocvReleaseImage' lk.o: In function mexFunction': lk.cpp:(.text+0x301): undefined reference tocvReleaseImage' lk.cpp:(.text+0x31b): undefined reference to cvReleaseImage' lk.o:lk.cpp:(.text+0x339): more undefined references tocvReleaseImage' follow lk.o: In function mexFunction': lk.cpp:(.text+0x445): undefined reference tocvCreateImage' lk.cpp:(.text+0x462): undefined reference to cvCreateImage' lk.cpp:(.text+0x4cb): undefined reference tocvCreateImage' lk.cpp:(.text+0x4e9): undefined reference to cvCreateImage' lk.cpp:(.text+0x562): undefined reference tocvAlloc' lk.cpp:(.text+0x574): undefined reference to cvAlloc' lk.cpp:(.text+0x587): undefined reference tocvAlloc' lk.cpp:(.text+0x63a): undefined reference to cvAlloc' lk.cpp:(.text+0x645): undefined reference tocvAlloc' lk.o:lk.cpp:(.text+0x64d): more undefined references to cvAlloc' follow lk.o: In functionmexFunction': lk.cpp:(.text+0x6f9): undefined reference to cvCalcOpticalFlowPyrLK' lk.cpp:(.text+0x78f): undefined reference tocvCalcOpticalFlowPyrLK' collect2: error: ld returned 1 exit status

mex: link of ' "lk.mexa64"' failed.

성공적으로 완료할 수 없습니다.

오류 발생: compile (line 77) eval(['mex lk.cpp -O' include lib]);

so I hope to know what is the problem. Thank you.

xingkongliang commented 8 years ago

@feral913 Hello, could you please tell me how can solve this problem?I have the same problem.

yuanyuangoo commented 7 years ago

use opencv 2.3

simonsayshi commented 6 years ago

I also have this issue, have you solved it yet?