Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building MATLAB Bindings #19

Open
lopenguin opened this issue Jan 7, 2024 · 1 comment
Open

Error building MATLAB Bindings #19

lopenguin opened this issue Jan 7, 2024 · 1 comment

Comments

@lopenguin
Copy link

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?

@plusk01
Copy link
Member

plusk01 commented Jan 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants