jrterven / Kin2

A Kinect 2 Toolbox for Matlab
38 stars 17 forks source link

mex error #3

Open jdplife opened 8 years ago

jdplife commented 8 years ago

错误使用 mex 正在创建库 Kin2_mex.lib 和对象 Kin2_mex.exp Kin2_base.obj : error LNK2019: 无法解析的外部符号 imp_NuiFusionReleaseImageFrame,该符号在函数 "public: __cdecl Kin2::~Kin2(void)" (??1Kin2@@QEAA@XZ) 中被引用 Kin2_base.obj : error LNK2019: 无法解析的外部符号 CreateFaceFrameSource,该符号在函数 "public: void cdecl Kin2::init(void)" (?init@Kin2@@QEAAXXZ) 中被引用 Kin2_base.obj : error LNK2019: 无法解析的外部符号 CreateHighDefinitionFaceFrameSource,该符号在函数 "public: void cdecl Kin2::init(void)" (?init@Kin2@@QEAAXXZ) 中被引用 Kin2_base.obj : error LNK2019: 无法解析的外部符号 CreateFaceAlignment,该符号在函数 "public: void __cdecl Kin2::init(void)" (?init@Kin2@@QEAAXXZ) 中被引用 Kin2_base.obj : error LNK2019: 无法解析的外部符号 CreateFaceModel,该符号在函数 "public: void cdecl Kin2::init(void)" (?init@Kin2@@QEAAXXZ) 中被引用 Kin2_face.obj : error LNK2019: 无法解析的外部符号 GetFaceModelVertexCount,该符号在函数 "public: void cdecl Kin2::getHDFaces(bool,class std::vector<struct k2::_HDFaceData,class std::allocator > &)" (?getHDFaces@Kin2@@QEAAX_NAEAV?$vector@U_HDFaceData@k2@@V?$allocator@U_HDFaceData@k2@@@std@@@std@@@Z) 中被引用 Kin2_fusion.obj : error LNK2019: 无法解析的外部符号 imp_NuiFusionGetDeviceInfo,该符号在函数 "private: long cdecl Kin2::KF_InitializeKinectFusion(void)" (?KF_InitializeKinectFusion@Kin2@@AEAAJXZ) 中被引用 Kin2_fusion.obj : error LNK2019: 无法解析的外部符号 __imp_NuiFusionCreateReconstruction,该符号在函数 "private: long cdecl Kin2::KF_InitializeKinectFusion(void)" (?KF_InitializeKinectFusion@Kin2@@AEAAJXZ) 中被引用 Kin2_fusion.obj : error LNK2019: 无法解析的外部符号 imp_NuiFusionCreateImageFrame,该符号在函数 "private: long __cdecl Kin2::KF_InitializeKinectFusion(void)" (?KF_InitializeKinectFusion@Kin2@@AEAAJXZ) 中被引用 Kin2_fusion.obj : error LNK2019: 无法解析的外部符号 imp_NuiFusionShadePointCloud,该符号在函数 "private: void __cdecl Kin2::KF_ProcessDepth(void)" (?KF_ProcessDepth@Kin2@@AEAAXXZ) 中被引用 Kin2_mex.mexw64 : fatal error LNK1120: 10 个无法解析的外部命令

出错 compile_cpp_files (line 32) mex ('-compatibleArrayDims', '-v', 'Kin2_mex.cpp', 'Kin2_base.cpp', 'Kin2_mapping.cpp','Kin2_face.cpp','Kin2_fusion.cpp',['-L' LibPath],'-lKinect20', '-lKinect20.Fusion', '-lKinect20.Face',['-I' IncludePath]); how to solve the issue? Thank you very much.

jrterven commented 8 years ago

Please describe me your software: Matlab version, Visual Studio version, Windows version.

Juan

On 07/09/2016, at 12:44 a.m., jdplife notifications@github.com wrote:

