-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_all_mac_venv.sh
More file actions
executable file
·63 lines (49 loc) · 1.93 KB
/
Copy pathinstall_all_mac_venv.sh
File metadata and controls
executable file
·63 lines (49 loc) · 1.93 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
#N.B: this install script allows you to run main_slam.py and all the scripts
# ====================================================
# import the utils
. bash_utils.sh
# ====================================================
#set -e
# clean the old .env file if it exists
if [ -f "$ROOT_DIR/.env" ]; then
rm "$ROOT_DIR/.env"
fi
# NOTE: in order to detect macOS use:
# if [[ "$OSTYPE" == "darwin"* ]]; then
# fi
# install required packages
brew update
brew install wget
brew install doxygen
brew install eigen
#brew install opencv
brew install glew
brew install pkg-config
brew install suite-sparse
brew install pyenv
brew install zlib bzip2
brew install rsync
brew install readline
brew install pyenv
brew install libomp # need to add -L/opt/homebrew/opt/libomp/lib -I/opt/homebrew/opt/libomp/include
brew install boost # for serialization
brew install tmux
brew install flann
brew install catch2
#brew install numpy
#brew install open3d # built from source for different issues
brew install x265 libjpeg libde265 libheif # for pillow-heif
# create a pyslam environment within pyenv and activate it
./pyenv-mac-create.sh # NOTE: the use of ./ seems crucial for the correct identification of the python libs for C++ projects
# activate the created python virtual environment
. pyenv-activate.sh
export WITH_PYTHON_INTERP_CHECK=ON # in order to detect the correct python interpreter
# some unresolved dep conflict found in requirement-pip3.txt may be managed by the following command:
. install_pip3_packages.sh
# set up git submodules (we need to install gdown before this)
./install_git_modules.sh
# build and install cpp stuff
. install_cpp.sh # use . in order to inherit python env configuration and other environment vars
# build and install thirdparty
. install_thirdparty.sh # use . in order to inherit python env configuration and other environment vars