coin-or / qpOASES

Open-source C++ implementation of the recently proposed online active set strategy
GNU Lesser General Public License v2.1
393 stars 130 forks source link

Problem to compile Matlab interface of qpoases [MAC] #66

Open svigerske opened 4 years ago

svigerske commented 4 years ago

Issue created by migration from Trac.

Original creator: Fish24

Original creation time: 2017-05-22 09:00:06

Assignee: ferreau

Version: 3.2.1

Hi, i'm having some troubles to compile the Matlab interface of QPoases on mac, i have already compile the C++ code and it works, but when i call the Make.m command in matlab it return me the following error:

"Error using mex Undefined symbols for architecture x86_64: "dpotrf", referenced from: qpOASES::QProblemB::computeCholesky() in qpOASES.o qpOASES::QProblem::computeProjectedCholesky() in qpOASES.o "dtrcon", referenced from: qpOASES::SQProblemSchur::updateSchurQR(long) in qpOASES.o "dtrtrs", referenced from: qpOASES::SQProblemSchur::backsolveSchurQR(long, double const, long, double) in qpOASES.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) "

any idea to fix this? thanks

svigerske commented 4 years ago

Comment by ferreau created at 2017-05-24 14:28:00

Thanks for reporting. Probably the same issue as reported in ticket #63. I am going to look at this soon.

svigerske commented 4 years ago

Comment by ferreau created at 2017-05-24 14:28:00

Changing status from new to assigned.

svigerske commented 4 years ago

Attachment make_fix.patch by olzhas created at 2017-06-07 07:08:14

svigerske commented 4 years ago

Comment by olzhas created at 2017-06-07 07:09:29

Hi, the issue was with linking matlab's LAPACK, I attached the patch to fix the issue.

AXIBA-123 commented 1 year ago

Comment by olzhas created at 2017-06-07 07:09:29

Hi, the issue was with linking matlab's LAPACK, I attached the patch to fix the issue.

Hello,do you fix it? I have the same problem with you.

apotschka commented 1 year ago

Try modifying make.m: Does removing -D__cplusplus and -D__AVOID_LA_NAMING_CONFLICTS__ from CPPFLAGS and adding -lmwlapack (after -lmwblas) fix your problem?