Skip to content

Instantly share code, notes, and snippets.

@noomerikal
Created April 10, 2011 19:45
Show Gist options
  • Save noomerikal/912651 to your computer and use it in GitHub Desktop.
Save noomerikal/912651 to your computer and use it in GitHub Desktop.
Changes to TLD compile.m for mac os x.
% Compiles mex files.
clc; clear all; cd mex;
% edit based on your installation folder
include = ' -I/Users/bneale/homebrew/Cellar/opencv/2.2/include/opencv -I/Users/bneale/homebrew/Cellar/opencv/2.2/include';
lib = ' -L/Users/bneale/homebrew/Cellar/opencv/2.2/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann';
% =========================================================================
eval(['mex lk.cpp -O' include lib]);
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
cd ..
% clc;
disp('Compilation finished.');
➜ mex git:(master) ✗ ls -al /Users/bneale/homebrew/Cellar/opencv/2.2/lib
total 19792
drwxr-xr-x 40 bneale 1369139312 1360 Mar 27 23:40 .
drwxr-xr-x 7 bneale 1369139312 238 Mar 27 23:40 ..
-r--r--r-- 1 bneale 1369139312 533184 Mar 27 23:40 libopencv_calib3d.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 29 Mar 27 23:39 libopencv_calib3d.2.2.dylib -> libopencv_calib3d.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:39 libopencv_calib3d.dylib -> libopencv_calib3d.2.2.dylib
-r--r--r-- 1 bneale 1369139312 287912 Mar 27 23:40 libopencv_contrib.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 29 Mar 27 23:40 libopencv_contrib.2.2.dylib -> libopencv_contrib.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:40 libopencv_contrib.dylib -> libopencv_contrib.2.2.dylib
-r--r--r-- 1 bneale 1369139312 2965728 Mar 27 23:40 libopencv_core.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 26 Mar 27 23:40 libopencv_core.2.2.dylib -> libopencv_core.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 24 Mar 27 23:40 libopencv_core.dylib -> libopencv_core.2.2.dylib
-r--r--r-- 1 bneale 1369139312 1061216 Mar 27 23:40 libopencv_features2d.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 32 Mar 27 23:40 libopencv_features2d.2.2.dylib -> libopencv_features2d.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 30 Mar 27 23:40 libopencv_features2d.dylib -> libopencv_features2d.2.2.dylib
-r--r--r-- 1 bneale 1369139312 33712 Mar 27 23:40 libopencv_flann.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:40 libopencv_flann.2.2.dylib -> libopencv_flann.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 25 Mar 27 23:40 libopencv_flann.dylib -> libopencv_flann.2.2.dylib
-r--r--r-- 1 bneale 1369139312 97512 Mar 27 23:40 libopencv_gpu.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 25 Mar 27 23:40 libopencv_gpu.2.2.dylib -> libopencv_gpu.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 23 Mar 27 23:40 libopencv_gpu.dylib -> libopencv_gpu.2.2.dylib
-r--r--r-- 1 bneale 1369139312 1248032 Mar 27 23:40 libopencv_highgui.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 29 Mar 27 23:40 libopencv_highgui.2.2.dylib -> libopencv_highgui.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:40 libopencv_highgui.dylib -> libopencv_highgui.2.2.dylib
-r--r--r-- 1 bneale 1369139312 1960488 Mar 27 23:40 libopencv_imgproc.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 29 Mar 27 23:40 libopencv_imgproc.2.2.dylib -> libopencv_imgproc.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:40 libopencv_imgproc.dylib -> libopencv_imgproc.2.2.dylib
-r--r--r-- 1 bneale 1369139312 808560 Mar 27 23:40 libopencv_legacy.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 28 Mar 27 23:40 libopencv_legacy.2.2.dylib -> libopencv_legacy.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 26 Mar 27 23:40 libopencv_legacy.dylib -> libopencv_legacy.2.2.dylib
-r--r--r-- 1 bneale 1369139312 470264 Mar 27 23:40 libopencv_ml.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 24 Mar 27 23:40 libopencv_ml.2.2.dylib -> libopencv_ml.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 22 Mar 27 23:40 libopencv_ml.dylib -> libopencv_ml.2.2.dylib
-r--r--r-- 1 bneale 1369139312 305968 Mar 27 23:40 libopencv_objdetect.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 31 Mar 27 23:40 libopencv_objdetect.2.2.dylib -> libopencv_objdetect.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 29 Mar 27 23:40 libopencv_objdetect.dylib -> libopencv_objdetect.2.2.dylib
-r--r--r-- 1 bneale 1369139312 235488 Mar 27 23:40 libopencv_video.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:40 libopencv_video.2.2.dylib -> libopencv_video.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 25 Mar 27 23:40 libopencv_video.dylib -> libopencv_video.2.2.dylib
drwxr-xr-x 3 bneale 1369139312 102 Mar 27 23:39 pkgconfig
drwxr-xr-x 3 bneale 1369139312 102 Mar 27 23:40 python2.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment