ubuntu16.04 placement cloudcompare

1. Preparation

First, go to the official website of cloudcompare to check the installation instructions of each system. Linux can be installed with snap, but it is said that the installation is unsuccessful. The source code compilation method is used here. You can refer to BUILD.md for a more detailed introduction.
1.1 Clone the entire source code

git clone --recursive https://github.com/cloudcompare/CloudCompare.git

1.2 Install Cmake (>=3.0)
and download it to cmake official website . Mine is cmake-3.17.4-Linux-x86_64.tar.gz. Note that this package does not need to be compiled by yourself. It is installed after decompression. You only need to configure environment variables.
The configuration environment variable refers to the cmake configuration environment variable

1.3 Install qt (>=5.5)
to the qt official website: https://www.qt.io/download to find download and go open source, you need to register an account with the school’s email address, and then the Qt offline installation package, what I downloaded is qt-opensource-linux-x64-5.12.9.run.
Obtain the installation permission of the installation package:

chmod +x qt-opensource-linux-x64-5.12.9.run

Then start the installation:

./qt-opensource-linux-x64-5.12.9.run The default installation path is home/username/qt
or sudo ./qt-opensource-linux-x64-5.12.9.run The default installation path is opt/

You will enter the Qt graphical installation interface, where you need to enter the registered account and password, all the way to next. The installation path is in accordance with its default, it is best not to change it. When selecting components, check desktop gcc 64-bit, which is the core of qt and must be installed, as well as developer and designer tools.
Configure environment variables:

sudo gedit /etc/profile
export PATH="/home/hy/Qt5.12.9/Tools/QtCreator/bin:$PATH"
export PATH="/home/hy/Qt5.12.9/5.12.9/gcc_64:$PATH"
source /etc/profile

Enter qtcreator in the terminal to open it, and the installation is successful.

2. Source code compilation

The official website is too complicated, please refer to https://blog.csdn.net/qq_15262755/article/details/91722501

# 经过实验,以上这种方法安装不成功!
cd cloudcompare
mkdir build
cd build
cmake ..
sudo make install 

After the compilation is complete, the software cannot be opened with the cloudcompare.ccViewer command. If you want to compile with source code, please refer to the steps on the official website!
Delete the files compiled and installed in /usr/local/ and reuse them

sudo snap install cloudcompare

The installation is successful after a while. Appears after success:

2020-09-14T09:18:43+08:00 INFO Waiting for automatic snapd restart…
cloudcompare 2.11.1 from Daniel Girardeau-Montaut (cloudcompare) installed

Enter cloudcompare.CloudCompare in the terminal to open the software.
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_43265072/article/details/108558529