Open zegmonteiro opened 10 years ago
Having the exact problem, and it's been eating at me for days. Post a solution if you find one. Thanx in advance, I'll be posting my progress soon as well.
Hi, I manage to fix this problem myself. Change unix compile code (located in compile.m) to this.
if isunix
disp('Unix');
include = ' -I/usr/local/include/opencv/ -I/usr/local/include/';
libpath = '/usr/local/lib/';
files = dir([libpath 'libopencv*.so']);
lib = [];
for i = 1:length(files),
lib = [lib ' -l' files(i).name];
end
lib=strrep(lib,'lib','')
lib=strrep(lib,'-lopencv_ca3d.so','')
eval(['mex lk.cpp -O' include lib]);
%eval(['mex -O lk.cpp' include '-lopencv_core -lopencv_imgproc']);
mex -O -c tld.cpp
mex -O fern.cpp tld.o
mex -O linkagemex.cpp
mex -O bb_overlap.cpp
mex -O warp.cpp
mex -O distance.cpp
Greate!!! @Seraphli
Thank you !! @Seraphli
Can someone help me with this error? I'm trying to compile the program, but I'm getting this error. Hope someone can help me...