forked from dji-sdk/Tello-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux_install.sh
More file actions
43 lines (33 loc) · 1 KB
/
linux_install.sh
File metadata and controls
43 lines (33 loc) · 1 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
#!/bin/sh
echo 'Compiling and Installing the Tello Video Stream module'
echo 'You might need to enter your password'
cd ..
cd ..
sudo apt-get update -y
# install python 2.7
sudo apt-get install python2.7 python-pip -y
sudo pip install --upgrade pip
#switch to python2.7
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 150
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 100
sudo apt-get update -y
# install cmake
#sudo apt-get install cmake -y
sudo pip install cmake
# install dependencies
sudo apt-get install libboost-all-dev -y
sudo apt-get install libavcodec-dev -y
sudo apt-get install libswscale-dev -y
sudo apt-get install python-numpy -y
sudo apt-get install python-matplotlib -y
sudo pip install opencv-python
sudo apt-get install python-imaging-tk
# pull and build h264 decoder library
cd h264decoder
mkdir build
cd build
cmake ..
make
# copy source .so file to tello.py directory
cp libh264decoder.so ../../
echo 'Compilation and Installation Done!'