瀏覽代碼

doc CMake on README

pull/74/head
Bernardo A. Rodrigues 4 年之前
父節點
當前提交
6ed2d0d6c7
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. +14
    -0
      README.md

+ 14
- 0
README.md 查看文件

@@ -17,3 +17,17 @@ Pull-requests may be accepted to add or fix support for newer hardware, but new
other changes will not be accepted.

For support, comments, questions, etc please join the WiringPi Discord channel: https://discord.gg/SM4WUVG

## CMake
You can use CMake to cross compile WiringPi. This is heavily inspired by Alex C. U.'s article [The Useful RaspberryPi Cross Compile Guide](https://medium.com/@au42/the-useful-raspberrypi-cross-compile-guide-ea56054de187).

The main difference is that it assumes you are using [Embedded Development Infrastructure (edi)](https://docs.get-edi.io/en/latest/introduction.html). For more info, follow Matthias Lüscher’s [Cross Compiling for Raspbian Buster](https://www.get-edi.io/Cross-Compiling-for-Raspbian-Buster/) guide to set up an edi container.

Do the following steps in a local clone of this repository inside a `raspbian-buster-cross` lxd container:
```
$ mkdir build_cmake
$ cd build_cmake
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/rpi.cmake
$ make
$ sudo make install
```

Loading…
取消
儲存