mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
2b494cfb36
- Fix Homebrew Ruby errors by forcing brew update before install. - Remove use of custom Eigen 3.3.4 on Linux in favour of default Bionic 3.3.4 package. - Update Android NDK version to R20b and build for arm64-v8. - Fix erroneous string -> STRING in iOS toolchain file. Change-Id: I041c2a08b92b8307c12bd8967159beb6984e3c65
26 lines
621 B
Bash
Executable File
26 lines
621 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Stop processing on any error.
|
|
set -e
|
|
|
|
function install_if_not_installed() {
|
|
declare -r formula="$1"
|
|
if [[ $(brew list ${formula} &>/dev/null; echo $?) -ne 0 ]]; then
|
|
brew install ${formula}
|
|
else
|
|
echo "$0 - ${formula} is already installed."
|
|
fi
|
|
}
|
|
|
|
# Manually trigger an update prior to installing packages to avoid Ruby
|
|
# version related errors as per [1].
|
|
#
|
|
# [1]: https://github.com/travis-ci/travis-ci/issues/8552
|
|
brew update
|
|
|
|
install_if_not_installed cmake
|
|
install_if_not_installed glog
|
|
install_if_not_installed gflags
|
|
install_if_not_installed eigen
|
|
install_if_not_installed suite-sparse
|