[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mex and f77blas.h with Octave.app for Mac

From: Ray Zimmerman
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 [1] 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?

Additional Background

I have successfully compiled some MEX files (e.g. SDPT3 [2]) using this installation. For example, the following works just fine to build and install SDPT3 …

git clone https://github.com/sqlp/sdpt3.git sdpt3
cd 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 [3]). The following lines are all it takes to successfully build on Ubuntu now …

git clone https://github.com/sqlp/sedumi.git sedumi
cd 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.



[1] https://github.com/sqlp/sedumi
[2] https://github.com/sqlp/sdpt3
[3] https://github.com/sqlp/sedumi/issues/17

reply via email to

[Prev in Thread] Current Thread [Next in Thread]