mathieuaubry / seeing3Dchairs

Seeing 3D chairs: exemplar part-based 2D-3D alignment using a large dataset of CAD models
http://www.di.ens.fr/willow/research/seeing3Dchairs/
MIT License
26 stars 12 forks source link

compile command fails #4

Closed eyildiz-ugoe closed 6 years ago

eyildiz-ugoe commented 6 years ago
>> compile
Building with 'g++'.
Error using mex
/home/username/workspace/seeing3Dchairs/code/features.cc: In function ‘mxArray* process(const mxArray*, const mxArray*)’:
/home/username/workspace/seeing3Dchairs/code/features.cc:38:44: error: cannot convert ‘const size_t* {aka const long unsigned
int*}’ to ‘const int*’ in initialization
   const int *dims = mxGetDimensions(mximage);
                                            ^
/home/username/workspace/seeing3Dchairs/code/features.cc:58:72: error: cannot convert ‘int*’ to ‘const size_t* {aka const long
unsigned int*}’ for argument ‘2’ to ‘mxArray* mxCreateNumericArray(size_t, const size_t*, mxClassID, mxComplexity)’
   mxArray *mxfeat = mxCreateNumericArray(3, out, mxDOUBLE_CLASS, mxREAL);
                                                                        ^

Error in compile (line 4)
mex features.cc;

OS: Ubuntu 16.04 Matlab: 2017b g++: 4.9