-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
80 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
root_folder=$(realpath $(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/..) | ||
source ${root_folder}/scripts/load_env.sh | ||
|
||
apt-get install -y --no-install-recommends --no-install-suggests \ | ||
cmake \ | ||
libgoogle-glog-dev \ | ||
libgflags-dev \ | ||
libatlas-base-dev \ | ||
libeigen3-dev \ | ||
libsuitesparse-dev \ | ||
build-essential | ||
|
||
git clone -b 2.1.0 https://github.com/ceres-solver/ceres-solver.git ceres-solver-v2.1.0 --depth=1 | ||
cd ceres-solver-v2.1.0 | ||
cmake -S . -B build | ||
cmake --build build --target install -- -j$(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
root_folder=$(realpath $(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/..) | ||
source ${root_folder}/scripts/load_env.sh | ||
|
||
apt-get install -y --no-install-recommends --no-install-suggests \ | ||
libboost-program-options-dev \ | ||
libboost-filesystem-dev \ | ||
libboost-graph-dev \ | ||
libboost-system-dev \ | ||
libeigen3-dev \ | ||
libflann-dev \ | ||
libfreeimage-dev \ | ||
libmetis-dev \ | ||
libgoogle-glog-dev \ | ||
libgtest-dev \ | ||
libgmock-dev \ | ||
libsqlite3-dev \ | ||
libglew-dev \ | ||
qtbase5-dev \ | ||
libqt5opengl5-dev \ | ||
libcgal-dev | ||
|
||
# Installing COLMAP version 3.8 | ||
git clone --recursive -b 3.8 https://github.com/colmap/colmap colmap_v3.8 --depth=1 | ||
cd colmap_v3.8 | ||
cmake -S . -B build -DCMAKE_CUDA_ARCHITECTURES=all | ||
cmake --build build --target install -- -j$(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,20 @@ | ||
# Create a directory for all the dependencies | ||
mkdir external | ||
cd external | ||
root_folder=$(realpath $(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/..) | ||
source ${root_folder}/scripts/load_env.sh | ||
|
||
####################### | ||
## Installing Ceres-Solver with tag 2.1.0 | ||
## Check webpage https://ceres-solver.googlesource.com/ceres-solver/+/refs/tags/2.1.0 for more details | ||
git clone --no-checkout https://ceres-solver.googlesource.com/ceres-solver ceres_v2.1.0 | ||
cd ceres_v2.1.0 | ||
git checkout f68321e7de8929fbcdb95dd42877531e64f72f66 | ||
# Comment this line out if you want to use it inside docker. | ||
# apt-get update && apt-get install -y --no-install-recommends --no-install-suggests git python3 python3-dev python3-pip python-is-python3 sudo | ||
|
||
# Installing system-wide dependencies for Ceres | ||
# Commands from http://ceres-solver.org/installation.html | ||
echo "Installing system-wide dependencies cmake build-essential libgoogle-glog-dev libgflags-dev libatlas-base-dev libeigen3-dev libsuitesparse-dev" | ||
sudo apt-get install cmake libgoogle-glog-dev libgflags-dev libatlas-base-dev libeigen3-dev libsuitesparse-dev build-essential | ||
# Create external folder. | ||
mkdir ${root_folder}/external && cd ${root_folder}/external | ||
|
||
mkdir build | ||
cd build | ||
cmake .. | ||
make -j4 | ||
sudo make install | ||
cd .. # exit build folder | ||
cd .. # Exiting ceres_v2.1.0 | ||
# Ceres Solver. | ||
sudo ${root_folder}/scripts/install_ceres_solver.sh | ||
|
||
# Colmap. | ||
sudo ${root_folder}/scripts/install_colmap.sh | ||
|
||
####################### | ||
## Installing COLMAP version 3.8 | ||
git clone https://github.com/colmap/colmap colmap_v3.8 | ||
cd colmap_v3.8 | ||
git checkout 3.8 | ||
git submodule update --init --recursive | ||
# HLoc. | ||
python3 -m pip install git+https://github.com/cvg/[email protected] | ||
|
||
# # Installation instructions from https://colmap.github.io/install.html#build-from-source | ||
echo "Installing system-wide dependencies | ||
ninja-build \ | ||
libboost-program-options-dev \ | ||
libboost-filesystem-dev \ | ||
libboost-graph-dev \ | ||
libboost-system-dev \ | ||
libeigen3-dev \ | ||
libflann-dev \ | ||
libfreeimage-dev \ | ||
libmetis-dev \ | ||
libgoogle-glog-dev \ | ||
libgtest-dev \ | ||
libgmock-dev \ | ||
libsqlite3-dev \ | ||
libglew-dev \ | ||
qtbase5-dev \ | ||
libqt5opengl5-dev \ | ||
libcgal-dev \ " | ||
sudo apt-get install \ | ||
ninja-build \ | ||
libboost-program-options-dev \ | ||
libboost-filesystem-dev \ | ||
libboost-graph-dev \ | ||
libboost-system-dev \ | ||
libeigen3-dev \ | ||
libflann-dev \ | ||
libfreeimage-dev \ | ||
libmetis-dev \ | ||
libgoogle-glog-dev \ | ||
libgtest-dev \ | ||
libgmock-dev \ | ||
libsqlite3-dev \ | ||
libglew-dev \ | ||
qtbase5-dev \ | ||
libqt5opengl5-dev \ | ||
libcgal-dev \ | ||
|
||
mkdir build | ||
cd build | ||
cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=all | ||
ninja | ||
sudo ninja install | ||
|
||
cd .. # exit build folder | ||
cd .. # exit colmap_v3.8 | ||
|
||
####################### | ||
## Installing HLOC version 1.4 | ||
git clone --recursive https://github.com/cvg/Hierarchical-Localization/ hloc_v1.4 | ||
cd hloc_v1.4 | ||
git checkout v1.4 | ||
git submodule update --init --recursive | ||
|
||
# installing | ||
echo "Installing hloc...." | ||
python -m pip install -e . | ||
|
||
cd .. # exit hloc_v1.4 folder | ||
|
||
### Installing pyceres version 1.0 | ||
git clone https://github.com/cvg/pyceres.git pyceres_v1.0 | ||
cd pyceres_v1.0 | ||
git checkout v1.0 | ||
git submodule update --init --recursive | ||
|
||
# installing pyceres | ||
python -m pip install . | ||
cd .. # exit pyceres | ||
# Pyceres. | ||
python3 -m pip install git+https://github.com/cvg/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
PS4='\033[1;96m$(date "+%Y%m%d %H:%M:%S.%N") $BASH_SOURCE:$LINENO]\033[0m ' | ||
# PS4='\033[1;96m$(date +%H:%M:%S)\033[0m ' | ||
|
||
PS4='\033[0;32m$(date "+%Y%m%d %H:%M:%S.%N") $BASH_SOURCE:$LINENO]\033[0m ' | ||
set -euxo pipefail |