loicland / cut-pursuit

C++ implementation for the cut pursuit algorithm, with Matlab interfaces
MIT License
77 stars 24 forks source link

g++: error: \-fexceptions: No such file or directory #25

Open ErfanHasanpoor opened 4 years ago

ErfanHasanpoor commented 4 years ago

Hi doctor can you tell me please how I can fix this error your code: mex CXXFLAGS="\$CXXFLAGS -pthread -Wall -std=c++11 -fopenmp -O3"... LDFLAGS="\$LDFLAGS -fopenmp" mex/L0_cut_pursuit.cpp ... -output cut-pursuit/bin/L0_cut_pursuit mex CXXFLAGS="\$CXXFLAGS -pthread -Wall -std=c++11 -fopenmp -O3"... LDFLAGS="\$LDFLAGS -fopenmp" mex/L0_cut_pursuit_segmentation.cpp ... -output cut-pursuit/bin/L0_cut_pursuit_segmentation

and error: g++: error: -fexceptions: No such file or directory

loicland commented 4 years ago

Are you in the directory containing cut-pursuit when typing these commands?

ErfanHasanpoor commented 4 years ago

yes, I am in master-cut-persuit directory, but it doesn't work. I also changed CXXFLAGS="$CXXFLAGS to COMPFLAGS="\$COMPFLAGS but see this error: Building with 'MinGW64 Compiler (C++)'. 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

loicland commented 4 years ago

So the first issue is now solved?

Your second issue is that MATLAB can't find boost. What version of boost did you install?