Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
feral913 opened this issue Oct 12, 2015 · 3 comments
Open

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

feral913 opened this issue Oct 12, 2015 · 3 comments

Comments

@feral913
Copy link

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
Copy link

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

@yuanyuangoo
Copy link

use opencv 2.3

@simonsayshi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants