From a7f90cd0cbdff2edef93bf13cf9719d2c76d7aff Mon Sep 17 00:00:00 2001 From: "Xiang Yann, Lim" Date: Fri, 19 Aug 2022 23:36:19 +0800 Subject: [PATCH 1/3] SZip is dead. Long live SZip. --- scripts/osx/install_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/osx/install_deps.sh b/scripts/osx/install_deps.sh index 3d53d4062..9f9afdb26 100755 --- a/scripts/osx/install_deps.sh +++ b/scripts/osx/install_deps.sh @@ -1,5 +1,5 @@ #!/bin/bash -brew_packages="openblas snappy leveldb gflags glog szip lmdb hdf5 opencv protobuf boost cmake viennacl" +brew_packages="openblas snappy leveldb gflags glog libaec lmdb hdf5 opencv protobuf boost cmake viennacl" for pkg in $brew_packages do echo "brew install $pkg || brew upgrade $pkg" From d6eaf05ba71c9137c463bbaf8e5c727a53820003 Mon Sep 17 00:00:00 2001 From: "Xiang Yann, Lim" Date: Thu, 22 Sep 2022 11:45:00 +0800 Subject: [PATCH 2/3] Install caffe from source --- scripts/osx/install_deps.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/osx/install_deps.sh b/scripts/osx/install_deps.sh index 9f9afdb26..f9b38176d 100755 --- a/scripts/osx/install_deps.sh +++ b/scripts/osx/install_deps.sh @@ -6,6 +6,10 @@ do brew install "$pkg" || brew upgrade "$pkg" done +# fix for caffe +brew uninstall --force caffe +brew install --build-from-source caffe + # with Python pycaffe needs dependencies built from source #brew install --build-from-source --with-python -vd protobuf #brew install --build-from-source -vd boost boost-python From 0f60c2c469fb8e3fd218da9fca51912fc6f07f2e Mon Sep 17 00:00:00 2001 From: "Xiang Yann, Lim" Date: Thu, 22 Sep 2022 11:57:35 +0800 Subject: [PATCH 3/3] patch osx CI with leveldb disabled. --- scripts/CI/configure_cmake.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/CI/configure_cmake.sh b/scripts/CI/configure_cmake.sh index 1b57e0dfe..2c7b0dcc5 100755 --- a/scripts/CI/configure_cmake.sh +++ b/scripts/CI/configure_cmake.sh @@ -66,6 +66,10 @@ if [[ $WITH_DEBUG == true ]] ; then ARGS="$ARGS -DCMAKE_BUILD_TYPE=Debug" fi +if [[ $CI_OS_NAME == "osx" ]] ; then + ARGS="$ARGS -DUSE_LEVELDB=OFF"; +fi + echo "ARGS = ${ARGS}." cmake .. $ARGS