Skip to content

Instantly share code, notes, and snippets.

@carsontang
Created June 17, 2018 17:02
Show Gist options
  • Save carsontang/488bff0547a1619fe876c4c2560c0183 to your computer and use it in GitHub Desktop.
Save carsontang/488bff0547a1619fe876c4c2560c0183 to your computer and use it in GitHub Desktop.
OpenSfm installation on Mac OS X with Homebrew
sudo apt-get update \
&& sudo apt-get install -y build-essential \
cmake \
git \
libatlas-base-dev \
libboost-python-dev \
libeigen3-dev \
libgoogle-glog-dev \
libopencv-dev \
libsuitesparse-dev \
python-dev \
python-numpy \
python-opencv \
python-pip \
python-pyexiv2 \
python-pyproj \
python-scipy \
python-yaml \
wget \
&& sudo apt-get clean \
&& sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
mkdir -p ~/src && cd ~/src && \
wget http://ceres-solver.org/ceres-solver-1.14.0.tar.gz && \
tar xvzf ceres-solver-1.14.0.tar.gz && \
cd ~/src/ceres-solver-1.14.0 && \
mkdir -p build && cd build && \
cmake .. -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF && \
sudo make install
cd ~/src && git clone https://github.com/paulinus/opengv.git && \
cd ~/src/opengv && \
mkdir -p build && cd build && \
cmake .. -DBUILD_TESTS=OFF -DBUILD_PYTHON=ON && \
sudo make install
cd ~/src && git clone https://github.com/mapillary/OpenSfM.git && \
cd OpenSfM && \
virtualenv env && \
source env/bin/activate && \
pip install -r requirements.txt && \
python setup.py build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment