robotology / osqp-eigen

Simple Eigen-C++ wrapper for OSQP library
https://robotology.github.io/osqp-eigen/
BSD 3-Clause "New" or "Revised" License
393 stars 117 forks source link

fails building the master branch #51

Closed kouroshD closed 4 years ago

kouroshD commented 4 years ago

master branch fails with the following error:

robotology-superbuild/robotology/OsqpEigen/src/Solver.cpp:82:8: error: no matching function for call to 'osqp_setup'
    if(osqp_setup(&workspace, m_data->getData(),
       ^~~~~~~~~~
robotology-superbuild/build/install/include/osqp/osqp.h:57:16: note: candidate function not viable: requires 2 arguments, but 3 were provided
OSQPWorkspace* osqp_setup(const OSQPData *data,
               ^
1 error generated.

@GiulioRomualdi

S-Dafarra commented 4 years ago

Which version of osqp do you have installed? Also, can you specify in which OS you are building it?

kouroshD commented 4 years ago

thank you @S-Dafarra . The problem is resolved. My osqp version was old, I have updated that and it builds.

S-Dafarra commented 4 years ago

For future references, this is the result of this issue: https://github.com/oxfordcontrol/osqp/issues/195