|Subject:||mex and f77blas.h with Octave.app for Mac|
|Date:||Tue, 15 Jan 2019 10:49:07 -0600|
First, a big thanks to all who have helped make Octave.app on macOS a reality. I’m currently using the latest 4.4.1 beta4 and it is wonderful to have a self-contained package that allows me to easily keep various versions of Octave installed for testing purposes.
I’m attempting to build SeDuMi  with the following command (which calls mex internally), executed from the command-line in Octave-4.4.1.app ...
… but it complains of a missing header file f77blas.h, which I see is included at …
So, my question is, how can I make it successfully find and use that header file when calling install_sedumi?
I have successfully compiled some MEX files (e.g. SDPT3 ) using this installation. For example, the following works just fine to build and install SDPT3 …
git clone https://github.com/sqlp/sdpt3.git sdpt3
octave-cli --no-gui --eval "install_sdpt3('-rebuild'); savepath"
… where octave-cli points to the one in Octave-4.4.1.app.
And, for what it’s worth, I was having the same problem building SeDuMi on Ubuntu (on Travis CI) and was able to resolve it by installing libopenblas-dev and changing the include statement from #include “f77blas.h" to #include <openblas/f77blas.h> (based on ). The following lines are all it takes to successfully build on Ubuntu now …
git clone https://github.com/sqlp/sedumi.git sedumi
patch blksdp.h < ../f77blas_h.patch
octave-cli --no-gui --eval "install_sedumi('-rebuild'); savepath"
… where f77blas_h.patch changes the include statement as described above.
|[Prev in Thread]||Current Thread||[Next in Thread]|