我正在尝试使用Visual Studio编译build.sh文件,但出现此错误。
文件(x86)\ Microsoft Visual Studio 14.0 \ VC \ bin; C:\ Program文件(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ Tools; C:\ Program文件(x86)\ Windows Kits \ 10 \ Include ; C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC; C:\ Program Files(x86)\ Windows Kits \ 10 \ Include \ 10.0.10240.0 \ ucrt; C:\ Windows \ System32; C:\ Program文件\ NVIDIA GPU计算工具包\ CUDA \ v8.0;%C; C:\ Program Files \ Git \ Users \ Engineer \ Anaconda;。;%C; C:\ Program Files \ Git \ Users \ Engineer \ Anaconda3 \ Scripts ;%C; C:\ Program Files \ Git \ Users \ Engineer \ Anaconda3;%C; C:\ Program Files \ Git \ Users \ Engineer \ Anaconda3 \ Scripts;%C; C:\ Program Files \ Git \ Users \ Engineer \ Anaconda3 \ Library \ bin; C:\ Users \ Engineer \ AppData \ Local \ Microsoft \ WindowsApps; C:\ CTEX \ UserData \ miktex \ bin; C:\ Program Files \ Python36; C:\ Program Files \ Python36 \脚本; C:\ Python27; C:\ Python27 \ Scripts; C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ bin \ cl.exe; C:\ Program Files(x86)\ Windows Kits \ 10 \包含\ 10.0.10240.0 \ ucrt;%C; C:\ Program Files \ Git \ Windows \ System32; C:\ Program Files(x8 6)\ Windows Kits \ 8.1 \ bin; C:\ Program Files(x86)\ Windows Kits \ 8.1 \ bin \ x64; C:\ Program Files \ Git \ usr \ bin \ vendor_perl; C:\ Program Files \ Git \ usr \ bin \ core_perl 设置INCLUDE = C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ INCLUDE; C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ ATLMFC \ INCLUDE; C:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.10240.0 \ ucrt; C:\ Program Files(x86)\ Windows Kits \ 8.1 \ include \ shared; C:\ Program Files(x86)\ Windows Kits \ 8.1 \ include \ um; C :\ Program Files(x86)\ Windows Kits \ 8.1 \ include \ winrt; C:\ Program Files \ MATLAB \ R2018b \ extern \ include; 设置LIB = C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ Lib \ amd64; C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ ATLMFC \ Lib \ amd64; C:\ Program Files (x86)\ Windows Kits \ 10 \ Lib \ 10.0.10240.0 \ ucrt \ x64; C:\ Program Files(x86)\ Windows Kits \ 8.1 \ lib \ winv6.3 \ um \ x64; C:\ Program Files \ MATLAB \ R2018b \ lib \ win64; 设置LIBPATH = C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ Lib \ amd64; C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ ATLMFC \ Lib \ amd64;
选项文件详细信息
Compiler location: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\..\
Options file: C:\Users\Engineer\AppData\Roaming\MathWorks\MATLAB\R2018b\mex_C++_win64.xml
CMDLINE200 : link /nologo /manifest /DLL /EXPORT:mexFunction /EXPORT:mexfilerequiredapiversion C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\correspondPixels.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\csa.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\kofn.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\match.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Exception.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Matrix.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Random.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\String.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Timer.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\cpp_mexapi_version.obj /LIBPATH:"C:\Program Files\MATLAB\R2018b\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libMatlabDataArray.lib libMatlabEngine.lib /out:correspondPixels.mexw64
CMDLINE250 : mt -outputresource:correspondPixels.mexw64;2 -manifest "correspondPixels.mexw64.manifest"
CMDLINE300 : del "correspondPixels.exp" "correspondPixels.lib" "correspondPixels.mexw64.manifest" "correspondPixels.ilk"
COMPILER : cl
COMPFLAGS : /Zp8 /GR /W3 /EHs /nologo /MD
COMPDEFINES : /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE
MATLABMEX : /DMATLAB_MEX_FILE
OPTIMFLAGS : /O2 /Oy- /DNDEBUG
INCLUDE : -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\simulink\include"
DEBUGFLAGS : /Z7
LINKER : link
LINKFLAGS : /nologo /manifest
LINKTYPE : /DLL
LINKEXPORT : /EXPORT:mexFunction
LINKEXPORTVER : /EXPORT:mexFunction /EXPORT:mexfilerequiredapiversion
LINKLIBS : /LIBPATH:"C:\Program Files\MATLAB\R2018b\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libMatlabDataArray.lib libMatlabEngine.lib
LINKDEBUGFLAGS : /debug /PDB:"correspondPixels.mexw64.pdb"
LINKOPTIMFLAGS :
OBJEXT : .obj
LDEXT : .mexw64
SETENV : set COMPILER=cl
set COMPFLAGS=/c /Zp8 /GR /W3 /EHs /nologo /MD /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /DMATLAB_MEX_FILE
set OPTIMFLAGS=/O2 /Oy- /DNDEBUG
set DEBUGFLAGS=/Z7
set LINKER=link
set LINKFLAGS=/nologo /manifest /export:%ENTRYPOINT% /DLL /LIBPATH:"C:\Program Files\MATLAB\R2018b\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libMatlabDataArray.lib libMatlabEngine.lib /EXPORT:mexFunction
set LINKDEBUGFLAGS=/debug /PDB:"%OUTDIR%%MEX_NAME%.mexw64.pdb"
set NAME_OUTPUT=/out:"%OUTDIR%%MEX_NAME%%MEX_EXT%"
VCROOT : C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
SDKROOT : C:\Program Files (x86)\Windows Kits\8.1\
VSINSTALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 14.0\
VCINSTALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\
VCVARSALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
KITSROOT : C:\Program Files (x86)\Windows Kits\10\
SDKVERSION : 10.0.10240.0
MATLABROOT : C:\Program Files\MATLAB\R2018b
ARCH : win64
SRC : "D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\correspondPixels.cc";"D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\csa.cc";"D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\kofn.cc";"D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\match.cc";"D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\Exception.cc";"D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\Matrix.cc";"D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\Random.cc";"D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\String.cc";"D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\Timer.cc";"C:\Program Files\MATLAB\R2018b\extern\version\cpp_mexapi_version.cpp"
OBJ : C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\correspondPixels.obj;C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\csa.obj;C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\kofn.obj;C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\match.obj;C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Exception.obj;C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Matrix.obj;C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Random.obj;C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\String.obj;C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Timer.obj;C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\cpp_mexapi_version.obj
OBJS : C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\correspondPixels.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\csa.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\kofn.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\match.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Exception.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Matrix.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Random.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\String.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Timer.obj C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\cpp_mexapi_version.obj
SRCROOT : D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\correspondPixels
DEF : C:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\correspondPixels.def
EXP : "correspondPixels.exp"
LIB : "correspondPixels.lib"
EXE : correspondPixels.mexw64
ILK : "correspondPixels.ilk"
MANIFEST : "correspondPixels.mexw64.manifest"
TEMPNAME : correspondPixels
EXEDIR :
EXENAME : correspondPixels
CXXFLAGS : \ -O3 -DNOBLAS
OPTIM : /O2 /Oy- /DNDEBUG
LINKOPTIM :
CMDLINE100_0 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\simulink\include" "D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\correspondPixels.cc" /FoC:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\correspondPixels.obj
CMDLINE100_1 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\simulink\include" "D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\csa.cc" /FoC:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\csa.obj
CMDLINE100_2 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\simulink\include" "D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\kofn.cc" /FoC:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\kofn.obj
CMDLINE100_3 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\simulink\include" "D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\match.cc" /FoC:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\match.obj
CMDLINE100_4 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\simulink\include" "D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\Exception.cc" /FoC:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Exception.obj
CMDLINE100_5 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\simulink\include" "D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\Matrix.cc" /FoC:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Matrix.obj
CMDLINE100_6 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\simulink\include" "D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\Random.cc" /FoC:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Random.obj
CMDLINE100_7 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\simulink\include" "D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\String.cc" /FoC:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\String.obj
CMDLINE100_8 : cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\simulink\include" "D:\image-segmentation-codes\extended-berkeley-segmentation-benchmark\source\Timer.cc" /FoC:\Users\Engineer\AppData\Local\Temp\mex_3811659388890865_24300\Timer.obj
使用“ Microsoft Visual C ++ 2015”构建。 cl / c / Zp8 / GR / W3 / EHs / nologo / MD / O2 / Oy- / DNDEBUG / DMATLAB_DEFAULT_RELEASE = R2017b / DUSE_MEX_CMD / D_CRT_SECURE_NO_DEPRECATE / D_SCL_SECURE_NO_DEPRECATE / D_SECURE \ S_LAB \ C \ LAB_C \ extern \ include“ -I” C:\ Program Files \ MATLAB \ R2018b \ simulink \ include“” D:\ image-segmentation-codes \ extended-berkeley-segmentation-benchmark \ source \ correspondPixels.cc“ / FoC:\ Users \ Engineer \ AppData \ Local \ Temp \ mex_3811659388890865_24300 \ correspondPixels.obj 使用mex时出错 对应像素 d:\ image-segmentation-codes \ extended-berkeley-segmentation-benchmark \ source \ csa.hh(18):致命错误C1083:无法打开包含文件: 'sys / times.h':没有这样的文件或目录