Skip to content

Instantly share code, notes, and snippets.

@denkiwakame
Created February 6, 2015 12:00
Show Gist options
  • Save denkiwakame/f78833a28c91ec83b569 to your computer and use it in GitHub Desktop.
Save denkiwakame/f78833a28c91ec83b569 to your computer and use it in GitHub Desktop.
mexコンパイル
[status, opencv_incdir] = system('pkg-config --cflags opencv');
[status, opencv_ldflags] = system('pkg-config --libs opencv');
opencv_incdir = opencv_incdir(1:end-3)
opencv_ldflags = opencv_ldflags(1:end-3)
TARGET_FILE='./src/readxml.cpp';
mex_compile_options = sprintf('mex CXX=g++ %s %s %s', opencv_incdir, opencv_ldflags, TARGET_FILE)
eval(mex_compile_options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment