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/13 11:37]
raian [External Dependencies]
geodma_2:build_inst [2018/10/03 16:01]
raian [External Dependencies]
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)
-   ​* ​Doxygen  +   ​* ​C5.0 Decision Trees Library (https://​github.com/​rvmaretto/​c50_decisionTrees)
-   * LaTeX -- **Required** for generating Doxygen Documentation  +
-   * Ghostscript -- **Required** for generating Doxygen Documentation ​+
    * 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 
 +  * NSIS 3.X -- **Mandatory** to generate installers on Windows environment. 
 +  * Doxygen -- **Mandatory** to generate 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 37: Line 43:
 Download python 2.7.X from [[https://​www.python.org/​downloads/​]]. Run the installer. We recomend to install it in the default folder //​C:/​python27//​. Download python 2.7.X from [[https://​www.python.org/​downloads/​]]. Run the installer. We recomend to install it in the default folder //​C:/​python27//​.
  
-==== Doxygen ​(ref. 1.8.13) ====+==== LaTeX Distribution ​(ref. MiKTeX 2.9) ====
  
-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 ​one of the LaTeX distributions ​from [[https://www.latex-project.org/get/]] and install itIt is necessary ​to correctly generate some formulas ​in the Doxygen documentation.
  
-==== LaTeX Distribution ​(ref. MiKTeX 2.9) ====+==== Ghostscript ​(ref. 9.21 32-bit) ====
  
-Download ​one of the LaTeX distributions ​from [[https://​www.latex-project.org/get/]] and install it. It is necessary to correctly generate some formulas in the documentation.+Download ​Ghostscript ​from [[https://​www.ghostscript.com/download/gsdnld.html]] and install it. It is necessary to correctly generate some formulas in the Doxygen ​documentation. The default folde for instalation is //​C:​\Program Files (x86)\gs\gs9.21//​. After installed, add the folder //​C:​\Program Files (x86)\gs\gs9.21\bin//​ in the //PATH// environment variable.  
 + 
 +==== Doxygen (ref. 1.8.13) ==== 
 + 
 +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.4.2) ====
Line 114: Line 124:
     - 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 148: Line 158:
 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 184: Line 194:
    ​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 204: Line 214:
  
 ^ 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