-
Notifications
You must be signed in to change notification settings - Fork 1
/
ODROID_INSTALL.sh
executable file
·31 lines (31 loc) · 1.67 KB
/
ODROID_INSTALL.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
sudo apt update
sudo apt -y install git python3-pip python3-setuptools mercurial python3-dev python3-numpy libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libportmidi-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libportmidi-dev libfreetype6-dev libconfuse-dev libboost-all-dev libusb-1.0-0-dev doxygen swig python3-opencv v4l-utils
cd /home/odroid/Documents
hg clone https://bitbucket.org/pygame/pygame
cd pygame
python3 setup.py build
sudo python3 setup.py install
sudo -H pip3 install Adafruit-GPIO
cd /home/odroid/Documents
wget https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.3.tar.bz2
tar xvf libftdi1-1.3.tar.bz2
cd libftdi1-1.3
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr/" -DPYTHON_INCLUDE_DIR="/usr/include/python3.6" -DPYTHON_LIBRARIES="/usr/lib/python3.6/" ../
make
sudo make install
sudo -H pip3 install Adafruit-blinka
sudo -H pip3 install Adafruit-PCA9685
sudo mv /usr/local/lib/python3.6/dist-packages/Adafruit-GPIO/FT232H.py /usr/local/lib/python3.6/dist-packages/Adafruit-GPIO/FT232H.py.old
sudo rm /usr/local/lib/python3.6/dist-packages/Adafruit-GPIO/FT232H.py
sudo curl https://gist.githubusercontent.com/BlueNalgene/f2324cbb7bd9b3060b46ebcaaf7d8a15/raw/4a5fdfc4f0a064d2b7a8a75724b49a78662af108/gistfile1.txt > /usr/local/lib/python3.6/dist-packages/Adafruit-GPIO/FT232H.py
cd /home/odroid/Documents
git clone --recursive https://github.com/hardkernel/WiringPi2-Python
cd WiringPi2-Python
sudo python3 setup.py install
cd ../
sudo rm -r /home/odroid/Documents/libftdi1-1.3
sudo rm -r /home/odroid/Documents/pygame
sudo rm -r /home/odroid/Documents/WiringPi2-Python
rm /home/odroid/Documents/libftdi1-1.3.tar.bz2