uricamic / clandmark

Open Source Landmarking Library
http://cmp.felk.cvut.cz/~uricamic/clandmark
GNU General Public License v3.0
199 stars 111 forks source link

Matlab interface on linux #83

Closed domenlusina closed 7 years ago

domenlusina commented 7 years ago

I receive the following error, when running compile_mex.m :

../code/external/clandmark/matlab_interface/flandmark_interface_mex.cpp:128:48:   required from here
../3rd_party/CImg-1.5.6/plugins/cimgmatlab.h:183:53: error: cannot convert ‘const size_t* {aka const long unsigned int*}’ to ‘const mwSize* {aka
const int*}’ in initialization

Error in compile_mex (line 37)
eval(['mex -v -O -largeArrayDims flandmark_interface_mex.cpp ' include libclandmark ' -output ./mex/flandmark_interface']);

I also tried to build matlab bindings with cmake and I was given the same error.

I am using the CImg that is distributed with Clandmark. OS Ubuntu 16.04 Matlab 2016a

Thank you for your help !