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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I got an error when I run compile.m

feral913 opened this issue · comments

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.

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

use opencv 2.3

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