Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:terralib50_build [2015/06/09 10:13] marisa |
wiki:terralib50_build [2015/09/08 14:58] (current) marisa |
||
---|---|---|---|
Line 62: | Line 62: | ||
-------------------------- | -------------------------- | ||
- | a) We will assume that the TerraLib source tree (git clone) is located at: | + | a) We will assume that the TerraLib source tree ([[http://www.dpi.inpe.br/terralib5/wiki/doku.php?id=wiki:terralib50_download|git clone]]) is located at: |
C:\terralib\codebase | C:\terralib\codebase | ||
- | b) We will assume that the third party libraries for Visual Studio 2013, obtained from | + | b) We will assume that the suitable third party libraries, obtained from |
- | http://www.dpi.inpe.br/terralib5/terralib5-3rdparty/terralib5.0.0-3rdparty-msvc-2013-win64.zip | + | http://www.dpi.inpe.br/terralib5/terralib5-3rdparty/terralib5.x.x-3rdparty-msvc-2013-win64.zip |
- | (or terralib5.0.0-3rdparty-msvc-2013-win32.zip) | + | (or terralib5.x.x-3rdparty-msvc-2013-win32.zip) where 5.x.x is the terralib release |
are located at: | are located at: | ||
Line 75: | Line 75: | ||
c) Create a folder out of the TerraLib source tree to build the binaries, for example: | c) Create a folder out of the TerraLib source tree to build the binaries, for example: | ||
C:\terralib\build-win64 | C:\terralib\build-win64 | ||
- | (or C:\terralib\build-win64) | + | (or C:\terralib\build-win32) |
d) Open CMake-GUI in order to generate a build project for Microsoft Visual C++ 2013 (64-bit or 32-bit). | d) Open CMake-GUI in order to generate a build project for Microsoft Visual C++ 2013 (64-bit or 32-bit). | ||
Line 90: | Line 90: | ||
* Qt CMake => look for the Qt dir containing ''Qt5Config.cmake'' | * Qt CMake => look for the Qt dir containing ''Qt5Config.cmake'' | ||
- | Example for win64: Press ''AddEntry'' button and inform the name ''CMAKE_PREFIX_PATH'', type ''PATH'' and set its value as: | + | Example for win64: Press ''AddEntry'' button and inform the name ''CMAKE_PREFIX_PATH'', type ''PATH'' and set its value as (do not press the bottom "..." to add the two paths, because the second will overwrite the first): |
- | CMAKE_PREFIX_PATH => C:/terralib5-3rdparty-msvc-2013-win64;C:/Qt/Qt5.4.1/5.4/msvc2013_64/lib/cmake/Qt5 | + | CMAKE_PREFIX_PATH => C:/terralib/terralib5-3rdparty-msvc-2013-win64;C:/Qt/Qt5.4.1/5.4/msvc2013_64/lib/cmake/Qt5 |
Example for win32: Press ''AddEntry'' button and inform the name ''CMAKE_PREFIX_PATH'', type ''PATH'' and set its value as: | Example for win32: Press ''AddEntry'' button and inform the name ''CMAKE_PREFIX_PATH'', type ''PATH'' and set its value as: | ||
- | CMAKE_PREFIX_PATH => C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A;C:/terralib/terralib5-3rdparty-msvc-2013-win32;C:/Qt/Qt5.3.0/5.3/msvc2010_opengl/lib/cmake/Qt5 - not maintained. | + | CMAKE_PREFIX_PATH => C:/terralib/terralib5-3rdparty-msvc-2013-win32;C:/Qt/Qt5.3.0/5.3/msvc2010_opengl/lib/cmake/Qt5 |
- | + | ||
- | Note that for 32 bits it is necessary to include the path for Microsoft SDK => look for the dir containing include/glu.h) | + | |
h) Then press "''Configure''" and choose: | h) Then press "''Configure''" and choose: | ||
Line 119: | Line 117: | ||
k) To run and debug TerraView application, set terraview module as StartUp Project at Microsoft Visual C++ 2013. | k) To run and debug TerraView application, set terraview module as StartUp Project at Microsoft Visual C++ 2013. | ||
- | l) To run and debug an terralib_example_* and/or terralib_unitest_* make set it as ''StartUp'' Project and make sure the data ([[http://www.dpi.inpe.br/terralib5/data.zip| data.zip]]) used are located at the default directory specified by TERRALIB_DATA_DIR : | + | l) To run and debug an terralib_example_* and/or terralib_unitest_* set it as ''StartUp'' Project and make sure the data ([[http://www.dpi.inpe.br/terralib5/data.zip| data.zip]]) used are located at the default directory specified by TERRALIB_DATA_DIR : |
TERRALIB_DATA_DIR C:\terralib\build-win32\data or C:\terralib\build-win64\data | TERRALIB_DATA_DIR C:\terralib\build-win32\data or C:\terralib\build-win64\data | ||
m) Make sure the default directory used to save the reports generated by the unittests exist, otherwise no report will be saved: | m) Make sure the default directory used to save the reports generated by the unittests exist, otherwise no report will be saved: | ||
Line 160: | Line 158: | ||
i) TerraLib/TerraView can be compiled calling make for the Makefile Generator, Eclipse (for Linux) or XCode (for MacOS). | i) TerraLib/TerraView can be compiled calling make for the Makefile Generator, Eclipse (for Linux) or XCode (for MacOS). | ||
- | j) To run and debug terralib_example_* and/or terralib_unittest_* make it the current project and make sure the data ([[@../download/download.php?FileName=data.zip|data.zip]]) used are located at the build directory: | + | j) To run and debug terralib_example_* and/or terralib_unittest_* make it the current project and make sure the data ([[http://www.dpi.inpe.br/terralib5/data.zip| data.zip]]) used are located at the build directory: |
TERRALIB_DATA_DIR /home/user/build_terralib5/data | TERRALIB_DATA_DIR /home/user/build_terralib5/data | ||