-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
53 lines (47 loc) · 1.18 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# check if the installation is done for the first time
if [ ! -d "tmp" ]; then
echo "BRAKE is already installed on this device."
echo -e "To rebuild the app, use the following commands:\n"
echo -e "cd build\ncmake..\nmake\n"
echo "Otherwise, consider recloning the repo."
exit
fi
# check if openssl is installed
if ! command -v openssl &> /dev/null
then
echo "openssl could not be found"
echo "please install it"
# TODO install it
exit
fi
echo "openssl already installed"
# install thimble lib
cd tmp
git clone https://github.com/atxr/thimble
cd thimble
make
sudo make install
cd ..
# install fjfx lib
git clone https://github.com/jerem/FingerJetFXOSE
cd FingerJetFXOSE/FingerJetFXOSE
./runCMake.sh x64
sudo mkdir /usr/local/include/fjfx/
sudo cp libFJFX/include/FJFX.h libFRFXLL/include/FRFXLL* /usr/local/include/fjfx/
cd build/Linux-x86_64/x64
make
cd ../../../dist/Linux-x86_64/x64/
sudo cp libFRFXLL_static.a /usr/local/lib/libFRFXLL.a
sudo cp libFJFX_static.a /usr/local/lib/libFJFX.a
cd ../../../../../
sudo mv fjfx_all.h /usr/local/include/fjfx/all.h
# clean installation
cd ..
sudo rm -r tmp
# build the app
mkdir build
cd build
cmake ..
make
cd ..