Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility of OSQP 1 when using Windows #163

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Jun 3, 2024

Fix #146, this should reduce new issues being opened in the repo.

fyi @gergondet

@traversaro
Copy link
Member Author

The macOS failure are due to #161, and not caused by this PR.

Copy link
Collaborator

@S-Dafarra S-Dafarra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to understand, how did you come up with this solution?

@traversaro
Copy link
Member Author

Just to understand, how did you come up with this solution?

Based on osqp/osqp#576 I understood that we had to stop using csc_spalloc and start using csc_set_data, however the two functions do not have the same functionality.

So I compare csc_spalloc and csc_set_data code:

So, I looked at the logic that was in csc_spalloc but missing in csc_set_data and I added it in OsqpEigen::spalloc. I also did something similar in csc_spfree and OsqpEigen::spfree.

@GiulioRomualdi GiulioRomualdi merged commit 8bfec92 into robotology:master Jun 25, 2024
11 of 13 checks passed
@DRETQ
Copy link

DRETQ commented Jul 17, 2024

@traversaro Hello, I am having problems writing MPC programs in VS2015 using eigen(v3.4.0),osqp(v0.6.3),osqp-eigen(v0.8,1),
here is the error message:
Severity Code Description Item File Line Error LNK2019 Unparsable external symbol _csc_spalloc, which is in function "bool __cdecl OsqpEigen::SparseMatrixHelper::createOsqpSparseMatrix<class Eigen:. SparseMatrix<double,0,int> >(class Eigen::SparseCompressedBase<class Eigen::SparseMatrix<double,0,int> > const &,struct csc * &)" (???) $createOsqpSparseMatrix@V?$SparseMatrix@N$0A@H@Eigen@@@SparseMatrixHelper@OsqpEigen@@YA_NABV?$SparseCompressedBase@V?$SparseMatrix @n$0A@H@Eigen@@eigen@@AAPAUcsc@@@z) is referenced in
I‘m looking forward to your reply

@traversaro
Copy link
Member Author

@traversaro Hello, I am having problems writing MPC programs in VS2015 using eigen(v3.4.0),osqp(v0.6.3),osqp-eigen(v0.8,1), here is the error message: Severity Code Description Item File Line Error LNK2019 Unparsable external symbol _csc_spalloc, which is in function "bool __cdecl OsqpEigen::SparseMatrixHelper::createOsqpSparseMatrix<class Eigen:. SparseMatrix<double,0,int> >(class Eigen::SparseCompressedBase<class Eigen::SparseMatrix<double,0,int> > const &,struct csc * &)" (???) $createOsqpSparseMatrix@V?$SparseMatrix@N$0A@H@Eigen@@@SparseMatrixHelper@OsqpEigen@@YA_NABV?$SparseCompressedBase@V?$SparseMatrix @n$0A@H@Eigen@@eigen@@AAPAUcsc@@@z) is referenced in I‘m looking forward to your reply

Can you open a separate issue for this? Having new problems in closed issues is not easy to deal with at all, thanks.

@DRETQ
Copy link

DRETQ commented Jul 18, 2024

Yes,i open a separate issue. Problems writing MPC programs using eigen,osqp,osqp-eigen in VS2015 #169

@traversaro
Copy link
Member Author

Yes,i open a separate issue. Problems writing MPC programs using eigen,osqp,osqp-eigen in VS2015 #169

Please avoid spamming in other discussions in that case then, especially if you were just waiting for an answer only for a few hours. In general people working on research software need to go through a lot of notifications, so if we are able to minimize unnecessary one that would be great, thanks!

@DRETQ
Copy link

DRETQ commented Jul 18, 2024

@traversaro I apologize for this and will take care of it in the future. Can you answer my question?

@robotology robotology locked as resolved and limited conversation to collaborators Jul 18, 2024
@traversaro
Copy link
Member Author

@traversaro I apologize for this and will take care of it in the future. Can you answer my question?

If the problem is the same in #169, @S-Dafarra is already helping you there, please avoid unnecessary mentions, as I already explained before, thanks!

@traversaro traversaro deleted the fixwin1 branch July 18, 2024 09:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile error on Windows with vs2022 and vs2019 when compiling against osqp master branch (future osqp v1)
4 participants