-
Notifications
You must be signed in to change notification settings - Fork 3
/
installation.sh
executable file
·20 lines (19 loc) · 784 Bytes
/
installation.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
########################
## Please make sure that bin/bash is the location of your bash terminal, if not please replace with your local machine's bash path
## Installation script for cortex.
## This script is created to be downloaded indenendently and used
## like this: curl -o- -L https://raw.githubusercontent.com/robocomp/cortex/development/installation.sh | bash -x
## This will install all the cortex dependencies and the library itself. You can read this script and dependencies.sh to better know what is done.
#######################
branch="${1:-development}"
set -e
git clone --branch $branch https://github.com/robocomp/cortex.git
cd cortex
yes | bash dependencies.sh
mkdir -p build
cd build
cmake ..
make -j$(nproc --ignore=1)
sudo make install
sudo ldconfig