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

Problem Compiling

zegmonteiro opened this issue · comments

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...

tld

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
commented

Greate!!! @Seraphli

Thank you !! @Seraphli