coin-or / qpOASES

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

Bugfix for compiling python interface #52

Closed svigerske closed 4 years ago

svigerske commented 4 years ago

Issue created by migration from Trac.

Original creator: ferreau

Original creation time: 2016-07-08 13:13:37

Assignee: ferreau

Version: 3.2.0

make python does not work in qpOASES 3.2.0 (as well as in the svn repository). It leads to the following error:

qpoases.cpp:12247:271: error: cannot convert ‘qpOASES::real_t {aka
double}’ to ‘qpOASES::returnValue’ for argument ‘1’ to ‘PyObject*
__Pyx_PyInt_From_enum__qpOASES_3a__3a_returnValue(qpOASES::returnValue)’

The bug comes from qpoases.pxd, where lines 447-449 need to be updated to:

real_t getKktViolation(const QProblem*,  const real_t*, const real_t*, const real_t*)
real_t getKktViolation(const QProblemB*, const real_t*, const real_t*, const real_t*)
real_t getKktViolation(const SQProblem*, const real_t*, const real_t*, const real_t*)

The return type is wrong in the distribution.

(note: reported on behalf of another user)

svigerske commented 4 years ago

Comment by ferreau created at 2016-08-12 13:01:17

fixed in trunk in revision 202

svigerske commented 4 years ago

Comment by ferreau created at 2016-08-12 13:01:17

Changing status from new to assigned.

svigerske commented 4 years ago

Comment by ferreau created at 2016-08-12 13:01:33

Resolution: fixed