forked from iamaisim/ProjectAirSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_linux_dev_tools.sh
More file actions
executable file
·45 lines (39 loc) · 1.54 KB
/
setup_linux_dev_tools.sh
File metadata and controls
executable file
·45 lines (39 loc) · 1.54 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
#!/bin/bash
# Copyright (C) Microsoft Corporation.
# Copyright (C) 2025 IAMAI CONSULTING CORP
# MIT License.
set -e
sudo apt-get update
# Install lsb_release to check Ubuntu version
sudo apt-get -y install --no-install-recommends lsb-release
if [[ $(lsb_release -rs) == "18.04" ]]; then
# Add Kitware's APT repository to get cmake 3.15 or newer on Ubuntu 18.04 following https://apt.kitware.com/
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
gnupg \
software-properties-common \
wget
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
# Add LLVM APT repository to get clang-11/libc++-11 on Ubuntu 18.04
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository 'deb http://apt.llvm.org/bionic llvm-toolchain-bionic-11 main'
fi
if [[ $(lsb_release -rs) == "20.04" ]]; then
sudo apt-get -y install software-properties-common
# Add Ubuntu proposed main and universe repositories to get clang-13/libc++-13 on Ubuntu 20.04
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu/ focal-proposed main universe"
fi
# Install prerequisites
sudo apt-get -y install --no-install-recommends \
build-essential \
rsync \
make \
cmake \
clang-13 \
libc++-13-dev \
libc++abi-13-dev \
ninja-build \
libvulkan1 \
vulkan-tools