forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_deps.sh
executable file
·71 lines (64 loc) · 1.74 KB
/
install_deps.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env bash
# this script installs build dependencies for compiling OpenCV
set -e -x
ARCH=$(uname -i)
echo "ARCH: $ARCH"
if [ $(lsb_release --codename --short) != "jammy" ]; then
EXTRAS="libavresample-dev libdc1394-22-dev"
fi
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
gfortran \
cmake \
git \
file \
tar \
libatlas-base-dev \
libavcodec-dev \
libavformat-dev \
libcanberra-gtk3-module \
libeigen3-dev \
libglew-dev \
libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-good1.0-dev \
libgstreamer1.0-dev \
libgtk-3-dev \
libjpeg-dev \
libjpeg8-dev \
libjpeg-turbo8-dev \
liblapack-dev \
liblapacke-dev \
libopenblas-dev \
libpng-dev \
libpostproc-dev \
libswscale-dev \
libtbb-dev \
libtbb2 \
libtesseract-dev \
libtiff-dev \
libv4l-dev \
libxine2-dev \
libxvidcore-dev \
libx264-dev \
libgtkglext1 \
libgtkglext1-dev \
pkg-config \
qv4l2 \
v4l-utils \
zlib1g-dev \
$EXTRAS
# on x86, the python dev packages are already installed in the NGC containers under conda
# and installing them again from apt messes up their proper detection, so skip doing that
# these are needed however on other platforms (like aarch64) in order to build opencv-python
if [ $ARCH != "x86_64" ]; then
echo "detected $ARCH, installing python3 dev packages..."
apt-get install -y --no-install-recommends \
python3-pip \
python3-dev \
python3-numpy \
python3-distutils \
python3-setuptools
fi
rm -rf /var/lib/apt/lists/*
apt-get clean