...version française

Initialization of a Computree development environment

 

 

Initialization of a Computree development environment for Windows (64 bits, 7, 8 ou 10)

Installing the development environment

  1. Install “Microsoft Visual studio 2015 Express”: https://www.visualstudio.com/fr/post-download-vs/?sku=xdesk
  2. Install “Windows SDK”: https://developer.microsoft.com/fr-fr/windows/downloads/windows-10-sdk (Optional step, allowing to compile in debug mode)
  3. Install “Qt”: https://www.qt.io/download-open-source/ (check at least Qt 5.9.1 msvc 2015 64 bits
  4. Install a SVN client, as for example “TortoiseSVN”: https://tortoisesvn.net (During the installation, think about activating the installation of command line client tools)

Obtaining the source code of Computree and its plugins

1. Create a Computree root directory where you want

2. Dowload Computree development kit (Windows), which contains:

3. Unzip kit_dev_windows_fr.zip at the root of the Computree directory

4. Run the recuperer_depots.bat script

Installing Dependencies

Download and unzip Computree v5 dependencies folder, and paste at the root of the computree directory.

If you want to install dependencies in different locations (for example in c:/program files), you can, for each LIBNAME_default_path.pri file in computreev5 directory, duplicate it and rename it LIBNAME_user_path.pri. After that you just have to modidy this second file to use your local paths.

Computree Compilation

1. Launch Qt Creator

2. Open the project all.pro, select the compiler MSVC 2015 64bits, with version release and/or debug

If you have not installed PCL, delete/comment the following line in all.pro:
Computreev5/library/ctlibpcl/ctlibpcl.pro \

3. On the Project tab, disable shadow builds (check box), for release and/or debug

4. Run qmake on all.pro, then compile the project

After updating the source code, if the core of Computree has been modified significantly, it may be necessary to run qmake on each subproject and then to do Recompile on all.pro.

Execution of Computree

Once compiled, to be run, Computree needs all the dependency dlls, accessible from the location of the generated CompuTreeGui.exe file.
For that copy dlls to ComputreeInstallRelease folder (for release version) and / or ComputreeInstallDebug folder (for debug version).

Dll are available for download here: Computree v5 DLL

Then you can run from Qt-Creator (green arrow or run on all.pro).

Configure your plugin if you want to use PCL in your code

If you want to use PCL for your development some preparation steps are required:

You must configure the .pro file of your plugin (.pro) as follows (beginning of the file):

CT_PREFIX = ../../computreev5

Include ($$ {CT_PREFIX} /shared.pri)
Include ($$ {PLUGIN_SHARED_DIR} /include.pri)

COMPUTREE + = ctlibpcl

Include ($$ {CT_PREFIX} /include_ct_library.pri)

Do not forget to compile the libpcl project into the computreev5/library/ctlibpcl folder (open the ctlibpcl.pro file and compile it with QtCreator)

Just make a qmake on the project of your plugin (right click → qmake) and compile it.

 

 

Initialization of a Computree Development Environment on Ubuntu 16.04 LTS

Installing the development environment

1. Installing subversion

In a terminal (CTRL + ALT + T):

sudo apt-get update
sudo apt-get install subversion

2. Installing Qt (5.9.1)

Recovering the source code of Computree and its plugins

1. Create a Computree root directory where you want

2. Download Computree development kit (Linux), which contains:

3. Unzip kit_dev_linux.tar.gz at the root of the Computree directory

4. In a terminal (CTRL + ALT + T), run the _recuperer_depots.sh script

Installing Dependencies

1. OpenCV 3.3.0 (optional but highly recommended, allows to use images / rasters in Computree)

2. PCL 1.8.0 (optional, allows to use plugins requiring PCL) 3. GDAL 2.2.1 (optional, gives access to GDAL/OGR vector and raster formats) 4. GSL (optional, gives access to a numerical calculation library used in some plugins)
If you want to install dependencies in different locations (for example in c:/program files), you can, for each LIBNAME_default_path.pri file, duplicate it and rename it LIBNAME_user_path.pri. After that you just have to modidy this second file to use your local path.

Computree Compilation

1. Launch Qt Creator

2. Open the project all.pro

If you have not installed PCL, delete/comment the following line in all.pro:
computreev5/library/ctlibpcl/ctlibpcl.pro \

3. On the Project tab, disable shadow builds (check box), for release and/or debug

4. Run qmake on all.pro, then compile the project

After updating the source code, if the core of Computree has been modified significantly, it may be necessary to run qmake on each subproject and then to do Recompile on all.pro.

Execution of Computree

Once compiled, you can run from Qt-Creator (green arrow or run on all.pro).

Configure your plugin if you want to use PCL in your code

If you want to use PCL for your development some preparation steps are required:

You must configure the .pro file of your plugin (.pro) as follows (beginning of the file):

CT_PREFIX = ../../computreev5

include($${CT_PREFIX}/shared.pri)
include($${PLUGIN_SHARED_DIR}/include.pri)

COMPUTREE += ctlibpcl

include($${CT_PREFIX}/include_ct_library.pri)

Do not forget to compile the libpcl project into the computreev5/library/ctlibpcl folder (open the ctlibpcl.pro file and compile it with QtCreator)

Just make a qmake on the project of your plugin (right click → qmake) and compile it.

 

 

List of svn repositories

If you want to add repositories, or do a manual installation without the scripts, you will find in the table below a list of repositories for all Computree plugins.

To access a repository, of course, you must have adequate rights for the project.
In general, the name of a repository is http://rdinnovation.onf.fr/svn/nom-du-projet. The name of the project being the name that appears in the address bar of the browser.
Plugin Plugin code Project Svn Repository
Computree (base) CT computree http://rdinnovation.onf.fr/svn/computree
ComputreeDevTools - computreedevtools http://rdinnovation.onf.fr/svn/computreedevtools
Plugin Onf ONF plugin-onf http://rdinnovation.onf.fr/svn/plugin-onf
Plugin Arts Free ARFR plugin-arts-free http://rdinnovation.onf.fr/svn/plugin-arts-free
Plugin Onf Lsis OL plugin-onf-lsis http://rdinnovation.onf.fr/svn/plugin-onf-lsis
Plugin Generate GEN plugin-generate http://rdinnovation.onf.fr/svn/plugin-generate
Plugin ToolKit TK plugin-toolkit http://rdinnovation.onf.fr/svn/plugin-toolkit
Plugin LVox LVOX plugin-lvox http://rdinnovation.onf.fr/svn/plugin-lvox

Back to home