{"id":1662,"date":"2021-09-24T09:40:23","date_gmt":"2021-09-24T08:40:23","guid":{"rendered":"http:\/\/computree.onf.fr\/?page_id=630"},"modified":"2025-06-11T09:12:44","modified_gmt":"2025-06-11T08:12:44","slug":"development","status":"publish","type":"page","link":"https:\/\/computree.onf.fr\/?page_id=1662","title":{"rendered":"Development"},"content":{"rendered":"<p>If you want to compile Computree from the source code, here is the procedure to follow.<\/p>\n<p><p><em>N.B.: Computree&rsquo;s source code repositories are currently under SVN, but will migrate to GitLab in June-July 2025.<\/em><\/p>\n<h2>Prerequisite<\/h2>\n<p>On your system, the following must be installed:<\/p>\n<h3>A C++ compiler<\/h3>\n<p><strong style=\"color:darkblue;\">On Windows<\/strong>, you must install the Microsoft Visual Studio 2022 64-bit <strong>C++ compiler (MSVC2022<\/strong> ), available in <a href=\"https:\/\/visualstudio.microsoft.com\/fr\/downloads\/\" target=\"_blank\" rel=\"noopener noreferrer\"> Visual Studio Community<\/a>. You must choose the <strong>Desktop Development component in C++<\/strong>, by activating at least:<\/p>\n<ul>\n<li style=\"margin-left:50px;\">Windows 11 SDK (10.xxx)<\/li>\n<li style=\"margin-left:50px;\">MSVC v143 &#8211; VS 2022 C++<\/li>\n<\/ul>\n<p><strong style=\"color:darkblue;\">On Linux<\/strong>, the <strong>GCC compiler<\/strong> (version >= 9.3) is normally already available by default. Otherwise, install it with the command:<\/p>\n<pre>sudo apt-get install build-essential<\/pre>\n<p><strong style=\"color:darkblue;\">On MacOS X<\/strong>, you must install <a href=\"https:\/\/apps.apple.com\/fr\/app\/xcode\/id497799835\" target=\"_blank\" rel=\"noopener noreferrer\">Apple Xcode<\/a>, then the development tools by launching from a terminal:<\/p>\n<pre>command xcode-select --install<\/pre>\n<h3>QtCreator and Qt<\/h3>\n<p>You must install <strong>Qt version 5.15.2<\/strong>, available in <a href=\"https:\/\/www.qt.io\/download-open-source\" target=\"_blank\" rel=\"noopener noreferrer\">open-source version here<\/a><\/p>\n<h3>A Subversion Client (SVN)<\/h3>\n<p><strong>You must install a Subversion client (SVN),<\/strong> such as:<\/p>\n<ul>\n<li style=\"margin-left:50px;\"><a href=\"https:\/\/tortoisesvn.net\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>TortoiseSVN<\/strong><\/a> on Windows<\/li>\n<li style=\"margin-left:50px;\">or the <strong>subversion<\/strong> package on Linux or MacOS X:<\/li>\n<\/ul>\n<pre>sudo apt install subversion<\/pre>\n<h2>Retrieving source codes<\/h2>\n<p>To set up the Computree development environment, you must first <strong>create a root folder for Computree<\/strong>, classically named &quot;computree&quot; (but this name is free). It is in this folder that the source code repositories of the platform and its plugins will be retrieved.<\/p>\n<p>To <strong>retrieve the source codes<\/strong> of the platform and plugins distributed as standard (SVN checkout), you must execute, in the computree root folder, the following commands:<\/p>\n<pre>\r\n    svn checkout https:\/\/rdinnovation.onf.fr\/svn\/computreev6\/ computreev6\r\n    svn checkout https:\/\/rdinnovation.onf.fr\/svn\/plugin-onf\/dev_v6\/ pluginonf\r\n    svn checkout https:\/\/rdinnovation.onf.fr\/svn\/plugin-mk\/dev_v6\/ pluginmk\r\n    svn checkout https:\/\/rdinnovation.onf.fr\/svn\/plugin-toolkit\/dev_v6\/ plugintoolkit\r\n    svn checkout https:\/\/rdinnovation.onf.fr\/svn\/segma\/dev_v6\/ pluginsegma\r\n    svn checkout https:\/\/rdinnovation.onf.fr\/svn\/plugin-generate\/dev_v6\/ plugingenerate\r\n    svn checkout https:\/\/rdinnovation.onf.fr\/svn\/plugin-onf-dev\/dev_v6\/ pluginonfdev\r\n    svn checkout https:\/\/rdinnovation.onf.fr\/svn\/plugin-ign-lif\/dev_v6\/ pluginignlif\r\n<\/pre>\n<p>This will create a main computreev6 subfolder containing all the core elements of the platform. This folder should not be renamed. Then a subfolder is created for each Computree plugin. Only the computreev6 deposit is strictly essential. The other repositories to retrieve depend on the plugins you want to compile.<\/p>\n<p>You must then <strong>run the script<\/strong> <em>create_plugins_pro.bat<\/em> (on Windows) or <em>create_plugins_pro.sh<\/em> (on Linux or MacOS X), located in the <em>computree\/computreev6<\/em> folder. This script creates the Qt project file <em>plugins.pro<\/em> that will be used for compilation.<\/p>\n<p><em>N.B. : At this stage (or later in QtCreator), you can remove (by commenting the corresponding lines) or add plugin folders to compile in the plugins.pro file created.<\/em><\/p>\n<h2>Installing dependencies<\/h2>\n<p><strong style=\"color:darkblue;\">On Windows<\/strong>, the installation of dependencies is based on <a href=\"https:\/\/vcpkg.io\/en\/index.html\">VCPKG<\/a>.<\/p>\n<p><strong>Installation of VCPKG<\/strong><\/p>\n<ul>\n<li>Download the 2024.12.16 version (source code) of VCPKG <a href=\"https:\/\/github.com\/microsoft\/vcpkg\/archive\/refs\/tags\/2024.12.16.zip\">here<\/a>.<\/li>\n<li>Unpack the archive into a dedicated permanent folder (for example c:\/vcpkg)<\/li>\n<li>In this folder, double-click on <em>bootstrap-vcpkg.bat<\/em> to run it<\/li>\n<li>Add the following environment variables (in the start menu, search for Edit System Environment Variables, then click on the Environment Variables button):<\/li>\n<ul>\n<li>Add a line to the PATH, containing the path to the vcpkg folder (for example c:\/vcpkg)<\/li>\n<li>Create a new variable VCPKG, containing the path to the package folder installed by vcpkg (for example c:\/vcpkg\/installed\/x64-windows)<\/li>\n<\/ul>\n<\/ul>\n<p><strong>Downloading and compiling dependencies<\/strong>: in a terminal (search for CMD in the start menu), run the following commands:<\/p>\n<pre>\r\nvcpkg install eigen3 --clean-after-build --triplet x64-windows\r\nvcpkg install muparser --clean-after-build --triplet x64-windows\r\nvcpkg install opencv --clean-after-build --triplet x64-windows\r\nvcpkg install opengl --clean-after-build --triplet x64-windows\r\nvcpkg install laszip --clean-after-build --triplet x64-windows\r\nvcpkg install nanoflann --clean-after-build --triplet x64-windows\r\nvcpkg install gsl --clean-after-build --triplet x64-windows\r\nvcpkg install boost --clean-after-build --triplet x64-windows\r\nvcpkg install flann --clean-after-build --triplet x64-windows\r\nvcpkg install qhull --clean-after-build --triplet x64-windows\r\nvcpkg install pcl --clean-after-build --triplet x64-windows\r\nvcpkg install gdal --clean-after-build --triplet x64-windows --recurse\r\nvcpkg install pdal --clean-after-build --triplet x64-windows\r\n<\/pre>\n<p><strong>Note: All dependencies are downloaded and compiled. This can take a long time (potentially several hours).<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong style=\"color:darkblue;\">On Linux<\/strong>, <strong>the following packages must be installed<\/strong> :<\/p>\n<pre>\r\nsudo apt install libeigen3-dev\r\nsudo apt install libmuparser-dev\r\nsudo apt install libgdal-dev gdal-bin\r\nsudo apt install libopencv-dev python3-opencv\r\nsudo apt install libpcl-dev\r\nsudo apt install libboost-all-dev\r\nsudo apt install libgsl-dev gsl-bin\r\nsudo apt install libqhull-dev\r\nsudo apt install libflann-dev\r\nsudo apt install liblaszip-dev\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong style=\"color:darkblue;\">On MacOS X<\/strong>, you must install <a href=\"https:\/\/brew.sh\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Brew<\/strong><\/a> and <strong>then install the following packages<\/strong>:<strong><\/strong><\/p>\n<pre>\r\nbrew install eigen\r\nbrew install muparser\r\nbrew install gdal\r\nbrew install opencv\r\nbrew install pcl\r\nbrew install boost\r\nbrew install gsl\r\nbrew install qhull\r\nbrew install flann\r\nbrew install laszip\r\n<\/pre>\n<h2>Configuring the Qt project and compiling<\/h2>\n<p>The first step is to <strong>open the <em>computree.pro<\/em> file<\/strong>, located in <em>computree\/computreev6<\/em>, <strong>in QtCreator<\/strong>. At the opening QtCreator proposes to configure the project<\/strong> : you have to choose the right version of Qt and the compiler, ie <strong>Qt 5.15.2<\/strong> and, under Windows, take the version MSVC 2022 64bits<\/p>\n<p>You must then go to the <em>Project<\/em> tab of QtCreator to configure the compilation options:<\/p>\n<ol>\n<li><strong>Uncheck &quot;Shadow Build&quot;<\/strong> for Debug mode and for Release mode<\/li>\n<li>Leave Release mode selected<\/li>\n<li>In the <em>Run<\/em> configuration (left)<strong> add a step of the type &quot;Make&quot;,<\/strong> and with the argument &quot;install&quot;<\/li>\n<li><strong style=\"color:darkblue;\">On Windows<\/strong>, in the <em>Run<\/em> configuration (left), Environment section, add the path to <em>vcpkg\/installed\/x64-windows\/bin<\/em> in Path variable (using the Append button).<\/li>\n<\/ol>\n<p>Finally, <strong>go back to the <em>Edit<\/em> tab<\/strong> and:<\/p>\n<ol>\n<li>Right-click on the computree.pro project, and click <em><strong>Run Qmake<\/strong><\/em><\/li>\n<li><strong>Launch compilation<\/strong>, with the <em>Hammer<\/em> button at the bottom left (or right click, Compilation)<\/li>\n<li>Once the compilation is complete, <strong>launch Computree<\/strong>, using the <em>Play<\/em> button.\n<\/ol>\n<p><em>N.B. : Later, if major changes have taken place in the source code, it may be necessary to redo a Run Qmake and then Recompile on the computree.pro project. This manipulation is to be tried if problems begin to occur just after an update of the source code (SVN update).<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to compile Computree from the source code, here is the procedure to follow. N.B.: Computree&rsquo;s source code repositories are currently under SVN, but will migrate to GitLab in June-July 2025. Prerequisite On your system, the following must be installed: A C++ compiler On Windows, you must install the Microsoft Visual Studio 2022 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","footnotes":""},"folder":[],"class_list":["post-1662","page","type-page","status-publish","hentry","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Development - Computree<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/computree.onf.fr\/?page_id=1662\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Development - Computree\" \/>\n<meta property=\"og:description\" content=\"If you want to compile Computree from the source code, here is the procedure to follow. N.B.: Computree&rsquo;s source code repositories are currently under SVN, but will migrate to GitLab in June-July 2025. Prerequisite On your system, the following must be installed: A C++ compiler On Windows, you must install the Microsoft Visual Studio 2022 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/computree.onf.fr\/?page_id=1662\" \/>\n<meta property=\"og:site_name\" content=\"Computree\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-11T08:12:44+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/computree.onf.fr\/?page_id=1662\",\"url\":\"https:\/\/computree.onf.fr\/?page_id=1662\",\"name\":\"Development - Computree\",\"isPartOf\":{\"@id\":\"https:\/\/computree.onf.fr\/#website\"},\"datePublished\":\"2021-09-24T08:40:23+00:00\",\"dateModified\":\"2025-06-11T08:12:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/computree.onf.fr\/?page_id=1662#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/computree.onf.fr\/?page_id=1662\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/computree.onf.fr\/?page_id=1662#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/computree.onf.fr\/?page_id=497\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Development\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/computree.onf.fr\/#website\",\"url\":\"https:\/\/computree.onf.fr\/\",\"name\":\"Computree\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/computree.onf.fr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Development - Computree","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/computree.onf.fr\/?page_id=1662","og_locale":"fr_FR","og_type":"article","og_title":"Development - Computree","og_description":"If you want to compile Computree from the source code, here is the procedure to follow. N.B.: Computree&rsquo;s source code repositories are currently under SVN, but will migrate to GitLab in June-July 2025. Prerequisite On your system, the following must be installed: A C++ compiler On Windows, you must install the Microsoft Visual Studio 2022 [&hellip;]","og_url":"https:\/\/computree.onf.fr\/?page_id=1662","og_site_name":"Computree","article_modified_time":"2025-06-11T08:12:44+00:00","twitter_card":"summary_large_image","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/computree.onf.fr\/?page_id=1662","url":"https:\/\/computree.onf.fr\/?page_id=1662","name":"Development - Computree","isPartOf":{"@id":"https:\/\/computree.onf.fr\/#website"},"datePublished":"2021-09-24T08:40:23+00:00","dateModified":"2025-06-11T08:12:44+00:00","breadcrumb":{"@id":"https:\/\/computree.onf.fr\/?page_id=1662#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/computree.onf.fr\/?page_id=1662"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/computree.onf.fr\/?page_id=1662#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/computree.onf.fr\/?page_id=497"},{"@type":"ListItem","position":2,"name":"Development"}]},{"@type":"WebSite","@id":"https:\/\/computree.onf.fr\/#website","url":"https:\/\/computree.onf.fr\/","name":"Computree","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/computree.onf.fr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"}]}},"_links":{"self":[{"href":"https:\/\/computree.onf.fr\/index.php?rest_route=\/wp\/v2\/pages\/1662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computree.onf.fr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/computree.onf.fr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/computree.onf.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computree.onf.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1662"}],"version-history":[{"count":23,"href":"https:\/\/computree.onf.fr\/index.php?rest_route=\/wp\/v2\/pages\/1662\/revisions"}],"predecessor-version":[{"id":1856,"href":"https:\/\/computree.onf.fr\/index.php?rest_route=\/wp\/v2\/pages\/1662\/revisions\/1856"}],"wp:attachment":[{"href":"https:\/\/computree.onf.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1662"}],"wp:term":[{"taxonomy":"folder","embeddable":true,"href":"https:\/\/computree.onf.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ffolder&post=1662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}