Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small update for how_to_build_and_install.md #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions doc/howto/how_to_build_and_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* [4. Build in VSCode](#build-in-visual-studio-code)

## Install CMake
The installation procedures in Ubuntu 18.04/16.04/14.04 LTS and Windows 7/10 are shown here as examples. For Ubuntu 18.04/16.04/14.04 32-bit LTS and Mac, you can get it in [YDLidar-SDK wiki](https://github.com/YDLIDAR/YDLidar-SDK/wiki).
The installation procedures in Ubuntu 22.04/18.04/16.04/14.04 LTS and Windows 7/10 are shown here as examples. For Ubuntu 22.04/18.04/16.04/14.04 32-bit LTS and Mac, you can get it in [YDLidar-SDK wiki](https://github.com/YDLIDAR/YDLidar-SDK/wiki).
YDLidar SDK requires [CMake 2.8.2+](https://cmake.org/) as dependencies.
### Ubuntu 18.04/16.04/14.04 LTS
### Ubuntu 22.04/18.04/16.04/14.04 LTS
You can install these packages using apt:
```shell
sudo apt install cmake pkg-config
Expand All @@ -35,10 +35,11 @@ if you want to use python API, you need to install python and swig:
[swig office install](http://www.swig.org/download.html)

## Build YDLidar-SDK
### Ubuntu 18.04/16.04/14.04 LTS
### Ubuntu 22.04/18.04/16.04/14.04 LTS
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested ubuntu 22.04.
So I added this update, but did not test ubuntu20.04.
What should we do?

In the YDLidar SDK directory, run the following commands to compile the project:
```
git clone https://github.com/YDLIDAR/YDLidar-SDK.git
mkdir -p YDLidar-SDK/build
cd YDLidar-SDK/build
cmake ..
make
Expand Down Expand Up @@ -95,8 +96,8 @@ Three samples are provided in samples, which demonstrate how to configure YDLida

![](images/sequence.png)

### Ubuntu 18.04/16.04 /14.04 LTS
For Ubuntun 18.04/16.04/14.04 LTS, run the *tri_test* if connect with the Triangle LiDAR unit(s) or TOF LiDAR unit(s):
### Ubuntu 22.04/18.04/16.04 /14.04 LTS
For Ubuntu 22.04/18.04/16.04 /14.04 LTS, run the *tri_test* if connect with the Triangle LiDAR unit(s) or TOF LiDAR unit(s):
```
./tri_test
```
Expand Down