TerraLib and TerraView Wiki Page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
wiki:documentation:devguide:dependencies [2020/10/16 19:28]
marisa [Mac OS X]
wiki:documentation:devguide:dependencies [2020/10/22 23:18] (current)
marisa *
Line 70: Line 70:
 We have prepared some special shell scripts for building and installing the dependencies on specific platforms. Check the [[http://​www.dpi.inpe.br/​terralib5/​wiki/​doku.php?​id=wiki:​documentation:​devguide:​src_organization |source code structure]] and find the shell script files under //​**install**// ​ folder. We have prepared some special shell scripts for building and installing the dependencies on specific platforms. Check the [[http://​www.dpi.inpe.br/​terralib5/​wiki/​doku.php?​id=wiki:​documentation:​devguide:​src_organization |source code structure]] and find the shell script files under //​**install**// ​ folder.
  
-====  Linux Ubuntu 18.04 and 16.04 ====+====  Linux Ubuntu 18.04 with Qt 5.12.7 ==== 
 + 
 +The Linux Ubuntu bash script can be found in TerraLib source tree under //​**install**//​ folder. 
 + 
 +Follow these steps if you are working on **'​develop'​** branch: 
 +  * Download the third-party libraries package used by the development team:  
 +    * [[http://​www.dpi.inpe.br/​terralib5-devel/​3rdparty/​src/​terralib-3rdparty-linux-ubuntu-18.04.tar.gz|terralib-3rdparty-linux-ubuntu-18.04.tar.gz]]. 
 + 
 +  * Copy the script (from your local codebase folder) to the same folder you have downloaded the 3rdparty package: 
 +    * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​develop/​install/​install-3rdparty-linux-generic.sh|install-3rdparty-linux-generic.sh]]** (use this script if terralib version is >=  5.5.2) 
 + 
 +Follow these steps if you are working on **'​release-5.y'​** branch: 
 +  * Download the source code of all third-party libraries from the correct subdirectory named 5.y: 
 +    * [[http://​www.dpi.inpe.br/​terralib5-devel/​3rdparty/​src|choose 5.y dir]] and download terralib-3rdparty-linux-ubuntu-18.04.tar.gz. 
 + 
 +Copy the scripts (from your local codebase folder) to the same folder you have downloaded the 3rdparty package: 
 +    * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​release-5.5/​install/​install-3rdparty-linux-generic.sh|install-3rdparty-linux-generic.sh]]** (use this script if terralib version is >=  5.5.2) 
 + 
 + 
 +Open the shell command line and call the script **install-3rdparty-linux-generic.sh** setting the target to install all the stuffs from these third-party libraries and tools: 
 +<code bash> 
 + 
 +:: Compile 3rdparty for terralib version >= 5.5.2 and generate them in TERRALIB_DEPENDENCIES_DIR using the script "​install-3rdparty-linux-generic.sh"​ 
 +$> TERRALIB_DEPENDENCIES_DIR="/​home/​user/​mylibs"​ PATH=/​home/​user/​Qt/​5.12.3/​gcc_64/​bin/:​$PATH ./​install-3rdparty-linux-generic.sh 
 +:: Sometimes it is necessary to add QT5_BASE_DIR variable before, in this case use the command below 
 +$> QT5_BASE_DIR="/​home/​user/​Qt/"​ TERRALIB_DEPENDENCIES_DIR="/​home/​user/​mylibs"​ PATH=/​home/​user/​Qt/​5.12.3/​gcc_64/​bin/:​$PATH ./​install-3rdparty-linux-generic.sh 
 + 
 +</​code>​ 
 + 
 +**Warning:​** Don't choose as target location a system folder such as //​**/​usr**//​ or //​**/​usr/​local**//​. Try some user specific folder. The best suggestion is to replace the folder named //​**user**//​ by your user name. 
 + 
 +=== Known issues related with Linux Ubuntu 18.04 with Qt 5.12.7 === 
 + 
 +You might need to install the right version of some stuffs in order to get the 3rdparty generated.  
 +For example, if you get this error msg,"​Cannot find a C++ compiler supporting C++11 on this system":​ 
 + 
 +  * Download and compile CMake from https://​cmake.org/​download/​ (the native one is not enough) 
 + 
 +Others stuffs needed on Ubuntu because of cmake: 
 +  * sudo apt-get install build-essential 
 +  * sudo apt-get install build-essential 
 +  * sudo apt-get install zlib1g-dev 
 + 
 +Others stuffs needed on Ubuntu in order to generate terralib 3rdparty: 
 +  * sudo apt-get install curl 
 +  * sudo apt-get install libcurl4-openssl-dev 
 +  * sudo apt-get install libssl-dev 
 +  * sudo apt-get install libreadline-dev 
 +  * sudo apt-get install bison flex 
 +  * sudo apt install libgl1-mesa-dev 
 + 
 +====  Linux Ubuntu 18.04 and 16.04 (terralib version <= 5.5.1)====
  
 The Linux Ubuntu bash script can be found in TerraLib source tree under //​**install**//​ folder. The Linux Ubuntu bash script can be found in TerraLib source tree under //​**install**//​ folder.
Line 80: Line 131:
  
   * Copy one of the scripts (from your local codebase folder) to the same folder you have downloaded the 3rdparty package:   * Copy one of the scripts (from your local codebase folder) to the same folder you have downloaded the 3rdparty package:
-    * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​develop/​install/​install-3rdparty-linux-generic.sh|install-3rdparty-linux-generic.sh]]** (use this script if terralib version is >=  5.5.2) 
     * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​develop/​install/​install-3rdparty-linux-ubuntu-18.04.sh|install-3rdparty-linux-ubuntu-18.04.sh]]**     * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​develop/​install/​install-3rdparty-linux-ubuntu-18.04.sh|install-3rdparty-linux-ubuntu-18.04.sh]]**
     * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​develop/​install/​install-3rdparty-linux-ubuntu-16.04.sh|install-3rdparty-linux-ubuntu-16.04.sh]]**     * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​develop/​install/​install-3rdparty-linux-ubuntu-16.04.sh|install-3rdparty-linux-ubuntu-16.04.sh]]**
