robotology / osqp-eigen

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

there is a problem when building it #137

Closed Theyearling closed 1 year ago

Theyearling commented 1 year ago

/home/car/osqp-eigen/include/OsqpEigen/SparseMatrixHelper.hpp:42:37: error: ‘csc’ has not been declared csc& osqpSparseMatrix); ^~~ /home/car/osqp-eigen/include/OsqpEigen/SparseMatrixHelper.hpp:51:56: error: ‘csc’ does not name a type; did you mean ‘cosl’? bool osqpSparseMatrixToEigenSparseMatrix(const csc const & osqpSparseMatrix, ^~~ cosl /home/car/osqp-eigen/include/OsqpEigen/SparseMatrixHelper.hpp:61:47: error: ‘csc’ does not name a type; did you mean ‘cosl’? bool osqpSparseMatrixToTriplets(const csc* const & osqpSparseMatrix, ^~~ cosl

traversaro commented 1 year ago

Hello @Theyearling , see https://github.com/robotology/osqp-eigen/issues/135 .

TL;DR: Now osqp default branch points to the unreleased 1.0.0 version, while osqp-eigen default branch is only compatible with osqp <= 0.6.3 at the moment. If you install osqp 0.6.3 (the latest stable release) everything should work.

navil2000 commented 1 year ago

Hello, do you know if a new version that is compatible with osqp v1.0.0 is going to be released? Thanks in advance, and great job with the wrapper, very useful :)

traversaro commented 1 year ago

Hello, do you know if a new version that is compatible with osqp v1.0.0 is going to be released? Thanks in advance, and great job with the wrapper, very useful :)

There is an open PR to add osqp 1.0.0 compatibility at https://github.com/robotology/osqp-eigen/pull/131 . Once that is merged, we will do a release.

GiulioRomualdi commented 1 year ago

Since https://github.com/robotology/osqp-eigen/pull/131 got merged, master is now compatible with osqp master.

Closing for the time being, in case of issues feel free to open it again 😃