restore link to openblas

to fix build failure: https://circleci.com/gh/paulz/PerspectiveTransform/363
This commit is contained in:
Paul Zabelin
2019-04-10 04:38:44 -07:00
parent 944a5f4bac
commit 0e7af6191c
2 changed files with 7 additions and 4 deletions

View File

@@ -2,9 +2,12 @@
# install-opencv.sh
libraries="tbb openblas gcc ffmpeg libpng libtiff ilmbase openexr jpeg opencore-amr snappy lame openjpeg opus speex theora libogg libvorbis x264 x265 libsoxr libbluray gnutls rtmpdump openssl fontconfig freetype p11-kit libunistring libtasn1 nettle gmp libffi"
libraries="tbb openblas gcc ffmpeg libpng libtiff ilmbase openexr jpeg opencore-amr snappy lame openjpeg opus speex theora libogg libvorbis x264 x265 libsoxr libbluray gnutls rtmpdump openssl fontconfig freetype p11-kit libunistring libtasn1 nettle gmp libffi"
for package in opencv $libraries; do brew link $package || brew install --ignore-dependencies --force-bottle $package; done
# due to Warning: Refusing to link macOS-provided software: openblas
# link /usr/local/opt/openblas is not getting restored
ln -s /usr/local/Cellar/openblas/`ls /usr/local/Cellar/openblas` /usr/local/opt/openblas
# To remove all dependencies:
# for package in opencv $(brew deps opencv); do brew rm --ignore-dependencies --force $package; done