-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from qlands/master
Several fixes
- Loading branch information
Showing
9 changed files
with
162 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
#ODK Tools - Installation script tested in Ubuntu server 16.04 and 18.04 | ||
|
||
sudo apt-get update | ||
sudo apt-get install build-essential qt5-default qtbase5-private-dev qtdeclarative5-dev cmake mongodb jq libboost-all-dev unzip zlib1g-dev automake | ||
sudo apt-get install build-essential qt5-default qtbase5-private-dev qtdeclarative5-dev cmake mongodb jq libboost-all-dev unzip zlib1g-dev automake npm | ||
|
||
cd /opt | ||
sudo git clone https://github.com/qlands/odktools.git | ||
sudo mkdir odktools-deps | ||
cd odktools-deps | ||
sudo wget --user=[GitHub-user] --ask-password https://github.com/mongodb/mongo-c-driver/releases/download/1.6.1/mongo-c-driver-1.6.1.tar.gz | ||
sudo wget --user=[GitHub-user] --ask-password https://github.com/open-source-parsers/jsoncpp/archive/1.8.4.tar.gz | ||
**Download in your local machine Quazip from https://sourceforge.net/projects/quazip/files/latest/download | ||
** In your local machine do: scp -i [path/to/pem.key] [path/to/]quazip-0.7.3.tar.gz [email protected]/home/ubuntu | ||
sudo wget --user=[GitHub-user] --ask-password https://github.com/jmcnamara/libxlsxwriter/archive/RELEASE_0.7.6.tar.gz | ||
sudo wget https://downloads.sourceforge.net/project/quazip/quazip/0.7.3/quazip-0.7.3.tar.gz | ||
sudo git clone https://github.com/rgamble/libcsv.git | ||
|
||
sudo tar xvfz mongo-c-driver-1.6.1.tar.gz | ||
cd mongo-c-driver-1.6.1 | ||
sudo ./configure | ||
sudo make | ||
sudo make install | ||
cd .. | ||
|
||
sudo tar xvfz 1.8.4.tar.gz | ||
cd jsoncpp-1.8.4 | ||
sudo mkdir build | ||
|
@@ -23,39 +28,55 @@ sudo cmake .. | |
sudo make | ||
sudo make install | ||
cd ../.. | ||
sudo tar xvfz ~/quazip-0.7.3.tar.gz | ||
|
||
sudo tar xvfz quazip-0.7.3.tar.gz | ||
cd quazip-0.7.3 | ||
sudo mkdir build | ||
cd build | ||
sudo cmake -DCMAKE_C_FLAGS:STRING="-fPIC" -DCMAKE_CXX_FLAGS:STRING="-fPIC" .. | ||
sudo make | ||
sudo make install | ||
cd ../.. | ||
|
||
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.5 | ||
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/dependencies/mongo-cxx-driver-r3.1.1 | ||
sudo mkdir build | ||
cd build | ||
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 ../.. | ||
|
||
json2csv-cpp | ||
sudo qmake | ||
sudo make | ||
sudo cp json2csv /usr/bin | ||
cd ../../ | ||
git submodule update --init --recursive | ||
|
||
sudo git submodule update --init --recursive | ||
cd 3rdparty/qjson | ||
sudo mkdir build | ||
cd build | ||
sudo cmake .. | ||
sudo make | ||
sudo make install | ||
cd ../../.. | ||
|
||
sudo qmake | ||
sudo make | ||
sudo make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.