Opened 3 years ago

Closed 4 months ago

#66 closed user support (migrated)

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:


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?

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 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 3 years ago by olzhas

comment:2 Changed 3 years ago by olzhas

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

comment:3 Changed 4 months ago by stefan

  • Resolution set to migrated
  • Status changed from assigned to closed

This ticket has been migrated to GitHub and will be resolved there:

Note: See TracTickets for help on using tickets.