-
Notifications
You must be signed in to change notification settings - Fork 16
/
AWS_build_script.txt
84 lines (67 loc) · 2.55 KB
/
AWS_build_script.txt
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
72
73
74
75
76
77
78
79
80
81
82
83
84
#ODK Tools - Installation script tested in Ubuntu server 20.04
sudo add-apt-repository universe
sudo add-apt-repository multiverse
sudo apt-get update
sudo apt-get install build-essential qt5-default qtbase5-private-dev qtdeclarative5-dev libqt5sql5-mysql libqt5sql5-sqlite cmake mongodb jq libboost-all-dev unzip zlib1g-dev automake npm sqlite3 libqt5sql5-sqlite golang-go
sudo wget https://dev.mysql.com/get/mysql-apt-config_0.8.17-1_all.deb
sudo dpkg -i ./mysql-apt-config_0.8.17-1_all.deb
sudo apt-get update
sudo apt-get install mysql-shell
cd /opt
sudo wget https://github.com/BurntSushi/xsv/releases/download/0.13.0/xsv-0.13.0-x86_64-unknown-linux-musl.tar.gz
cd /bin
sudo tar xvfz /opt/xsv-0.13.0-x86_64-unknown-linux-musl.tar.gz
cd /opt
sudo git clone https://github.com/qlands/csv2xlsx.git
cd csv2xlsx
sudo go build
sudo cp csv2xlsx /bin
sudo git clone https://github.com/qlands/odktools.git
sudo mkdir odktools-deps
cd odktools-deps
sudo wget https://github.com/mongodb/mongo-c-driver/releases/download/1.21.1/mongo-c-driver-1.21.1.tar.gz
sudo wget https://github.com/mongodb/mongo-cxx-driver/releases/download/r3.6.7/mongo-cxx-driver-r3.6.7.tar.gz
sudo wget https://github.com/jmcnamara/libxlsxwriter/archive/refs/tags/RELEASE_1.1.4.tar.gz
sudo wget https://github.com/stachenov/quazip/archive/refs/tags/v1.3.tar.gz
sudo git clone https://github.com/rgamble/libcsv.git
sudo tar xvfz mongo-c-driver-1.21.1.tar.gz
cd /opt/odktools-deps/mongo-c-driver-1.21.1
sudo mkdir build_here
cd /opt/odktools-deps/mongo-c-driver-1.21.1/build_here
sudo cmake ..
sudo make
sudo make install
cd /opt/odktools-deps
sudo tar xvfz mongo-cxx-driver-r3.6.7.tar.gz
cd /opt/odktools-deps/mongo-cxx-driver-r3.6.7
sudo mkdir build_here
cd /opt/odktools-deps/mongo-cxx-driver-r3.6.7/build_here
sudo cmake -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DBSONCXX_POLY_USE_BOOST=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
sudo make
sudo make install
cd /opt/odktools-deps
sudo tar xvfz v1.3.tar.gz
cd /opt/odktools-deps/quazip-1.3
sudo mkdir build
cd /opt/odktools-deps/quazip-1.3/build
sudo cmake -DCMAKE_C_FLAGS:STRING="-fPIC" -DCMAKE_CXX_FLAGS:STRING="-fPIC" ..
sudo make
sudo make install
cd /opt/odktools-deps
sudo ln -s /usr/bin/aclocal-1.15 /usr/bin/aclocal-1.14
sudo ln -s /usr/bin/automake-1.15 /usr/bin/automake-1.14
sudo tar xvfz RELEASE_0.7.6.tar.gz
cd libxlsxwriter-RELEASE_0.7.6
sudo mkdir build
cd build
sudo cmake ..
sudo make
sudo make install
cd ../..
cd libcsv
sudo ./configure
sudo make
sudo make install
cd /opt/odktools
sudo qmake
sudo make