forked from borglab/gtsam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD_GTSAM_NO_PYTHON.sh
executable file
·40 lines (32 loc) · 1.27 KB
/
BUILD_GTSAM_NO_PYTHON.sh
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/bash
# Script to build gtsam with MATLAB interface in GNU/Linux systems
# Note: this script assumes to be in the "gtsam" root folder.
# Install dependencies
sudo apt-get update
sudo apt-get install libboost1.74-all-dev cmake libtbb-dev -y
#sudo apt-get install libboost-all-dev cmake libtbb-dev -y
# NEED TO ADD IF "not installed" for the following:
sudo apt-get install python3-pip -y
sudo apt-get install python-is-python3 -y
pip install pyparsing numpy
sudo apt-get install libeigen3-dev -y
buildpath="build"
if [ -d $buildpath ]; then
sudo rm -r build/
fi
# ADD check to see if in build else throw error
export CC=/usr/bin/gcc-11
export CXX=/usr/bin/g++-11
# Generate makefiles with verbose output log
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DGTSAM_BUILD_UNSTABLE:OPTION=OFF -DGTSAM_BUILD_CONVENIENCE_LIBRARIES:OPTION=ON \
-DGTSAM_BUILD_PYTHON=OFF -DGTSAM_INSTALL_MATLAB_TOOLBOX=ON \
-DGTSAM_WITH_TBB=ON \
-DGTSAM_WITH_EIGEN_MKL=OFF\
-DGTSAM_UNSTABLE_BUILD_PYTHON=OFF
# -DCMAKE_VERBOSE_MAKEFILE=ON . |& tee CMAKE_OUTPUT_LOG.txt ..
cd build
# Build and install (system-wide)
sudo make check -j4 # |& tee MAKE_CHECK_OUTPUT_LOG.txt
sudo make install -j4 # |& tee MAKE_INSTALL_OUTPUT_LOG.txt
#make python-install -j4