Skip to content

Commit

Permalink
Try to get SeDuMi to build.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdzman committed Jan 15, 2019
1 parent 2a86768 commit 9791e42
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ addons:
# - coinor-libipopt-dev
- liboctave-dev
- octave # octave 4.2.2
- libopenblas-dev
update: true

install:
Expand Down Expand Up @@ -50,16 +51,17 @@ script:
# - mv $TRAVIS_BUILD_DIR/build/ipopt/src/*.mex $TRAVIS_BUILD_DIR/build/ipopt/

# build and install SeDuMi file
- cd $TRAVIS_BUILD_DIR/sedumi && octave-cli --no-gui --eval "install_sedumi('-rebuild')"
- cd $TRAVIS_BUILD_DIR/sedumi
- patch blksdp.h < $TRAVIS_BUILD_DIR/.travis/f77blas_h.patch
- octave-cli --no-gui --eval "install_sedumi('-rebuild'); savepath"

# build and install SDPT3 file
- cd $TRAVIS_BUILD_DIR/sdpt3 && octave-cli --no-gui --eval "install_sdpt3('-rebuild')"
- cd $TRAVIS_BUILD_DIR/sdpt3
- octave-cli --no-gui --eval "install_sdpt3('-rebuild'); savepath"

# install YALMIP
- cd $TRAVIS_BUILD_DIR
- octave-cli --no-gui --eval "addpath(genpath('$TRAVIS_BUILD_DIR/yalmip', '.git', 'o_win', 'dev'), '-end'); savepath"
- octave-cli --no-gui --eval "addpath(genpath('$TRAVIS_BUILD_DIR/sdpt3', '.git', 'o_win', 'dev'), '-end'); savepath"
- octave-cli --no-gui --eval "addpath(genpath('$TRAVIS_BUILD_DIR/sedumi', '.git', 'o_win', 'dev'), '-end'); savepath"

- octave-cli --no-gui --eval ver
# - octave-cli --no-gui --eval "addpath('$TRAVIS_BUILD_DIR/build/ipopt'); savepath"
Expand Down
11 changes: 11 additions & 0 deletions .travis/f77blas_h.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- blksdp.h 2019-01-14 18:09:32.000000000 -0600
+++ blksdp_new.h 2019-01-14 18:09:47.000000000 -0600
@@ -38,7 +38,7 @@
#define BLKSDP
#include "mex.h"
#ifdef OCTAVE
-#include "f77blas.h"
+#include <openblas/f77blas.h>
#define FORT(x) BLASFUNC(x)
#else
#include "blas.h"

0 comments on commit 9791e42

Please sign in to comment.