talda / ldsift

Local Depth SIFT and Scale Invariant Spin Image local features for 3D meshes
BSD 2-Clause "Simplified" License
14 stars 2 forks source link

compile errors #3

Open smilemerry opened 3 years ago

smilemerry commented 3 years ago

when compile renderpatch.cpp, errors like this: In function 'void mexFunction(int, mxArray, int, const mxArray)': G:\lab\3d watermarking\code\ldsift-master\renderpatch.cpp:356:80: error: cannot convert 'int' to 'const mwSize {aka const long long unsigned int}' for argument '2' to 'mxArray mxCreateNumericArray_730(mwSize, const mwSize*, mxClassID, mxComplexity)' plhs[0] = mxCreateNumericArray( Iin_ndims, Iin_dims, mxDOUBLE_CLASS, mxREAL);

talda commented 3 years ago

I haven't touched or built this code for a few years now, so can't help much but I see the same issue was resolved in issue #2 . If you manage to use that solution and use this code please open a pull request.

smilemerry commented 3 years ago

I had just change the version of matlab and tdm-gcc and it works. It's matlab r2016b and MinGW-w64 4.9.2. The error happened before when running on matlab r2020. Maybe it's because of the updating changes. Here's something maybe helpful when I configured the minGW. https://ww2.mathworks.cn/matlabcentral/answers/313298-i-already-have-mingw-on-my-computer-how-do-i-configure-it-to-work-with-matlab