Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
geodma_2:build_inst [2017/06/14 10:13]
raian [External Dependencies]
geodma_2:build_inst [2018/10/03 16:42]
raian [TerraLib 5.X (ref. release-5.2)]
Line 7: Line 7:
 == Mandatory ==  == Mandatory == 
    * CMake 3.X (https://​cmake.org/​)    * CMake 3.X (https://​cmake.org/​)
-   * TerraLib 5.X (http://​www.dpi.inpe.br/​terralib5) +   * TerraLib 5.4.X (http://​www.dpi.inpe.br/​terralib5) 
-   * Qt 5.X (5.4.2 with opengl ​recomended - https://​download.qt.io/​archive/qt/5.4/5.4.2/)+   * Qt 5.10.X (5.10.1  ​recomended - https://​download.qt.io/​official_releases/qt/5.10/5.10.1/)
    * CGAL 4.X (http://​www.cgal.org)    * CGAL 4.X (http://​www.cgal.org)
    * Boost 1.58 (In windows, it comes together with TerraLib dependencies)    * Boost 1.58 (In windows, it comes together with TerraLib dependencies)
 +   * C5.0 Decision Trees Library (https://​github.com/​rvmaretto/​c50_decisionTrees)
    * Python 2.7.X (https://​www.python.org) -- **Required** for Code Style checking    * Python 2.7.X (https://​www.python.org) -- **Required** for Code Style checking
  
 == Optional == == Optional ==
-  * Google Test 1.X / Google Mock (https://​github.com/​google/​googletest) -- This dependency is **mandatory** to the tests +  * Google Test 1.X / Google Mock (https://​github.com/​google/​googletest) -- **Mandatory** to the generate unit tests 
-  * Doxygen -- This dependency is **mandatory** to generate code documentation +  * NSIS 3.X -- **Mandatory** to generate installers on Windows environment. 
-  * LaTeX -- **Required** for generating Doxygen code Documentation  +  * Doxygen -- **Mandatory** to generate code documentation 
-  * Ghostscript -- **Required** for generating Doxygen code Documentation+  * LaTeX -- **Mandatory** for generating Doxygen code Documentation  
 +  * Ghostscript -- **Mandatory** for generating Doxygen code Documentation
   * SourceTree Git client for Windows or Mac (recomended)   * SourceTree Git client for Windows or Mac (recomended)
   * SmartGit Git client for Linux (recomended)   * SmartGit Git client for Linux (recomended)
-  * Ms Visual Studio for Windows (2013 recomended)+  * Ms Visual Studio for Windows (2017 recomended)
   * XCode for Mac OSX (recomended)   * XCode for Mac OSX (recomended)
  
Line 29: Line 31:
 Download CMake setup file and install it, adding the cmake command to the PATH environment variable (installer alread has an option to set up this option). Download CMake setup file and install it, adding the cmake command to the PATH environment variable (installer alread has an option to set up this option).
  
-==== Ms Visual Studio (ref. 2013) ====+==== Ms Visual Studio (ref. 2017) ====
  
-In order to build GeoDMA, TerraLib and other dependencies,​ Ms Visual studio will be needed. We strongly recomend to use the 2013 version, once other versions were not tested.+In order to build GeoDMA, TerraLib and other dependencies ​on Windows Environment, Ms Visual studio will be needed. We strongly recomend to use the 2017 version, once other versions were not tested
 + 
 +==== NSIS (ref. 3.01) ==== 
 + 
 +Download NSIS from [[http://​nsis.sourceforge.net/​Download]]. Run the installer.
  
 ==== Python 2.7.X (ref. 2.7.13) ==== ==== Python 2.7.X (ref. 2.7.13) ====
Line 49: Line 55:
 Download Doxygen from [[http://​www.stack.nl/​~dimitri/​doxygen/​download.html]]. Run the installer. We recomend to install it in the default folder //​C:/​Program Files/​doxygen//​. Download Doxygen from [[http://​www.stack.nl/​~dimitri/​doxygen/​download.html]]. Run the installer. We recomend to install it in the default folder //​C:/​Program Files/​doxygen//​.
  
-==== Qt5.X (ref. 5.4.2) ====+==== Qt5.X (ref. 5.10.1) ====
  
-Download Qt setup file and install it. After the installation is finished, add the cmake folder ​from Qt to the PATH environment variable. If you had installed Qt 5.4.the default configurations,​ it will be located at: +Download Qt setup file and install it. After the installation is finished, add the following folders ​from Qt to the PATH environment variable. If you had installed Qt 5.10.the default configurations,​ it will be located at: 
-   C:\Qt\Qt5.4.2\5.4\msvc2013_64_opengl\lib\cmake+   C:/Qt/Qt5.10.1/5.10.1/​msvc2017_64/​lib/​cmake/​Qt5 
 +    
 +   ​C:/​Qt/​Qt5.10.1/​5.10.1/​msvc2017_64/​lib/cmake/​Qt5LinguistTools
  
 ==== TerraLib 5.X (ref. release-5.2) ==== ==== TerraLib 5.X (ref. release-5.2) ====
Line 63: Line 71:
 TerraLib has several external dependencies. For windows, a package with all of them is provided, already compiled with //Ms Visual Studio 2013//. This package can be downloaded through the following URL:  TerraLib has several external dependencies. For windows, a package with all of them is provided, already compiled with //Ms Visual Studio 2013//. This package can be downloaded through the following URL: 
  
-http://​www.dpi.inpe.br/​terralib5-devel/​3rdparty/​bin/​+http://​www.dpi.inpe.br/​terralib5-devel/​3rdparty/​bin/5.4/
  
 Instructions to compile these dependencies in MS Windows, if needed, can be found [[http://​www.dpi.inpe.br/​terralib5/​wiki/​doku.php?​id=wiki:​documentation:​devguide:​dependencies|here]]. Instructions to compile these dependencies in MS Windows, if needed, can be found [[http://​www.dpi.inpe.br/​terralib5/​wiki/​doku.php?​id=wiki:​documentation:​devguide:​dependencies|here]].
Line 118: Line 126:
     - In the field //Target Name//, replace the current value by //​$(ProjectName)d//​     - In the field //Target Name//, replace the current value by //​$(ProjectName)d//​
     - Go to //​Configuration Properties//​ >> //C/C++// >> //Code Generation//​.     - Go to //​Configuration Properties//​ >> //C/C++// >> //Code Generation//​.
-    - In the field //​RuntimeLibrary//,​ change the value to //​Multi-threaded DLL (/MD)// in the Release Configuration and to //​Multi-threaded Debug (/MTd)// in the Debug configuration.+    - In the field //​RuntimeLibrary//,​ change the value to //​Multi-threaded DLL (/MD)// in the Release Configuration and to //​Multi-threaded Debug DLL (/MDd)// in the Debug configuration.
     - Switch the project configuration to Release and repeat the two steps above.     - Switch the project configuration to Release and repeat the two steps above.
   - Build the solution for Debug AND Release. Some errors may occur in the project //​gmock_test//,​ **ignore it**. Warnings can either be ignored.   - Build the solution for Debug AND Release. Some errors may occur in the project //​gmock_test//,​ **ignore it**. Warnings can either be ignored.
Line 152: Line 160:
 and replace the following line: and replace the following line:
   ​   ​
-   ​target_link_libraries(CGAL ${CGAL_3RD_PARTY_LIBRARIES})+   ​target_link_libraries( ​CGAL_Core ​CGAL ${CGAL_3RD_PARTY_LIBRARIES})
        
 by: by:
   ​   ​
-   ​target_link_libraries(CGAL ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})+   ​target_link_libraries( ​CGAL_Core ​CGAL ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})
  
  
Line 188: Line 196:
    ​target_link_libraries( CGAL_Qt5 CGAL ${CGAL_3RD_PARTY_LIBRARIES} ${CGAL_Qt5_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})    ​target_link_libraries( CGAL_Qt5 CGAL ${CGAL_3RD_PARTY_LIBRARIES} ${CGAL_Qt5_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})
  
-Create the folder //​C:/​dev/​CGAL-4.10/​built//​. Then, open CMake Gui. In the field //Where is the source code//, put the folder //​C:/​dev/​CGAL-4.10//​. In the field //Where to build the binaries//, put the folder //​C:/​dev/​CGAL-4.10/​built//​ and click //​Configure//​. In the pop up window, select “Visual Studio ​12 2013 Win64” and click //Finish//. After the project has finished to //​Configure//,​ click Generate. A Visual studio solution called //​CGAL.sln//​ will be generated in the binaries folder. Now, just open it and build for Debug and Release configurations.+Create the folder //​C:/​dev/​CGAL-4.10/​built//​. Then, open CMake Gui. In the field //Where is the source code//, put the folder //​C:/​dev/​CGAL-4.10//​. In the field //Where to build the binaries//, put the folder //​C:/​dev/​CGAL-4.10/​built//​ and click //​Configure//​. In the pop up window, select “Visual Studio ​15 2017 Win64” and click //Finish//. After the project has finished to //​Configure//,​ click Generate. A Visual studio solution called //​CGAL.sln//​ will be generated in the binaries folder. Now, just open it and build for Debug and Release configurations.
  
 After the solution was built for Debug and Release, you will need to install CGAL in the system. To execute this step, Visual Studio will need administrator privileges. Close Visual Studio. After closed, right click on it and go to //Run as Administrator//​. After Visual Studio was opened with administrator privileges, open the solution //​CGAL.sln//​ and build the project //INSTALL// for Debug and Release, respectively. After the solution was built for Debug and Release, you will need to install CGAL in the system. To execute this step, Visual Studio will need administrator privileges. Close Visual Studio. After closed, right click on it and go to //Run as Administrator//​. After Visual Studio was opened with administrator privileges, open the solution //​CGAL.sln//​ and build the project //INSTALL// for Debug and Release, respectively.
Line 208: Line 216:
  
 ^ Dependency ​  ​^ ​ Variable ​    ^ Description ​                             ^ Default value             ^ ^ Dependency ​  ​^ ​ Variable ​    ^ Description ​                             ^ Default value             ^
-| TerraLib ​    | terralib_DIR ​ | Folder containing cmake configuration file for TerraLib ​ | C:/Program Files/terralib ​|+| TerraLib ​    | terralib_DIR ​ | Folder containing cmake configuration file for TerraLib ​ | C:/Program Files/terralib5.2.1 ​|
 | TerraLib ​    | terralib_DEPENDENCIES_DIR | Root folder of TerraLib 3rdparty package | ${GEODMA_ROOT_DIR}/​../​dependencies/​terralib5-3rdparty-msvc-2013-win64 | | TerraLib ​    | terralib_DEPENDENCIES_DIR | Root folder of TerraLib 3rdparty package | ${GEODMA_ROOT_DIR}/​../​dependencies/​terralib5-3rdparty-msvc-2013-win64 |
 | TerraLib ​    | terralib_ROOT | Root folder of TeraLib ​               | No default value, automatically searched by CMake | | TerraLib ​    | terralib_ROOT | Root folder of TeraLib ​               | No default value, automatically searched by CMake |

Navigation