Line 90: Line 140:
  
 Copy one of the scripts (from your local codebase folder) to the same folder you have downloaded the 3rdparty package: Copy one of the scripts (from your local codebase folder) to the same folder you have downloaded the 3rdparty package:
-    * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​release-5.5/​install/​install-3rdparty-linux-generic.sh|install-3rdparty-linux-generic.sh]]** (use this script if terralib version is >=  5.5.2) 
     * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​release-5.5/​install/​install-3rdparty-linux-ubuntu-18.04.sh|install-3rdparty-linux-ubuntu-18.04.sh]]**     * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​release-5.5/​install/​install-3rdparty-linux-ubuntu-18.04.sh|install-3rdparty-linux-ubuntu-18.04.sh]]**
     * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​release-5.4/​install/​install-3rdparty-linux-ubuntu-16.04.sh|install-3rdparty-linux-ubuntu-16.04.sh]]**     * **[[https://​gitlab.dpi.inpe.br/​terralib/​terralib/​blob/​release-5.4/​install/​install-3rdparty-linux-ubuntu-16.04.sh|install-3rdparty-linux-ubuntu-16.04.sh]]**
Line 96: Line 145:
 Open the shell command line and call the script **install-3rdparty-linux-ubuntu-18.04.sh** (or the Ubuntu 16.04 one) setting the target to install all the stuffs from these third-party libraries and tools: Open the shell command line and call the script **install-3rdparty-linux-ubuntu-18.04.sh** (or the Ubuntu 16.04 one) setting the target to install all the stuffs from these third-party libraries and tools:
 <code bash> <code bash>
-$ TERRALIB_DEPENDENCIES_DIR="/​home/​user/​mylibs"​ ./​install-3rdparty-linux-generic.sh (use this script if terralib version is >=  5.5.2) + 
-$ TERRALIB_DEPENDENCIES_DIR="/​home/​user/​mylibs"​ ./​install-3rdparty-linux-ubuntu-18.04.sh+:: For terralib version < 5.5.2 use: 
 +$TERRALIB_DEPENDENCIES_DIR="/​home/​user/​mylibs"​ ./​install-3rdparty-linux-ubuntu-18.04.sh 
 +$TERRALIB_DEPENDENCIES_DIR="/​home/​user/​mylibs"​ ./​install-3rdparty-linux-ubuntu-16.04.sh
 </​code>​ </​code>​