stereolabs / zed-matlab

ZED SDK interface sample for Matlab
https://www.stereolabs.com/docs/matlab/
MIT License
28 stars 24 forks source link

Added compile problem with invalid inequality #17

Closed mindThomas closed 4 years ago

mindThomas commented 4 years ago

/zed-matlab/src/mex/mexZED.cpp: In function ‘void mexFunction(int, mxArray, int, const mxArray)’: /zed-matlab/src/mex/mexZED.cpp:307:24: error: no match for ‘operator<’ (operand types are ‘int’ and ‘sl::VIEW’) if(val < sl::VIEW::LAST)


/zed-matlab/src/mex/mexZED.cpp:345:24: error: no match for ‘operator<’ (operand types are ‘int’ and ‘sl::VIEW’)
                 if(val < sl::VIEW::LAST)
                    ~~~~^~~~
mex/CMakeFiles/mexZED.dir/build.make:62: recipe for target 'mex/CMakeFiles/mexZED.dir/mexZED.cpp.o' failed
make[2]: *** [mex/CMakeFiles/mexZED.dir/mexZED.cpp.o] Error 1
CMakeFiles/Makefile2:90: recipe for target 'mex/CMakeFiles/mexZED.dir/all' failed
make[1]: *** [mex/CMakeFiles/mexZED.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
obraun-sl commented 4 years ago

Validated. Thanks for the fix