Using Boost Libraries with Mex function in MATLAB
Show older comments
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.
Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!