The road of CC stepping on the pit - source code compilation


Tool preparation

First of all, you need to install the corresponding environment on the machine, my environment is:

vs2019
qt 5.12.5
cmake 

Source code download

1: Download the source code cloudcompare:

git clone https://github.com/CloudCompare/CloudCompare.git

2: Download cccore:

git clone https://github.com/CloudCompare/CCCoreLib.git

And put it libs\qCC_db\extern\CCCoreLibunder , don't forget to download it againsubmodules
git submodule update --init --recursive

solution generation

Here, Cmakethe tools used are:
insert image description here
set source codedirectory and binariesdirectory

If you use point cloud, remember to qpclcheck:
insert image description hereand the plug-in you want to use:
insert image description here
then click Configand Generate, and then open Open Project:

VS compile

insert image description here
After clicking ALL_BUILDGenerate INSTALL, INSTALLthere will be related programs in the folder.

Guess you like

Origin blog.csdn.net/weixin_42823098/article/details/130071445