-
Notifications
You must be signed in to change notification settings - Fork 25
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
GNU Octave support #26
Comments
We did have a user some time ago who managed to get it to work and intended to package it as a third-party interface. I can't recall what happened though - I guess it was not finished or was never published. Perhaps @bstellato or @imciner2 remembers. Using the canned build script It might be easier instead to first build osqp as a standalone library first outside of Octave. Then try to compile |
I have just tried the above and confirmed that it works for me on OSX with no modification to the source. The only thing that needs to be done is to 1) compile the osqp static library outside of octave, then 2) use I suggest that we leave this open for now though, since it would be nice to implement this directly into the main project CMAKE scripts and/or provide an Octave-compatible build script for one line compilation. |
Wonderful! Thanks. Could you give me an example of the |
if you follow the standard C install described here, then the required headers will be installed by default someplace like That's normally enough for OSQP, but in the case of the matlab interface we also use an internal header from the QDLDL linear solver which seems not to get exported on install (maybe this is a bug, which I will report in a separate issue). I had to access it directly (from the osqp-matlab repo) in You can then do this:
When doing that I got a warning about the header |
Exactly what I needed. Thanks! I got it working. But I agree, it would be nice to have this integrated into the main project for easy one-line compilation. |
Hi, @goulart-paul , |
Has the MEX interface to OSQP been successfully built for GNU Octave? If not consider this a feature request.
I tried following the instructions for building the MATLAB interface under Octave and initially got an error about
verlessThan
not being supported in Octave. After manually eliminating those calls inmake_osqp.m
, I get ...That was on macOS. I got essentially the same error when I tried it on Linux.
I have very little experience with Octave and MEX, but I do know that it is close enough to the MATLAB MEX interface that IPOPT's Matlab interface builds under both MATLAB and Octave.
I suspect that someone with experience could get the build scripts to work in Octave with little effort.
The text was updated successfully, but these errors were encountered: