diff --git a/Home.md b/Home.md index 051bf6b..c75f948 100644 --- a/Home.md +++ b/Home.md @@ -1,6 +1,37 @@ # Welcome to the Livox-SDK wiki This is a wiki for anything related to the Livox! -# Quick Links +# 1 Quick Links > * [LivoxTech Official website](https://www.livoxtech.com/) > * [Livox SDK Communication Protocol PDF](https://www.livoxtech.com/sdk/downloads) -> * [Livox MID-40 && MID-100 LiDAR Manuals](https://www.livoxtech.com/mid-40-and-mid-100/downloads) \ No newline at end of file +> * [Livox MID-40 && MID-100 LiDAR Manuals](https://www.livoxtech.com/mid-40-and-mid-100/downloads) + +# 2 Livox SDK API + +Livox SDK API provides a set of C style functions which can be conveniently integrated in C/C++ programs. Please refer to the [Livox SDK API Reference](https://livox-sdk.github.io/Livox-SDK/) for further information. + +## 2.1 Installation +The installation procedures in Ubuntu 16.04/14.04 32-bit LTS are shown here as examples. +### 2.1.1 Ubuntu 16.04/14.04 32-bit LTS +#### Dependencies +Livox SDK requires [CMake 3.0.0+](https://cmake.org/), [Apache Portable Runtime (APR) 1.61+](http://apr.apache.org/) and [Boost 1.54+](https://www.boost.org/) as dependencies. You need to install boost, cmake using apt: +``` +sudo apt install cmake libboost-atomic-dev libboost-system-dev +``` +And download the newest apr linux source file in [Apache Portable Runtime (APR) 1.61+](http://apr.apache.org/): +``` +tar -zxvf apr-1.X.X.tar.gz +cd apr-1.X.X +./configure --prefix=/usr/local/apr --disable-lfs +make && sudo make install +``` +#### Compile Livox SDK +In the Livox SDK directory, run the following commands to compile the project: +``` +git clone https://github.com/Livox-SDK/Livox-SDK.git +cd Livox-SDK/build +PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/apr/lib/pkgconfig/ && export PKG_CONFIG_PATH +cmake .. +make +sudo make install +``` +As the PKG_CONFIG_PATH will only take effect on the current terminal, next time please re-add it when you build project in another terminal. \ No newline at end of file