clipper icon indicating copy to clipboard operation
clipper copied to clipboard

Error building MATLAB Bindings

Open lopenguin opened this issue 2 years ago • 1 comments

Hello,

I'm trying to compile the MATLAB binaries on Ubuntu 22.04 and I get the following errors:

clipper/bindings/matlab/finddensecluster_mex.cpp:65:37: error: ‘clipper::utils’ has not been declared
   65 |   if (u0.size() == 0) u0 = clipper::utils::randvec(m);
      |                                     ^~~~~
clipper/bindings/matlab/finddensecluster_mex.cpp:74:21: error: ‘findDenseCluster’ is not a member of ‘clipper’
   74 |     soln = clipper::findDenseCluster(Ms, Cs, u0, params);
      |                     ^~~~~~~~~~~~~~~~
clipper/bindings/matlab/finddensecluster_mex.cpp:76:21: error: ‘findDenseCluster’ is not a member of ‘clipper’
   76 |     soln = clipper::findDenseCluster(M, C, u0, params);
      |                     ^~~~~~~~~~~~~~~~

On inspection, it seems findDenseCluster is not a declared function in the C++ code. Am I missing something? How did you compile the MATLAB binaries?

lopenguin avatar Jan 07 '24 02:01 lopenguin

Hi, unfortunately the matlab bindings have become out of sync with the c++ implementation because of a variety of efficiency improvements. It is certainly possible to update them, but would take some effort.

The Python bindings are up to date, however.

plusk01 avatar Jan 07 '24 04:01 plusk01