Using Boost Libraries with Mex function in MATLAB

I am on a windows 8.1 with matlab R2018b and MinGW64, I downloaded a code from this link(https://github.com/loicland/cut-pursuit).
addpath('./cut-pursuit/bin/')
mex -V CFLAGS="$CFLAGS -pthread -Wall -std=c++11 -fopenmp -O3"...
LDFLAGS="$LDFLAGS -fopenmp" mex/L0_cut_pursuit.cpp ...
-output cut-pursuit/bin/L0_cut_pursuit
mex -V CFLAGS="$CFLAGS -pthread -Wall -std=c++11 -fopenmp -O3"...
LDFLAGS="$LDFLAGSS -fopenmp" mex/L0_cut_pursuit_segmentation.cpp ...
-output cut-pursuit/bin/L0_cut_
when I run above code, I see this error:
Error using mex
In file included from C:/Users/Erfan Hp/Downloads/cut-pursuit-master/include/CutPursuit.h:2:0,
from C:/Users/Erfan Hp/Downloads/cut-pursuit-master/include/CutPursuit_L2.h:2,
from C:/Users/Erfan Hp/Downloads/cut-pursuit-master/include/API.h:3,
from C:\Users\Erfan Hp\Downloads\cut-pursuit-master\mex\L0_cut_pursuit.cpp:5:
C:/Users/Erfan Hp/Downloads/cut-pursuit-master/include/Graph.h:3:38: fatal error:
boost/graph/properties.hpp: No such file or directory
#include <boost/graph/properties.hpp>
^
compilation terminated.
Error in Untitled (line 3)
mex -V CFLAGS="$CFLAGS -pthread -Wall -std=c++11 -fopenmp -O3"...
I will be pleasure if anyone have any idea.

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by