-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathinstall_deps.sh
More file actions
executable file
·40 lines (37 loc) · 882 Bytes
/
Copy pathinstall_deps.sh
File metadata and controls
executable file
·40 lines (37 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
# Install Eigen
eigen_version="3.3.7"
wget --no-check-certificate https://bitbucket.org/eigen/eigen/get/$eigen_version.tar.bz2
tar -xf $eigen_version.tar.bz2
mv eig* eigen
mkdir eigen/build_dir
cd eigen/build_dir
cmake ..
sudo make install
cd ../../
rm -rf eigen/ $eigen_version.tar.bz2
# Install Ceres
ceres_version="ceres-solver-1.14.0"
sudo apt-get -y install cmake
sudo apt-get -y install libgoogle-glog-dev
sudo apt-get -y install libatlas-base-dev
sudo apt-get -y install libsuitesparse-dev
wget http://ceres-solver.org/$ceres_version.tar.gz
tar zxf $ceres_version.tar.gz
rm $ceres_version.tar.gz
mkdir ceres-bin
cd ceres-bin
cmake ../$ceres_version
make
sudo make install
cd ..
rm -rf $ceres_version/ ceres-bin/
# Install CppAD
git clone https://github.com/coin-or/CppAD.git cppad
cd cppad
mkdir build
cd build/
cmake ..
sudo make install
cd ../../
rm -rf cppad/