loicland / cut-pursuit

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

fatal error: boost/graph/properties.hpp: No such file or directory #28

Open giangde091285 opened 4 years ago

giangde091285 commented 4 years ago

Hi, I got an issues with fatal error: boost/graph/properties.hpp: No such file or directory

As you can see below for more detail. Do you have any idea how to setup correct path to the 'Boost Libraries" n my system? I am using window 10, 64 bit and "C:\boost_1_66_0". Thank you very much!

mex -V CXXFLAGS="$CXXFLAGS -pthread -Wall -std=c++11 -fopenmp -O3"... LDFLAGS="$LDFLAGS -fopenmp" cut-pursuit/mex/L0_cut_pursuit_segmentation.cpp ... -output cut-pursuit/bin/L0_cut_pursuit_segmentation Verbose mode is on. ... Looking for compiler 'MinGW64 Compiler (C++)' ... ... Looking for environment variable 'MW_MINGW64_LOC' ...Yes ('C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset'). ... Looking for file 'C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++.exe' ...Yes. ... Looking for folder 'C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset' ...Yes. Found installed compiler 'MinGW64 Compiler (C++)'. Set PATH = C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin;C:\Program Files\MATLAB\R2017b\extern\include\win64;C:\Program Files\MATLAB\R2017b\extern\include;C:\Program Files\MATLAB\R2017b\simulink\include;C:\Program Files\MATLAB\R2017b\lib\win64;C:\Python27;C:\PCI Geomatics\Geomatica 2016\exe;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Python\Python37;C:\Program Files\Git\cmd;C:\Program Files\MATLAB\MATLAB Runtime\v93\runtime\win64;C:\Program Files\MATLAB\R2017b\runtime\win64;C:\Program Files\MATLAB\R2017b\bin;C:\TDM-GCC-64\bin;C:\Users\Tran Huong Giang\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\bin;;C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.4\bin;;D:\GIT_Giang\point-cloud-regularization\boost_1_66_0\boost;D:\GIT_Giang\point-cloud-regularization\boost_1_66_0 Set INCLUDE = C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\include;C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\include;; Set LIB = C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\lib;;C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\lib;; Set MW_TARGET_ARCH = win64;win64; Set LIBPATH = C:\Program Files\MATLAB\R2017b\extern\lib\win64;C:\Program Files\MATLAB\R2017b\extern\lib\win64; Options file details