错误使用 mex 正在创建库 Kin2_mex.lib 和对象 Kin2_mex.exp Kin2_base.obj : error LNK2019: 无法解析的外部符号 imp_NuiFusionReleaseImageFrame,该符号在函数 "public: __cdecl Kin2::~Kin2(void)" (??1Kin2@@QEAA@XZ) 中被引用 Kin2_base.obj : error LNK2019: 无法解析的外部符号 CreateFaceFrameSource,该符号在函数 "public: void cdecl Kin2::init(void)" (?init@Kin2@@QEAAXXZ) 中被引用 Kin2_base.obj : error LNK2019: 无法解析的外部符号 CreateHighDefinitionFaceFrameSource,该符号在函数 "public: void cdecl Kin2::init(void)" (?init@Kin2@@QEAAXXZ) 中被引用 Kin2_base.obj : error LNK2019: 无法解析的外部符号 CreateFaceAlignment,该符号在函数 "public: void __cdecl Kin2::init(void)" (?init@Kin2@@QEAAXXZ) 中被引用 Kin2_base.obj : error LNK2019: 无法解析的外部符号 CreateFaceModel,该符号在函数 "public: void cdecl Kin2::init(void)" (?init@Kin2@@QEAAXXZ) 中被引用 Kin2_face.obj : error LNK2019: 无法解析的外部符号 GetFaceModelVertexCount,该符号在函数 "public: void cdecl Kin2::getHDFaces(bool,class std::vector std::allocator > &)" (?getHDFaces@Kin2@@QEAAX_NAEAV?$vector@U_HDFaceData@k2@@V?$allocator@U_HDFaceData@k2@@@std@@@std@@@Z) 中被引用 Kin2_fusion.obj : error LNK2019: 无法解析的外部符号 imp_NuiFusionGetDeviceInfo,该符号在函数 "private: long cdecl Kin2::KF_InitializeKinectFusion(void)" (?KF_InitializeKinectFusion@Kin2@@AEAAJXZ) 中被引用 Kin2_fusion.obj : error LNK2019: 无法解析的外部符号 __imp_NuiFusionCreateReconstruction,该符号在函数 "private: long cdecl Kin2::KF_InitializeKinectFusion(void)" (?KF_InitializeKinectFusion@Kin2@@AEAAJXZ) 中被引用 Kin2_fusion.obj : error LNK2019: 无法解析的外部符号 imp_NuiFusionCreateImageFrame,该符号在函数 "private: long __cdecl Kin2::KF_InitializeKinectFusion(void)" (?KF_InitializeKinectFusion@Kin2@@AEAAJXZ) 中被引用 Kin2_fusion.obj : error LNK2019: 无法解析的外部符号 imp_NuiFusionShadePointCloud,该符号在函数 "private: void __cdecl Kin2::KF_ProcessDepth(void)" (?KF_ProcessDepth@Kin2@@AEAAXXZ) 中被引用 Kin2_mex.mexw64 : fatal error LNK1120: 10 个无法解析的外部命令

出错 compile_cpp_files (line 32) mex ('-compatibleArrayDims', '-v', 'Kin2_mex.cpp', 'Kin2_base.cpp', 'Kin2_mapping.cpp','Kin2_face.cpp','Kin2_fusion.cpp',['-L' LibPath],'-lKinect20', '-lKinect20.Fusion', '-lKinect20.Face',['-I' IncludePath]); how to solve the issue? Thank you very much.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

jdplife commented 8 years ago

I solved the problem yesterday.Thank thank you for your reply

sxs4337 commented 6 years ago

Thank you for this great library!

I am getting a mex error. Please see below the logs. I have Windows 10, Visual Studio 17, MinGW64 Compiler, Matlab-17b. I have changed all paths as noted in the instructions. Any help is highly appreciated!

compile_cpp_files 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:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\CCM;C:\Program Files\MATLAB\R2017b\runtime\win64;C:\Program Files\MATLAB\R2017b\bin;C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\bin;"C:\Users\sxs4337\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\bin"; 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:\Users\sxs4337\AppData\Roaming\MathWorks\MATLAB\R2017b\mex_C++_win64.xml CMDLINE2 : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -m64 -Wl,--no-undefined -shared -static -s -Wl,"C:\Program Files\MATLAB\R2017b/extern/lib/win64/mingw64/exportsmexfileversion.def" C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_mex.obj C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_base.obj C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_mapping.obj C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_face.obj C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_fusion.obj C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\cpp_mexapi_version.obj -lKinect20 -lKinect20.Fusion -lKinect20.Face "-LC:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\Lib\x64" -L"C:\Program Files\MATLAB\R2017b\extern\lib\win64\mingw64" -llibmx -llibmex -llibmat -lm -llibmwlapack -llibmwblas -o Kin2_mex.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 : -DMX_COMPAT_32 -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 INCLUDE : -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -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 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 : -lKinect20 -lKinect20.Fusion -lKinect20.Face "-LC:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\Lib\x64" -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 -DMX_COMPAT_32 -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -DMATLAB_MEX_FILE set CXXCOMPFLAGS=-c -fexceptions -fno-omit-frame-pointer -std=c++11 -DMX_COMPAT_32 -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 -shared -static -lKinect20 -llibKinect20 -lKinect20.Fusion -llibKinect20.Fusion -lKinect20.Face -llibKinect20.Face "-LC:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\Lib\x64" -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 : "C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp";"C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_base.cpp";"C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mapping.cpp";"C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_face.cpp";"C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_fusion.cpp";"C:\Program Files\MATLAB\R2017b\extern\version\cpp_mexapi_version.cpp" OBJ : C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_mex.obj;C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_base.obj;C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_mapping.obj;C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_face.obj;C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_fusion.obj;C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\cpp_mexapi_version.obj OBJS : C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_mex.obj C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_base.obj C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_mapping.obj C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_face.obj C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_fusion.obj C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\cpp_mexapi_version.obj SRCROOT : C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex DEF : C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_mex.def EXP : Kin2_mex.exp LIB : Kin2_mex.lib EXE : Kin2_mex.mexw64 ILK : Kin2_mex.ilk MANIFEST : Kin2_mex.mexw64.manifest TEMPNAME : Kin2_mex EXEDIR : EXENAME : Kin2_mex OPTIM : -O -DNDEBUG LINKOPTIM : -s CMDLINE1_0 : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp" -o C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_mex.obj CMDLINE1_1 : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_base.cpp" -o C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_base.obj CMDLINE1_2 : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mapping.cpp" -o C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_mapping.obj CMDLINE1_3 : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_face.cpp" -o C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_face.obj CMDLINE1_4 : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_fusion.cpp" -o C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_fusion.obj CMDLINE1_5 : C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Program Files\MATLAB\R2017b\extern\version\cpp_mexapi_version.cpp" -o C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\cpp_mexapi_version.obj

