Opened 2 years ago

Last modified 2 years ago

#66 assigned user support

Problem to compile Matlab interface of qpoases [MAC]

Reported by: Fish24 Owned by: ferreau
Priority: normal Milestone:
Component: Matlab interface Version: 3.2.1
Keywords: Cc:

Description

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

Attachments (1)

make_fix.patch (418 bytes) - added by olzhas 2 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 2 years ago by ferreau

  • Status changed from new to assigned

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

Changed 2 years ago by olzhas

comment:2 Changed 2 years ago by olzhas

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

Note: See TracTickets for help on using tickets.