forked from GaloisInc/pixhawk-proxy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSETUP.sh
executable file
·42 lines (34 loc) · 1.57 KB
/
SETUP.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
41
42
#!/bin/bash
# Install a few random packages.
# curl used below to pull install scripts from web
# build-essential Installs make, g++, gcc
# clang-format Formats generated protobuf files
# meson Creates build scripts for ninja
# ninja Builds UxAS
# ant Builds java Apps
# rustc Rust support for a couple repos.
sudo apt install -y curl
sudo apt install -y build-essential
sudo apt install -y clang-format
sudo apt install -y meson
sudo apt install -y ninja
sudo apt install -y ant
# Only run this one once. It will warn you before running twice that second runs
# may mess it up.
curl -sSL http://get.gazebosim.org | sh
# Install rustup with will provide rust and utilities.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > install_rust.sh
bash install_rust.sh --default-toolchain stable --profile default -y
rm install_rust.sh
# rustc, rustup & cargo are in ~/.profile but we'd need to log in again to get it sourced.
# So, just manually source profile. Note: this will be required for every terminal if you want
# to use rust until you've logged out and in.
source ~/.profile
# Must be nightly because developer used features only availible in the nightly branch
# NOTE: Nightly features either make it into the main rust branch or they are dropped.
# If the rust programs can't compile at a later date it may be that the features
# he used were dropped rather than integrated into the stable Rust release.
rustup install nightly
rustup default nightly
rustup update nightly
#bash pixhawk-proxy/build_stuff.sh