2018-04-09 10:46:01 +08:00
|
|
|
# 编译 on Linux {#guide_build_linux}
|
|
|
|
|
|
|
|
## 获取代码
|
|
|
|
|
|
|
|
```bash
|
2018-04-15 22:43:24 +08:00
|
|
|
git clone https://github.com/slightech/MYNT-EYE-SDK-2.git
|
2018-04-09 10:46:01 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## 准备依赖
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd mynt-eye-sdk-2/
|
|
|
|
make init
|
|
|
|
```
|
|
|
|
|
|
|
|
## 编译代码
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
|
|
|
结果:
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
\latexonly
|
|
|
|
\includegraphics[width=0.6\textwidth,keepaspectratio]{make_install.png}
|
|
|
|
\endlatexonly
|
|
|
|
|
|
|
|
> CMake 如何引入编译好的库,可参考 `samples/CMakeLists.txt` 里的配置。
|