forked from groupgets/purethermal1-uvc-capture
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild_nano_thermal_app.sh
49 lines (39 loc) · 1.3 KB
/
build_nano_thermal_app.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
#!/usr/bin/env bash
install_thermal_dependencies(){
echo "updating system."
sudo apt-get update
sudo apt-get dist-upgrade -y --autoremove
echo "Installing thermal dependencies."
sudo apt-get install -y python3-pyqt5
sudo apt-get install -y python3-h5py
sudo apt-get install -y python3-psutil
sudo apt-get install -y python3-matplotlib
sudo apt-get install -y python-opencv
sudo apt-get install -y libatlas-base-dev
sudo apt-get install -y libjasper-dev
sudo apt-get install -y libqtgui4
sudo apt-get install -y libqt4-test
sudo apt-get install -y python3-pip
sudo pip3 install --no-cache-dir tifffile
}
install_thermal_app(){
echo "Installing and building thermal app."
git clone https://github.com/Kheirlb/purethermal1-uvc-capture.git
cd purethermal1-uvc-capture
cd ui_software
git clone https://github.com/groupgets/libuvc
sudo apt-get install cmake
cd libuvc
mkdir build
cd build
cmake ..
make && sudo make install
sudo ldconfig -v
cd ../..
sudo sh -c "echo 'SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"1e4e\", ATTRS{idProduct}==\"0100\", SYMLINK+=\"pt1\", GROUP=\"usb\", MODE=\"666\"' > /etc/udev/rules.d/99-pt1.rules"
}
main () {
install_thermal_dependencies
install_thermal_app
}
main "$@"