Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math Library #4

Open
sabrinazuraimi opened this issue Mar 26, 2019 · 1 comment
Open

Math Library #4

sabrinazuraimi opened this issue Mar 26, 2019 · 1 comment

Comments

@sabrinazuraimi
Copy link

Hi, I'm trying to compile this but I get an error saying that there is no such file called "Math/Vector.h". I'm quite new to MATLAB and compiling using it, what library/files does Math/Vector.h refer to and where can I get them?

Verbose mode is on.
No MEX options file identified; looking for an implicit selection.
... Looking for compiler 'g++' ...
... Executing command 'which g++' ...Yes ('/usr/bin/g++').
... Executing command 'g++ -print-file-name=libstdc++.so' ...Yes ('/usr/lib/gcc/x86_64-linux-gnu/6/libstdc++.so').
... Executing command 'g++ -dumpversion' ...Yes ('6.3.0').
... Executing command 'which g++' ...Yes ('/usr/bin/g++').
... Looking for folder '/usr' ...Yes.
... Executing command 'g++ -dumpmachine' ...Yes ('x86_64-linux-gnu').
Found installed compiler 'g++'.
Set INCLUDE = /usr/lib/gcc/x86_64-linux-gnu/6.3.0/include;/usr/include/c++/6.3.0;/usr/include/c++/6.3.0/x86_64-linux-gnu;/usr/include/c++/6.3.0/backward;
Options file details
-------------------------------------------------------------------
	Compiler location: /usr/bin/g++
	Options file: /usr/local/MATLAB/R2019a/bin/glnxa64/mexopts/g++_glnxa64.xml
	CMDLINE2 : g++ -pthread -Wl,--no-undefined  -shared -O -Wl,--version-script,"/usr/local/MATLAB/R2019a/extern/lib/glnxa64/c_exportsmexfileversion.map" /tmp/mex_50128684820405_12808/MexInterface.o /tmp/mex_50128684820405_12808/graph.o /tmp/mex_50128684820405_12808/maxflow.o /tmp/mex_50128684820405_12808/cpp_mexapi_version.o   -lgomp   -Wl,--as-needed -Wl,-rpath-link,/usr/local/MATLAB/R2019a/bin/glnxa64 -L"/usr/local/MATLAB/R2019a/bin/glnxa64" -Wl,-rpath-link,/usr/local/MATLAB/R2019a/extern/bin/glnxa64 -L"/usr/local/MATLAB/R2019a/extern/bin/glnxa64" -lMatlabDataArray -lmx -lmex -lmat -lm -lstdc++ -o /disks/local/PRSM-master/./solvePWRSMulti/mex/Seg_3SM.mexa64
	CXX : g++
	DEFINES : -D_SEG_  -D_sse_linux_  -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -D_GNU_SOURCE -DMATLAB_MEX_FILE 
	MATLABMEX : -DMATLAB_MEX_FILE 
	CFLAGS : -fexceptions -fPIC -fno-omit-frame-pointer -pthread
	CXXFLAGS : -fPIC -fopenmp -march=native
	INCLUDE : -I"/SceneFlowCode/CPP" -I"/SceneFlowCode/maxflow-v3.03.src" -I"."  -I"/usr/local/MATLAB/R2019a/extern/include" -I"/usr/local/MATLAB/R2019a/simulink/include"
	CXXOPTIMFLAGS : -O2 -fwrapv -DNDEBUG
	CXXDEBUGFLAGS : -g
	LDXX : g++
	LDFLAGS : -pthread -Wl,--no-undefined 
	LDTYPE : -shared
	LINKEXPORT : -Wl,--version-script,"/usr/local/MATLAB/R2019a/extern/lib/glnxa64/mexFunction.map"
	LINKEXPORTVER : -Wl,--version-script,"/usr/local/MATLAB/R2019a/extern/lib/glnxa64/c_exportsmexfileversion.map"
	LINKLIBS : -lgomp   -Wl,--as-needed -Wl,-rpath-link,/usr/local/MATLAB/R2019a/bin/glnxa64 -L"/usr/local/MATLAB/R2019a/bin/glnxa64" -Wl,-rpath-link,/usr/local/MATLAB/R2019a/extern/bin/glnxa64 -L"/usr/local/MATLAB/R2019a/extern/bin/glnxa64" -lMatlabDataArray -lmx -lmex -lmat -lm -lstdc++
	LDOPTIMFLAGS : -O
	LDDEBUGFLAGS : -g
	MWCPPLIB : "/usr/local/MATLAB/R2019a/sys/os/glnxa64/libstdc++.so.6"
	OBJEXT : .o
	LDEXT : .mexa64
	SETENV : CC="gcc"
                CXX="g++"
                CFLAGS="-fexceptions -fPIC -fno-omit-frame-pointer -pthread -D_SEG_  -D_sse_linux_  -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -D_GNU_SOURCE -DMATLAB_MEX_FILE "
                CXXFLAGS="-fPIC -fopenmp -march=native -D_SEG_  -D_sse_linux_  -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -D_GNU_SOURCE -DMATLAB_MEX_FILE "
                COPTIMFLAGS="-O2 -fwrapv -DNDEBUG"
                CXXOPTIMFLAGS="-O2 -fwrapv -DNDEBUG"
                CDEBUGFLAGS="-g"
                CXXDEBUGFLAGS="-g"
                LD="gcc"
                LDXX="g++"
                LDFLAGS="-pthread -Wl,--no-undefined  -shared -lgomp   -Wl,--as-needed -Wl,-rpath-link,/usr/local/MATLAB/R2019a/bin/glnxa64 -L"/usr/local/MATLAB/R2019a/bin/glnxa64" -Wl,-rpath-link,/usr/local/MATLAB/R2019a/extern/bin/glnxa64 -L"/usr/local/MATLAB/R2019a/extern/bin/glnxa64" -lMatlabDataArray -lmx -lmex -lmat -lm -lstdc++ -Wl,--version-script,"/usr/local/MATLAB/R2019a/extern/lib/glnxa64/mexFunction.map""
                LDDEBUGFLAGS="-g"
	GCC : /usr/bin/g++
	CPPLIB_DIR : /usr/lib/gcc/x86_64-linux-gnu/6/libstdc++.so
	VER : 6.3.0
	GCCDIR : /usr
	GCC_TARGET : x86_64-linux-gnu
	MATLABROOT : /usr/local/MATLAB/R2019a
	ARCH : glnxa64
	SRC : "/disks/local/PRSM-master/./SceneFlowCode/VCSF_CODE/MexInterface.cpp";"/disks/local/PRSM-master/./SceneFlowCode/maxflow-v3.03.src/graph.cpp";"/disks/local/PRSM-master/./SceneFlowCode/maxflow-v3.03.src/maxflow.cpp";"/usr/local/MATLAB/R2019a/extern/version/cpp_mexapi_version.cpp"
	OBJ : /tmp/mex_50128684820405_12808/MexInterface.o;/tmp/mex_50128684820405_12808/graph.o;/tmp/mex_50128684820405_12808/maxflow.o;/tmp/mex_50128684820405_12808/cpp_mexapi_version.o
	OBJS : /tmp/mex_50128684820405_12808/MexInterface.o /tmp/mex_50128684820405_12808/graph.o /tmp/mex_50128684820405_12808/maxflow.o /tmp/mex_50128684820405_12808/cpp_mexapi_version.o 
	SRCROOT : /disks/local/PRSM-master/./SceneFlowCode/VCSF_CODE/MexInterface
	DEF : /tmp/mex_50128684820405_12808/Seg_3SM.def
	EXP : "/disks/local/PRSM-master/./solvePWRSMulti/mex/Seg_3SM.exp"
	LIB : "/disks/local/PRSM-master/./solvePWRSMulti/mex/Seg_3SM.lib"
	EXE : /disks/local/PRSM-master/./solvePWRSMulti/mex/Seg_3SM.mexa64
	ILK : "/disks/local/PRSM-master/./solvePWRSMulti/mex/Seg_3SM.ilk"
	MANIFEST : "/disks/local/PRSM-master/./solvePWRSMulti/mex/Seg_3SM.mexa64.manifest"
	TEMPNAME : /disks/local/PRSM-master/./solvePWRSMulti/mex/Seg_3SM
	EXEDIR : /disks/local/PRSM-master/./solvePWRSMulti/mex/
	EXENAME : Seg_3SM
	CC : g++
	LD : g++
	OPTIMFLAGS :  /O2 /DNDEBUG /openmp
	OPTIM : -O2 -fwrapv -DNDEBUG
	LINKOPTIM : -O
	CMDLINE1_0 : g++ -c -D_SEG_  -D_sse_linux_  -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -D_GNU_SOURCE -DMATLAB_MEX_FILE  -I"/SceneFlowCode/CPP" -I"/SceneFlowCode/maxflow-v3.03.src" -I"."  -I"/usr/local/MATLAB/R2019a/extern/include" -I"/usr/local/MATLAB/R2019a/simulink/include" -fPIC -fopenmp -march=native -O2 -fwrapv -DNDEBUG "/disks/local/PRSM-master/./SceneFlowCode/VCSF_CODE/MexInterface.cpp" -o /tmp/mex_50128684820405_12808/MexInterface.o
	CMDLINE1_1 : g++ -c -D_SEG_  -D_sse_linux_  -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -D_GNU_SOURCE -DMATLAB_MEX_FILE  -I"/SceneFlowCode/CPP" -I"/SceneFlowCode/maxflow-v3.03.src" -I"."  -I"/usr/local/MATLAB/R2019a/extern/include" -I"/usr/local/MATLAB/R2019a/simulink/include" -fPIC -fopenmp -march=native -O2 -fwrapv -DNDEBUG "/disks/local/PRSM-master/./SceneFlowCode/maxflow-v3.03.src/graph.cpp" -o /tmp/mex_50128684820405_12808/graph.o
	CMDLINE1_2 : g++ -c -D_SEG_  -D_sse_linux_  -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -D_GNU_SOURCE -DMATLAB_MEX_FILE  -I"/SceneFlowCode/CPP" -I"/SceneFlowCode/maxflow-v3.03.src" -I"."  -I"/usr/local/MATLAB/R2019a/extern/include" -I"/usr/local/MATLAB/R2019a/simulink/include" -fPIC -fopenmp -march=native -O2 -fwrapv -DNDEBUG "/disks/local/PRSM-master/./SceneFlowCode/maxflow-v3.03.src/maxflow.cpp" -o /tmp/mex_50128684820405_12808/maxflow.o
	CMDLINE1_3 : g++ -c -D_SEG_  -D_sse_linux_  -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -D_GNU_SOURCE -DMATLAB_MEX_FILE  -I"/SceneFlowCode/CPP" -I"/SceneFlowCode/maxflow-v3.03.src" -I"."  -I"/usr/local/MATLAB/R2019a/extern/include" -I"/usr/local/MATLAB/R2019a/simulink/include" -fPIC -fopenmp -march=native -O2 -fwrapv -DNDEBUG "/usr/local/MATLAB/R2019a/extern/version/cpp_mexapi_version.cpp" -o /tmp/mex_50128684820405_12808/cpp_mexapi_version.o