Building with 'MinGW64 Compiler (C++)'. C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2017b/extern/include" -I"C:\Program Files\MATLAB\R2017b/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp" -o C:\Users\sxs4337\AppData\Local\Temp\mex_15394954993912_10868\Kin2_mex.obj Error using mex In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:99:0, from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:37, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:45, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionBase.h:98:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif Matrix4

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionBase.h:108:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSIONBUFFER

^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:37:0, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:45, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:112:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif Vector3

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:135:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_IMAGETYPE

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:146:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_RECONSTRUCTIONPARAMETERS

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:156:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_RECONSTRUCTION_PROCESSORTYPE

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:180:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_IMAGEFRAME

^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:38:0, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:45, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:109:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif Vector3

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:132:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_IMAGETYPE

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:143:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_RECONSTRUCTIONPARAMETERS

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:153:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_RECONSTRUCTION_PROCESSORTYPE

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:177:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_IMAGEFRAME

^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:40:0, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:45, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionCameraPoseFinder.h:107:8: warning: extra tokens at end of

endif directive [-Wendif-labels]

endif _NUI_FUSION_CAMERA_POSE_FINDERPARAMETERS

^ In file included from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:44:0, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:564:14: error: use of enum '_KinectCapabilities' without previous declaration typedef enum _KinectCapabilities KinectCapabilities; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:579:14: error: use of enum '_FrameSourceTypes' without previous declaration typedef enum _FrameSourceTypes FrameSourceTypes; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:596:14: error: use of enum '_ColorImageFormat' without previous declaration typedef enum _ColorImageFormat ColorImageFormat; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:611:14: error: use of enum '_HandState' without previous declaration typedef enum _HandState HandState; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:625:14: error: use of enum '_Expression' without previous declaration typedef enum _Expression Expression; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:637:14: error: use of enum '_DetectionResult' without previous declaration typedef enum _DetectionResult DetectionResult; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:650:14: error: use of enum '_TrackingConfidence' without previous declaration typedef enum _TrackingConfidence TrackingConfidence; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:661:14: error: use of enum '_Activity' without previous declaration typedef enum _Activity Activity; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:676:14: error: use of enum '_Appearance' without previous declaration typedef enum _Appearance Appearance; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:687:14: error: use of enum '_JointType' without previous declaration typedef enum _JointType JointType; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:722:14: error: use of enum '_TrackingState' without previous declaration typedef enum _TrackingState TrackingState; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:734:14: error: use of enum '_FrameEdges' without previous declaration typedef enum _FrameEdges FrameEdges; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:748:14: error: use of enum '_FrameCapturedStatus' without previous declaration typedef enum _FrameCapturedStatus FrameCapturedStatus; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:760:14: error: use of enum '_AudioBeamMode' without previous declaration typedef enum _AudioBeamMode AudioBeamMode; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:771:14: error: use of enum '_KinectAudioCalibrationState' without previous declaration typedef enum _KinectAudioCalibrationState KinectAudioCalibrationState; ^ In file included from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:44:0, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8078:14: error: use of enum '_PointerDeviceType' without previous declaration typedef enum _PointerDeviceType PointerDeviceType; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8091:14: error: use of enum '_HandType' without previous declaration typedef enum _HandType HandType; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8103:14: error: use of enum '_KinectHoldingState' without previous declaration typedef enum _KinectHoldingState KinectHoldingState; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8115:14: error: use of enum '_KinectGestureSettings' without previous declaration typedef enum _KinectGestureSettings KinectGestureSettings; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8133:14: error: use of enum '_KinectInteractionMode' without previous declaration typedef enum _KinectInteractionMode KinectInteractionMode; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8145:14: error: use of enum '_KinectEngagementMode' without previous declaration typedef enum _KinectEngagementMode KinectEngagementMode; ^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:37:0, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:45, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:653:5: error: '_Out_opt_zcap' has not been declared _Out_opt_zcap(descriptionSizeInChars) PWSTR pDescription, ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:653:45: error: expected ',' or '...' before 'PWSTR' _Out_opt_zcap(descriptionSizeInChars) PWSTR pDescription, ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:750:5: error: '_Derefout' has not been declared _Derefout INuiFusionReconstruction ppNuiFusionReconstruction ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:750:42: error: expected ',' or '...' before '' token _Derefout INuiFusionReconstruction ppNuiFusionReconstruction ^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:38:0, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:45, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:737:5: error: '_Derefout' has not been declared _Derefout INuiFusionColorReconstruction ppNuiFusionColorReconstruction ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:737:47: error: expected ',' or '...' before '' token _Derefout INuiFusionColorReconstruction ppNuiFusionColorReconstruction ^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:39:0, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:45, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionDepthProcessor.h:103:5: error: '_Derefout' has not been declared _Derefout NUI_FUSION_IMAGE_FRAME ppImageFrame ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionDepthProcessor.h:103:40: error: expected ',' or '...' before '' token _Derefout NUI_FUSION_IMAGE_FRAME ppImageFrame ^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:40:0, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:45, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionCameraPoseFinder.h:461:5: error: '_Derefout' has not been declared _Derefout INuiFusionCameraPoseFinder ppNuiFusionCameraPoseFinder ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionCameraPoseFinder.h:461:44: error: expected ',' or '...' before '' token _Derefout INuiFusionCameraPoseFinder ppNuiFusionCameraPoseFinder ^ In file included from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:46:0, from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:196:14: error: use of enum '_FacePointType' without previous declaration typedef enum _FacePointType FacePointType; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:212:14: error: use of enum '_FaceFrameFeatures' without previous declaration typedef enum _FaceFrameFeatures FaceFrameFeatures; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:235:14: error: use of enum '_FaceProperty' without previous declaration typedef enum _FaceProperty FaceProperty; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:253:14: error: use of enum '_HighDetailFacePoints' without previous declaration typedef enum _HighDetailFacePoints HighDetailFacePoints; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:297:14: error: use of enum '_FaceShapeAnimations' without previous declaration typedef enum _FaceShapeAnimations FaceShapeAnimations; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:324:14: error: use of enum '_FaceShapeDeformations' without previous declaration typedef enum _FaceShapeDeformations FaceShapeDeformations; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:428:14: error: use of enum '_FaceAlignmentQuality' without previous declaration typedef enum _FaceAlignmentQuality FaceAlignmentQuality; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:439:14: error: use of enum '_FaceModelBuilderCollectionStatus' without previous declaration typedef enum _FaceModelBuilderCollectionStatus FaceModelBuilderCollectionStatus; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:454:14: error: use of enum '_FaceModelBuilderCaptureStatus' without previous declaration typedef enum _FaceModelBuilderCaptureStatus FaceModelBuilderCaptureStatus; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:470:14: error: use of enum '_FaceModelBuilderAttributes' without previous declaration typedef enum _FaceModelBuilderAttributes FaceModelBuilderAttributes; ^ In file included from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1:0: C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:56:11: error: 'FrameSourceTypes' is not a class, namespace, or enumeration COLOR = FrameSourceTypes::FrameSourceTypes_Color, ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:57:11: error: 'FrameSourceTypes' is not a class, namespace, or enumeration DEPTH = FrameSourceTypes::FrameSourceTypes_Depth, ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:58:14: error: 'FrameSourceTypes' is not a class, namespace, or enumeration INFRARED = FrameSourceTypes::FrameSourceTypes_Infrared, ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:59:22: error: 'FrameSourceTypes' is not a class, namespace, or enumeration BODY_INDEX = FrameSourceTypes::FrameSourceTypes_BodyIndex, ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:60:10: error: 'FrameSourceTypes' is not a class, namespace, or enumeration BODY = FrameSourceTypes::FrameSourceTypes_Body, ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:70:21: error: 'FacePointType' is not a class, namespace, or enumeration PointF facePoints[FacePointType::FacePointType_Count]; ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:72:34: error: 'FaceProperty' is not a class, namespace, or enumeration DetectionResult faceProperties[FaceProperty::FaceProperty_Count]; ^ In file included from C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:1:0: C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:208:3: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration FaceFrameFeatures::FaceFrameFeatures_BoundingBoxInColorSpace ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:209:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_PointsInColorSpace ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:210:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_RotationOrientation ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:211:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_Happy ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:212:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_RightEyeClosed ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:213:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_LeftEyeClosed ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:214:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_MouthOpen ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:215:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_MouthMoved ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:216:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_LookingAway ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:217:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_Glasses ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2.h:218:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_FaceEngagement; ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp: In function 'void mexFunction(int, mxArray, int, const mxArray)': C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:695:44: warning: narrowing conversion of 'facesData.std::vector<_Tp, _Alloc>::size<k2::_FaceData, std::allocator >()' from 'std::vector::size_type {aka long long unsigned int}' to 'mwSize {aka int}' inside { } [-Wnarrowing] mwSize dims[2] = {1, facesData.size()}; ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:715:36: error: 'FaceProperty' is not a class, namespace, or enumeration int facePropsDim[2]={1,FaceProperty::FaceProperty_Count}; ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:729:28: error: 'FacePointType' is not a class, namespace, or enumeration for(int j=0; j<FacePointType::FacePointType_Count; j++) ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:732:46: error: 'k2::FaceData {aka struct k2::_FaceData}' has no member named 'facePoints' facepointsptr[j2] = curFace.facePoints[j].X; ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:733:50: error: 'k2::FaceData {aka struct k2::_FaceData}' has no member named 'facePoints' facepointsptr[j2 + 1] = curFace.facePoints[j].Y; ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:744:28: error: 'FaceProperty' is not a class, namespace, or enumeration for(int j=0; j<FaceProperty::FaceProperty_Count; j++) ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:747:48: error: 'k2::FaceData {aka struct k2::_FaceData}' has no member named 'faceProperties' facepropsptr[j] = (int)curFace.faceProperties[j]; ^ C:\Users\sxs4337\Downloads\Kin2-master\Mex\Kin2_mex.cpp:780:44: warning: narrowing conversion of 'facesData.std::vector<_Tp, _Alloc>::size<k2::_HDFaceData, std::allocator >()' from 'std::vector::size_type {aka long long unsigned int}' to 'mwSize {aka int}' inside { } [-Wnarrowing] mwSize dims[2] = {1, facesData.size()}; ^