Compiler location: C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset Options file: C:\Program Files\MATLAB\R2017b\bin\win64\mexopts\mingw64_g++.xml CMDLINE2 : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -m64 -Wl,--no-undefined -fopenmp -shared -static -s -Wl,"C:\Program Files\MATLAB\R2017b/extern/lib/win64/mingw64/exportsmexfileversion.def" C:\Users\TRANHU~1\AppData\Local\Temp\mex_294492528555265_16756\L0_cut_pursuit_segmentation.obj C:\Users\TRANHU~1\AppData\Local\Temp\mex_294492528555265_16756\cpp_mexapi_version.obj -L"C:\Program Files\MATLAB\R2017b\extern\lib\win64\mingw64" -llibmx -llibmex -llibmat -lm -llibmwlapack -llibmwblas -o D:\cut-pursuit\bin\L0_cut_pursuit_segmentation.mexw64 CXX : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ COMPILER : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ DEFINES : -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE MATLABMEX : -DMATLAB_MEX_FILE CFLAGS : -fexceptions -fno-omit-frame-pointer CXXFLAGS : -fexceptions -fno-omit-frame-pointer -std=c++11 -pthread -Wall -std=c++11 -fopenmp -O3 INCLUDE : -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" CXXOPTIMFLAGS : -O -DNDEBUG CXXDEBUGFLAGS : -g LDXX : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ LINKER : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ LDFLAGS : -m64 -Wl,--no-undefined -fopenmp LDTYPE : -shared -static LINKEXPORT : -Wl,"C:\Program Files\MATLAB\R2017b/extern/lib/win64/mingw64/mexFunction.def" LINKEXPORTVER : -Wl,"C:\Program Files\MATLAB\R2017b/extern/lib/win64/mingw64/exportsmexfileversion.def" LIBLOC : C:\Program Files\MATLAB\R2017b\extern\lib\win64\mingw64 LINKLIBS : -L"C:\Program Files\MATLAB\R2017b\extern\lib\win64\mingw64" -llibmx -llibmex -llibmat -lm -llibmwlapack -llibmwblas LDOPTIMFLAGS : -s LDDEBUGFLAGS : -g OBJEXT : .obj LDEXT : .mexw64 SETENV : set COMPILER=C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\gcc set CXXCOMPILER=C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ set COMPFLAGS=-c -fexceptions -fno-omit-frame-pointer -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -DMATLAB_MEX_FILE set CXXCOMPFLAGS=-c -fexceptions -fno-omit-frame-pointer -std=c++11 -pthread -Wall -std=c++11 -fopenmp -O3 -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -DMATLAB_MEX_FILE set OPTIMFLAGS=-O -DNDEBUG set DEBUGFLAGS=-g set LINKER=C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\gcc set CXXLINKER=C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ set LINKFLAGS=-m64 -Wl,--no-undefined -fopenmp -shared -static -L"C:\Program Files\MATLAB\R2017b\extern\lib\win64\mingw64" -llibmx -llibmex -llibmat -lm -llibmwlapack -llibmwblas -Wl,"C:\Program Files\MATLAB\R2017b/extern/lib/win64/mingw64/mexFunction.def" set LINKDEBUGFLAGS=-g set NAME_OUTPUT= -o "%OUTDIR%%MEX_NAME%%MEX_EXT%" MINGWROOT : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset MATLABROOT : C:\Program Files\MATLAB\R2017b ARCH : win64 SRC : "D:\cut-pursuit\mex\L0_cut_pursuit_segmentation.cpp";"C:\Program Files\MATLAB\R2017b\extern\version\cpp_mexapi_version.cpp" OBJ : C:\Users\TRANHU~1\AppData\Local\Temp\mex_294492528555265_16756\L0_cut_pursuit_segmentation.obj;C:\Users\TRANHU~1\AppData\Local\Temp\mex_294492528555265_16756\cpp_mexapi_version.obj OBJS : C:\Users\TRANHU~1\AppData\Local\Temp\mex_294492528555265_16756\L0_cut_pursuit_segmentation.obj C:\Users\TRANHU~1\AppData\Local\Temp\mex_294492528555265_16756\cpp_mexapi_version.obj SRCROOT : D:\cut-pursuit\mex\L0_cut_pursuit_segmentation DEF : C:\Users\TRANHU~1\AppData\Local\Temp\mex_294492528555265_16756\L0_cut_pursuit_segmentation.def EXP : D:\cut-pursuit\bin\L0_cut_pursuit_segmentation.exp LIB : D:\cut-pursuit\bin\L0_cut_pursuit_segmentation.lib EXE : D:\cut-pursuit\bin\L0_cut_pursuit_segmentation.mexw64 ILK : D:\cut-pursuit\bin\L0_cut_pursuit_segmentation.ilk MANIFEST : D:\cut-pursuit\bin\L0_cut_pursuit_segmentation.mexw64.manifest TEMPNAME : D:\cut-pursuit\bin\L0_cut_pursuit_segmentation EXEDIR : D:\cut-pursuit\bin\ EXENAME : L0_cut_pursuit_segmentation OPTIM : -O -DNDEBUG LINKOPTIM : -s CMDLINE1_0 : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -c -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -pthread -Wall -std=c++11 -fopenmp -O3 -O -DNDEBUG "D:\cut-pursuit\mex\L0_cut_pursuit_segmentation.cpp" -o C:\Users\TRANHU~1\AppData\Local\Temp\mex_294492528555265_16756\L0_cut_pursuit_segmentation.obj CMDLINE1_1 : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -c -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -pthread -Wall -std=c++11 -fopenmp -O3 -O -DNDEBUG "C:\Program Files\MATLAB\R2017b\extern\version\cpp_mexapi_version.cpp" -o C:\Users\TRANHU~1\AppData\Local\Temp\mex_294492528555265_16756\cpp_mexapi_version.obj

Building with 'MinGW64 Compiler (C++)'. C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -c -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -pthread -Wall -std=c++11 -fopenmp -O3 -O -DNDEBUG "D:\cut-pursuit\mex\L0_cut_pursuit_segmentation.cpp" -o C:\Users\TRANHU~1\AppData\Local\Temp\mex_294492528555265_16756\L0_cut_pursuit_segmentation.obj Error using mex In file included from D:/cut-pursuit/include/CutPursuit.h:2:0, from D:/cut-pursuit/include/CutPursuit_L2.h:2, from D:/cut-pursuit/include/API.h:3, from D:\cut-pursuit\mex\L0_cut_pursuit_segmentation.cpp:5: D:/cut-pursuit/include/Graph.h:3:38: fatal error: boost/graph/properties.hpp: No such file or directory compilation terminated.

loicland commented 4 years ago

Hi, I have very little experience compiling boost code on windows,but I'll try to help.

giangde091285 commented 4 years ago

Thank your very for your kind reply. For the first point. I have tried and it shows the same result.

D:/GIT_Giang/point-cloud-regularization/CutPursuit/include/Graph.h:2:29: fatal error: boost/foreach.hpp: No such file or
directory
compilation terminated.

For the second point DBOOST_INCLUDEDIR: C:\boost_1_66_0\boost DBOOST_LIBRARYDIR: C:\boost_1_66_0\libs DBOOST_ROOT: C:\boost_1_66_0

For the third point: I am not able to compile the code with QT.