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

Problem Compiling #44

Open
zegmonteiro opened this issue Feb 26, 2014 · 4 comments
Open

Problem Compiling #44

zegmonteiro opened this issue Feb 26, 2014 · 4 comments

Comments

@zegmonteiro
Copy link

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

@the13thson
Copy link

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.

@Seraphli
Copy link

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

@mingtop
Copy link

mingtop commented Sep 14, 2015

Greate!!! @Seraphli

@GUIEEN
Copy link

GUIEEN commented Aug 31, 2017

Thank you !! @Seraphli

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

5 participants