Skip to content

Latest commit

 

History

History
66 lines (57 loc) · 2.66 KB

BUILD.md

File metadata and controls

66 lines (57 loc) · 2.66 KB

Ubuntu building

These build instructions where modified from cdcseacave

Ubuntu 15.10 building

For Ubuntu 15.10 Building see the Ubuntu 15.10 building page

Ubuntu 16.04 building

For Ubuntu 16.04 Building see the Ubuntu 16.04 building page

Ubuntu 16.10 building

#Prepare and empty machine for building:
sudo apt-get update -qq && sudo apt-get install -qq
sudo apt-get -y install git mercurial cmake libpng-dev libjpeg-dev libtiff-dev libglu1-mesa-dev libboost-iostreams-dev libboost-program-options-dev libboost-system-dev libboost-serialization-dev libopencv-dev libcgal-dev libatlas-base-dev libsuitesparse-dev qt5-default libxxf86vm1 libxxf86vm-dev libxi-dev libxrandr-dev graphviz libcgal-qt5-dev libpcl-dev python-imaging

#VCGLib (Required)
git clone https://github.com/cdcseacave/VCG.git vcglib

#Eigen (Required)
hg clone https://bitbucket.org/eigen/eigen#3.2
mkdir eigen_build && cd eigen_build
cmake . ../eigen
make && sudo make install
cd ..

#Ceres (Required)
git clone https://ceres-solver.googlesource.com/ceres-solver ceres-solver
mkdir ceres_build && cd ceres_build/
cmake . ../ceres-solver/ -DMINIGLOG=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
make -j2 && sudo make install
cd ..

#CMVS / PMVS (Optional)
git clone https://github.com/open-anatomy/CMVS-PMVS.git
mkdir CMVS-PMVS_build && cd CMVS-PMVS_build
cmake ../CMVS-PMVS/program
make && sudo make install
cd ..

#OpenMVS (Recommended)
git clone https://github.com/open-anatomy/openMVS.git
mkdir openMVS_build && cd openMVS_build
cmake . ../openMVS -DCMAKE_BUILD_TYPE=Release -DVCG_DIR="~/vcglib"
make -j2 && sudo make install
cd ..

#OpenMVG + GUI (Required)
git clone --recursive https://github.com/open-anatomy/SfM_gui_for_openMVG.git openMVG
mkdir openMVG_build && cd openMVG_build
cmake -DCMAKE_BUILD_TYPE=RELEASE . ../openMVG/src/ -DCMAKE_INSTALL_PREFIX=$HOME/openMVG_build/openMVG_install -DBUILD_SFM_GUI=ON -DOPENMVG_PMVS_PATH=$HOME/CMVS-PMVS_build -DBUILD_GUI_PREVIEW=ON
make && make install

Launch from command line:

cd ~/openMVG_build/Linux-x86_64-RELEASE && ./openMVG_SfM_gui

Extra libs (additional libs for openMVG)

  • qt5-default
  • libpcl-dev

Extra cmake options (for openMVG):

  • -DBUILD_SFM_GUI= [STANDARD: ON]
  • -DOPENMVG_PMVS_PATH= [STANDARD: $main_path/CMVS-PMVS_build]
  • -DOPENMVS_BIN_PATH= [STANDARD: not-set]
  • -DBUILD_GUI_PREVIEW= [STANDARD: ON]

Annotations:

  • This program is currently using a fork of CMVS-PMVS to fix the warning behaviour.