Error in compile_cpp_files (line 32) mex ('-compatibleArrayDims', '-v', 'Kin2_mex.cpp', 'Kin2_base.cpp', ...

JayLee15 commented 5 years ago

I solved the problem yesterday.Thank thank you for your reply

I meet the same problem. How to solve the issue? Thank you very much.

mauroibarra commented 4 years ago

my problem is the follow:

compile_cpp_files Verbose mode is on. ... Looking for compiler 'MinGW64 Compiler (C++)' ... ... Looking for environment variable 'MW_MINGW64_LOC' ...Yes ('C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset'). ... Looking for file 'C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++.exe' ...Yes. ... Looking for folder 'C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset' ...Yes. ... Looking for environment variable 'MW_MINGW64_LOC' ...Yes ('C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset'). ... Executing command 'C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ -dumpmachine' ...Yes ('x86_64-w64-mingw32'). Found installed compiler 'MinGW64 Compiler (C++)'. Set PATH = C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin;C:\Program Files\MATLAB\R2018a\extern\include\win64;C:\Program Files\MATLAB\R2018a\extern\include;C:\Program Files\MATLAB\R2018a\simulink\include;C:\Program Files\MATLAB\R2018a\lib\win64;C:\Program Files\MATLAB\R2018a\runtime\win64;C:\Program Files\MATLAB\R2018a\bin;C:\Program Files\MATLAB\R2017a\runtime\win64;C:\Program Files\MATLAB\R2017a\bin;C:\Program Files\Git\cmd;C:\laragon\bin;C:\laragon\bin\apache\httpd-2.4.35-win64-VC15\bin;C:\laragon\bin\composer;C:\laragon\bin\git\bin;C:\laragon\bin\git\cmd;C:\laragon\bin\git\mingw64\bin;C:\laragon\bin\git\usr\bin;C:\laragon\bin\laragon\utils;C:\laragon\bin\mysql\mysql-5.7.24-winx64\bin;C:\laragon\bin\nginx\nginx-1.16.0;C:\laragon\bin\ngrok;C:\laragon\bin\nodejs\node-v12;C:\laragon\bin\notepad++;C:\laragon\bin\php\php-7.2.19-Win32-VC15-x64;C:\laragon\bin\putty;C:\laragon\bin\redis\redis-x64-3.2.100;C:\laragon\bin\telnet;C:\laragon\usr\bin;C:\Users\GAMER HP\AppData\Local\Yarn\config\global\node_modules.bin;C:\Users\GAMER HP\AppData\Roaming\Composer\vendor\bin;C:\Users\GAMER HP\AppData\Roaming\npm;C:\Users\GAMER HP\AppData\Local\Microsoft\WindowsApps;C:\Users\GAMER HP\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Oracle\VirtualBox;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Scripts;C:\Users\GAMER HP\AppData\Local\GitHubDesktop\bin Set INCLUDE = C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\include;C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\x86_64-w64-mingw32\include\c++;C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\x86_64-w64-mingw32\include;C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\x86_64-w64-mingw32\include\c++\x86_64-w64-mingw32;C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\x86_64-w64-mingw32\include\c++\backward;C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\include;C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\x86_64-w64-mingw32\include\c++;C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\x86_64-w64-mingw32\include;C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\x86_64-w64-mingw32\include\c++\x86_64-w64-mingw32;C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\x86_64-w64-mingw32\include\c++\backward; Set LIB = C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\lib;;C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\lib;; Set MW_TARGET_ARCH = win64;win64; Set LIBPATH = C:\Program Files\MATLAB\R2018a\extern\lib\win64;C:\Program Files\MATLAB\R2018a\extern\lib\win64; Options file details

Compiler location: C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset Options file: C:\Users\GAMER HP\AppData\Roaming\MathWorks\MATLAB\R2018a\mex_C++_win64.xml CMDLINE2 : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ -m64 -Wl,--no-undefined -shared -static -s -Wl,"C:\Program Files\MATLAB\R2018a/extern/lib/win64/mingw64/exportsmexfileversion.def" C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_mex.obj C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_base.obj C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_mapping.obj C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_face.obj C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_fusion.obj C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\cpp_mexapi_version.obj -lKinect20 -lKinect20.Fusion -lKinect20.Face "-LC:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\Lib\x64" -L"C:\Program Files\MATLAB\R2018a\extern\lib\win64\mingw64" -llibmx -llibmex -llibmat -lm -llibmwlapack -llibmwblas -llibMatlabDataArray -llibMatlabEngine -o Kin2_mex.mexw64 CXX : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ COMPILER : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ DEFINES : -DMX_COMPAT_32 -DMATLAB_DEFAULT_RELEASE=R2017b -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 INCLUDE : -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2018a/extern/include" -I"C:\Program Files\MATLAB\R2018a/simulink/include" CXXOPTIMFLAGS : -O -DNDEBUG CXXDEBUGFLAGS : -g LDXX : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ LINKER : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ LDFLAGS : -m64 -Wl,--no-undefined LDTYPE : -shared -static LINKEXPORT : -Wl,"C:\Program Files\MATLAB\R2018a/extern/lib/win64/mingw64/mexFunction.def" LINKEXPORTVER : -Wl,"C:\Program Files\MATLAB\R2018a/extern/lib/win64/mingw64/exportsmexfileversion.def" LIBLOC : C:\Program Files\MATLAB\R2018a\extern\lib\win64\mingw64 LINKLIBS : -lKinect20 -lKinect20.Fusion -lKinect20.Face "-LC:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\Lib\x64" -L"C:\Program Files\MATLAB\R2018a\extern\lib\win64\mingw64" -llibmx -llibmex -llibmat -lm -llibmwlapack -llibmwblas -llibMatlabDataArray -llibMatlabEngine LDOPTIMFLAGS : -s LDDEBUGFLAGS : -g OBJEXT : .obj LDEXT : .mexw64 SETENV : set COMPILER=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\gcc set CXXCOMPILER=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ set COMPFLAGS=-c -fexceptions -fno-omit-frame-pointer -DMX_COMPAT_32 -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -DMATLAB_MEX_FILE set CXXCOMPFLAGS=-c -fexceptions -fno-omit-frame-pointer -std=c++11 -DMX_COMPAT_32 -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -DMATLAB_MEX_FILE set OPTIMFLAGS=-O -DNDEBUG set DEBUGFLAGS=-g set LINKER=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\gcc set CXXLINKER=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ set LINKFLAGS=-m64 -Wl,--no-undefined -shared -static -lKinect20 -llibKinect20 -lKinect20.Fusion -llibKinect20.Fusion -lKinect20.Face -llibKinect20.Face "-LC:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\Lib\x64" -L"C:\Program Files\MATLAB\R2018a\extern\lib\win64\mingw64" -llibmx -llibmex -llibmat -lm -llibmwlapack -llibmwblas -llibMatlabDataArray -llibMatlabEngine -Wl,"C:\Program Files\MATLAB\R2018a/extern/lib/win64/mingw64/mexFunction.def" set LINKDEBUGFLAGS=-g set NAME_OUTPUT= -o "%OUTDIR%%MEX_NAME%%MEX_EXT%" MINGWROOT : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset MINGWTARGET : x86_64-w64-mingw32 MATLABROOT : C:\Program Files\MATLAB\R2018a ARCH : win64 SRC : "C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp";"C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_base.cpp";"C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mapping.cpp";"C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_face.cpp";"C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_fusion.cpp";"C:\Program Files\MATLAB\R2018a\extern\version\cpp_mexapi_version.cpp" OBJ : C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_mex.obj;C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_base.obj;C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_mapping.obj;C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_face.obj;C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_fusion.obj;C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\cpp_mexapi_version.obj OBJS : C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_mex.obj C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_base.obj C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_mapping.obj C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_face.obj C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_fusion.obj C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\cpp_mexapi_version.obj SRCROOT : C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex DEF : C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_mex.def EXP : "Kin2_mex.exp" LIB : "Kin2_mex.lib" EXE : Kin2_mex.mexw64 ILK : "Kin2_mex.ilk" MANIFEST : "Kin2_mex.mexw64.manifest" TEMPNAME : Kin2_mex EXEDIR : EXENAME : Kin2_mex OPTIM : -O -DNDEBUG LINKOPTIM : -s CMDLINE1_0 : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2018a/extern/include" -I"C:\Program Files\MATLAB\R2018a/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp" -o C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_mex.obj CMDLINE1_1 : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2018a/extern/include" -I"C:\Program Files\MATLAB\R2018a/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_base.cpp" -o C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_base.obj CMDLINE1_2 : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2018a/extern/include" -I"C:\Program Files\MATLAB\R2018a/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mapping.cpp" -o C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_mapping.obj CMDLINE1_3 : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2018a/extern/include" -I"C:\Program Files\MATLAB\R2018a/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_face.cpp" -o C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_face.obj CMDLINE1_4 : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2018a/extern/include" -I"C:\Program Files\MATLAB\R2018a/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_fusion.cpp" -o C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_fusion.obj CMDLINE1_5 : C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2018a/extern/include" -I"C:\Program Files\MATLAB\R2018a/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Program Files\MATLAB\R2018a\extern\version\cpp_mexapi_version.cpp" -o C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\cpp_mexapi_version.obj

Building with 'MinGW64 Compiler (C++)'. C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\mingw_w64.instrset\bin\g++ -c -DMX_COMPAT_32 -DMATLAB_DEFAULT_RELEASE=R2017b -DUSE_MEX_CMD -m64 -DMATLAB_MEX_FILE -I"C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc" -I"C:\Program Files\MATLAB\R2018a/extern/include" -I"C:\Program Files\MATLAB\R2018a/simulink/include" -fexceptions -fno-omit-frame-pointer -std=c++11 -O -DNDEBUG "C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp" -o C:\Users\GAMERH~1\AppData\Local\Temp\mex_74649916968802_12104\Kin2_mex.obj Error using mex In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:99:0, from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:37, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:45, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionBase.h:98:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif Matrix4

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionBase.h:108:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSIONBUFFER

^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:37:0, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:45, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:112:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif Vector3

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:135:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_IMAGETYPE

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:146:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_RECONSTRUCTIONPARAMETERS

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:156:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_RECONSTRUCTION_PROCESSORTYPE

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:180:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_IMAGEFRAME

^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:38:0, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:45, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:109:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif Vector3

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:132:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_IMAGETYPE

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:143:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_RECONSTRUCTIONPARAMETERS

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:153:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_RECONSTRUCTION_PROCESSORTYPE

^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:177:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_IMAGEFRAME

^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:40:0, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:45, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionCameraPoseFinder.h:107:8: warning: extra tokens at end of #endif directive [-Wendif-labels]

endif _NUI_FUSION_CAMERA_POSE_FINDERPARAMETERS

^ In file included from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:44:0, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:564:14: error: use of enum '_KinectCapabilities' without previous declaration typedef enum _KinectCapabilities KinectCapabilities; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:579:14: error: use of enum '_FrameSourceTypes' without previous declaration typedef enum _FrameSourceTypes FrameSourceTypes; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:596:14: error: use of enum '_ColorImageFormat' without previous declaration typedef enum _ColorImageFormat ColorImageFormat; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:611:14: error: use of enum '_HandState' without previous declaration typedef enum _HandState HandState; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:625:14: error: use of enum '_Expression' without previous declaration typedef enum _Expression Expression; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:637:14: error: use of enum '_DetectionResult' without previous declaration typedef enum _DetectionResult DetectionResult; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:650:14: error: use of enum '_TrackingConfidence' without previous declaration typedef enum _TrackingConfidence TrackingConfidence; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:661:14: error: use of enum '_Activity' without previous declaration typedef enum _Activity Activity; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:676:14: error: use of enum '_Appearance' without previous declaration typedef enum _Appearance Appearance; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:687:14: error: use of enum '_JointType' without previous declaration typedef enum _JointType JointType; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:722:14: error: use of enum '_TrackingState' without previous declaration typedef enum _TrackingState TrackingState; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:734:14: error: use of enum '_FrameEdges' without previous declaration typedef enum _FrameEdges FrameEdges; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:748:14: error: use of enum '_FrameCapturedStatus' without previous declaration typedef enum _FrameCapturedStatus FrameCapturedStatus; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:760:14: error: use of enum '_AudioBeamMode' without previous declaration typedef enum _AudioBeamMode AudioBeamMode; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:771:14: error: use of enum '_KinectAudioCalibrationState' without previous declaration typedef enum _KinectAudioCalibrationState KinectAudioCalibrationState; ^ In file included from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:44:0, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8078:14: error: use of enum '_PointerDeviceType' without previous declaration typedef enum _PointerDeviceType PointerDeviceType; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8091:14: error: use of enum '_HandType' without previous declaration typedef enum _HandType HandType; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8103:14: error: use of enum '_KinectHoldingState' without previous declaration typedef enum _KinectHoldingState KinectHoldingState; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8115:14: error: use of enum '_KinectGestureSettings' without previous declaration typedef enum _KinectGestureSettings KinectGestureSettings; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8133:14: error: use of enum '_KinectInteractionMode' without previous declaration typedef enum _KinectInteractionMode KinectInteractionMode; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.h:8145:14: error: use of enum '_KinectEngagementMode' without previous declaration typedef enum _KinectEngagementMode KinectEngagementMode; ^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:37:0, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:45, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:653:5: error: '_Out_opt_zcap' has not been declared _Out_opt_zcap(descriptionSizeInChars) PWSTR pDescription, ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:653:45: error: expected ',' or '...' before 'PWSTR' _Out_opt_zcap(descriptionSizeInChars) PWSTR pDescription, ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:750:5: error: '_Derefout' has not been declared _Derefout INuiFusionReconstruction ppNuiFusionReconstruction ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionVolume.h:750:42: error: expected ',' or '...' before '' token _Derefout INuiFusionReconstruction ppNuiFusionReconstruction ^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:38:0, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:45, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:737:5: error: '_Derefout' has not been declared _Derefout INuiFusionColorReconstruction ppNuiFusionColorReconstruction ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionColorVolume.h:737:47: error: expected ',' or '...' before '' token _Derefout INuiFusionColorReconstruction ppNuiFusionColorReconstruction ^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:39:0, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:45, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionDepthProcessor.h:103:5: error: '_Derefout' has not been declared _Derefout NUI_FUSION_IMAGE_FRAME ppImageFrame ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionDepthProcessor.h:103:40: error: expected ',' or '...' before '' token _Derefout NUI_FUSION_IMAGE_FRAME ppImageFrame ^ In file included from C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionApi.h:40:0, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:45, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionCameraPoseFinder.h:461:5: error: '_Derefout' has not been declared _Derefout INuiFusionCameraPoseFinder ppNuiFusionCameraPoseFinder ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/NuiKinectFusionCameraPoseFinder.h:461:44: error: expected ',' or '...' before '' token _Derefout INuiFusionCameraPoseFinder ppNuiFusionCameraPoseFinder ^ In file included from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:46:0, from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1: C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:196:14: error: use of enum '_FacePointType' without previous declaration typedef enum _FacePointType FacePointType; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:212:14: error: use of enum '_FaceFrameFeatures' without previous declaration typedef enum _FaceFrameFeatures FaceFrameFeatures; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:235:14: error: use of enum '_FaceProperty' without previous declaration typedef enum _FaceProperty FaceProperty; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:253:14: error: use of enum '_HighDetailFacePoints' without previous declaration typedef enum _HighDetailFacePoints HighDetailFacePoints; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:297:14: error: use of enum '_FaceShapeAnimations' without previous declaration typedef enum _FaceShapeAnimations FaceShapeAnimations; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:324:14: error: use of enum '_FaceShapeDeformations' without previous declaration typedef enum _FaceShapeDeformations FaceShapeDeformations; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:428:14: error: use of enum '_FaceAlignmentQuality' without previous declaration typedef enum _FaceAlignmentQuality FaceAlignmentQuality; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:439:14: error: use of enum '_FaceModelBuilderCollectionStatus' without previous declaration typedef enum _FaceModelBuilderCollectionStatus FaceModelBuilderCollectionStatus; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:454:14: error: use of enum '_FaceModelBuilderCaptureStatus' without previous declaration typedef enum _FaceModelBuilderCaptureStatus FaceModelBuilderCaptureStatus; ^ C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc/Kinect.Face.h:470:14: error: use of enum '_FaceModelBuilderAttributes' without previous declaration typedef enum _FaceModelBuilderAttributes FaceModelBuilderAttributes; ^ In file included from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1:0: C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:56:11: error: 'FrameSourceTypes' is not a class, namespace, or enumeration COLOR = FrameSourceTypes::FrameSourceTypes_Color, ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:57:11: error: 'FrameSourceTypes' is not a class, namespace, or enumeration DEPTH = FrameSourceTypes::FrameSourceTypes_Depth, ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:58:14: error: 'FrameSourceTypes' is not a class, namespace, or enumeration INFRARED = FrameSourceTypes::FrameSourceTypes_Infrared, ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:59:22: error: 'FrameSourceTypes' is not a class, namespace, or enumeration BODY_INDEX = FrameSourceTypes::FrameSourceTypes_BodyIndex, ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:60:10: error: 'FrameSourceTypes' is not a class, namespace, or enumeration BODY = FrameSourceTypes::FrameSourceTypes_Body, ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:70:21: error: 'FacePointType' is not a class, namespace, or enumeration PointF facePoints[FacePointType::FacePointType_Count]; ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:72:34: error: 'FaceProperty' is not a class, namespace, or enumeration DetectionResult faceProperties[FaceProperty::FaceProperty_Count]; ^ In file included from C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:1:0: C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:208:3: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration FaceFrameFeatures::FaceFrameFeatures_BoundingBoxInColorSpace ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:209:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_PointsInColorSpace ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:210:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_RotationOrientation ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:211:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_Happy ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:212:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_RightEyeClosed ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:213:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_LeftEyeClosed ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:214:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_MouthOpen ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:215:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_MouthMoved ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:216:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_LookingAway ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:217:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_Glasses ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2.h:218:5: error: 'FaceFrameFeatures' is not a class, namespace, or enumeration | FaceFrameFeatures::FaceFrameFeatures_FaceEngagement; ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp: In function 'void mexFunction(int, mxArray, int, const mxArray)': C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:695:44: warning: narrowing conversion of 'facesData.std::vector<_Tp, _Alloc>::size<k2::_FaceData, std::allocator >()' from 'std::vector::size_type {aka long long unsigned int}' to 'mwSize {aka int}' inside { } [-Wnarrowing] mwSize dims[2] = {1, facesData.size()}; ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:715:36: error: 'FaceProperty' is not a class, namespace, or enumeration int facePropsDim[2]={1,FaceProperty::FaceProperty_Count}; ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:729:28: error: 'FacePointType' is not a class, namespace, or enumeration for(int j=0; j<FacePointType::FacePointType_Count; j++) ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:732:46: error: 'k2::FaceData {aka struct k2::_FaceData}' has no member named 'facePoints' facepointsptr[j2] = curFace.facePoints[j].X; ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:733:50: error: 'k2::FaceData {aka struct k2::_FaceData}' has no member named 'facePoints' facepointsptr[j2 + 1] = curFace.facePoints[j].Y; ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:744:28: error: 'FaceProperty' is not a class, namespace, or enumeration for(int j=0; j<FaceProperty::FaceProperty_Count; j++) ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:747:48: error: 'k2::FaceData {aka struct k2::_FaceData}' has no member named 'faceProperties' facepropsptr[j] = (int)curFace.faceProperties[j]; ^ C:\Users\GAMER HP\Desktop\TRABAJO DE GRADO\VISION ZEBRA AQUISICION\matlab kin2\Kin2-master\Kin2-master\Mex\Kin2_mex.cpp:780:44: warning: narrowing conversion of 'facesData.std::vector<_Tp, _Alloc>::size<k2::_HDFaceData, std::allocator >()' from 'std::vector::size_type {aka long long unsigned int}' to 'mwSize {aka int}' inside { } [-Wnarrowing] mwSize dims[2] = {1, facesData.size()}; ^

Error in compile_cpp_files (line 32) mex ('-compatibleArrayDims', '-v', 'Kin2_mex.cpp', 'Kin2_base.cpp', ...