Created
February 6, 2015 12:00
-
-
Save denkiwakame/f78833a28c91ec83b569 to your computer and use it in GitHub Desktop.
mexコンパイル
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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