Issues with qpsol - Cannot load shared library

262 views
Skip to first unread message

Paal Thorseth

unread,
Nov 21, 2020, 8:14:37 AM11/21/20
to CasADi
Hi,

I'm new to casadi and I was simply trying to walk through the simple guides for NLPs and QPs provided in the documentation. I was able to solve the NLP without issues but when I tried to solve the QP issues arise, as it seems to fail to find the shared library qpoases. I've attached files for the two different examples.

My setup is the following:
  • I've setup a virtual environment in python 3.8.
  • I've installed casadi with pip.
Is there something I've been missing with regards to setting specific PATHs to make this work? I assumed pip install casadi would fix the needed paths, is that incorrect?


Example_NLP_solvers.py
Example_QP_solvers.py

Joris Gillis

unread,
Dec 8, 2020, 5:34:58 PM12/8/20
to CasADi
Qpoases is supposed to work out of the box.
Can you document the version of CasADi used, and your operating system version?

Best regards,
  Joris

Paal Thorseth

unread,
Dec 9, 2020, 6:32:44 AM12/9/20
to CasADi
Hi Joris,

Im currently on macOS Big Sur version 11.0.1, running casadi-3.5.5.

I've attached the error message from the terminal.

Screenshot 2020-12-09 at 12.31.19.png

Joel Andersson

unread,
Dec 12, 2020, 3:41:47 PM12/12/20
to CasADi
Looks like the qpOASES shared library is found but cannot be loaded since it lacks some MKL dependency. Could the binaries be incompatible with the OS X version?

Joel

Joris Gillis

unread,
Dec 14, 2020, 5:27:58 PM12/14/20
to CasADi
Thanks for the debugging.

That dependency is not intended.
To proceed with the current CasADi release, you can find the missing library if you install conda:
conda install -y -c conda-forge c-compiler==1.0.4 cxx-compiler==1.0.4 fortran-compiler==1.0.4

The correct action here is probably to make sure that qpoases links to a blas/lapack version that we are allowed to ship..

Best regards,
  Joris

Holly Russell

unread,
Sep 14, 2022, 1:24:40 PM9/14/22
to CasADi
Hello, I'm having the same issue, but with the Matlab version instead of python. I'm running casadi-3.5.5 on macOS Monterey 12.3.1. Do you have any advice on what to try?

Regards,
Holly

Reply all
Reply to author
Forward
0 new messages