install_osx_deps.sh 484 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. set -x # echo on
  3. set -e # exit on error
  4. brew update
  5. brew install eigen
  6. brew install glog
  7. brew install suite-sparse
  8. brew install ccache
  9. export PATH="/usr/local/opt/ccache/libexec:$PATH"
  10. whereis ccache
  11. git clone https://ceres-solver.googlesource.com/ceres-solver ceres-solver
  12. cd ceres-solver
  13. git reset --hard afe93546b67cee0ad205fe8044325646ed5deea9
  14. mkdir build
  15. cd build
  16. ccache -M 50G
  17. ccache -s
  18. cmake -DCXX11=On -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
  19. make -j3
  20. make install