osqp/OSQP.jl

Arm-Linux support

Nate711 opened this issue · 3 comments

I'd like to run OSQP.jl on a raspberry pi 4. I've confirmed that the osqp c libraries compile correctly on arm-linux, but this julia wrapper doesn't seem to support arm-linux because there are no corresponding c libraries hosted on the https://dl.bintray.com/bstellato/generic/OSQP/ repository. Would it be possible to add the arm-linux binaries to your hosting website? I can provide the .a and .so files if necessary. Thanks!

We generate the binaries from the main osqp repo using travis. However, I think they do not currently support arm. I see that travis is starting to support arm but it seems currently only an alpha release: https://blog.travis-ci.com/2019-10-07-multi-cpu-architecture-support

As a much quicker alternative, we could write the build procedure so that it compiles the OSQP sources when it cannot find them for the current platform. In particular we should fill the function here:

https://github.com/oxfordcontrol/OSQP.jl/blob/d36d3e0fc8b07f0a5771d14763930eeb3acc7822/deps/build.jl#L58-L61

Unfortunately I do not have time to work on this for the next couple of weeks. If anyone else would like to give it a try, it would be appreciated. The instructions on how to use BinaryBuilder with cmake are here and the instructions on how to compile osqp here.

@bstellato Thanks for the quick reply! If I just want a hot fix, is it possible to just copy-paste the osqp binaries somewhere?

odow commented

OSQP_jll binaries are now distributed for ARM platforms, so this can be closed.