Opened 3 years ago

Closed 3 years ago

#52 closed installation issue (fixed)

Bugfix for compiling python interface

Reported by: ferreau Owned by: ferreau
Priority: normal Milestone: Release 3.3
Component: python interface Version: 3.2.0
Keywords: Cc:

Description

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)

Change History (2)

comment:1 Changed 3 years ago by ferreau

  • Status changed from new to assigned

fixed in trunk in revision 202

comment:2 Changed 3 years ago by ferreau

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.