-------------------------------------------------------------------
Building with 'g++'.
g++ -c -D_SEG_  -D_sse_linux_  -DMATLAB_DEFAULT_RELEASE=R2017b  -DUSE_MEX_CMD   -D_GNU_SOURCE -DMATLAB_MEX_FILE  -I"/SceneFlowCode/CPP" -I"/SceneFlowCode/maxflow-v3.03.src" -I"."  -I"/usr/local/MATLAB/R2019a/extern/include" -I"/usr/local/MATLAB/R2019a/simulink/include" -fPIC -fopenmp -march=native -O2 -fwrapv -DNDEBUG "/disks/local/PRSM-master/./SceneFlowCode/VCSF_CODE/MexInterface.cpp" -o /tmp/mex_50128684820405_12808/MexInterface.o
Error using mex
In file included from /disks/local/PRSM-master/./SceneFlowCode/VCSF_CODE/MexInterface.cpp:26:0:
/disks/local/PRSM-master/./SceneFlowCode/VCSF_CODE/VCSF_GC.h:13:26: fatal error: Math/VectorT.h: No such file
or directory
 #include "Math/VectorT.h"
                          ^
compilation terminated.
@vogechri
Copy link
Owner

vogechri commented Apr 1, 2019

Sorry for the late reply.

The missing file should be found in the folder: "./SceneFlowCode/CPP/Math/", so it is part of the repository. In other words there is some include not working.
However, the command -I"/SceneFlowCode/CPP" for compiling the mex file should include that folder.

Please ensure that the file exists in that folder and that the include command can find it.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants