Ver a proveniência

doc CMake on README

pull/74/head
Bernardo A. Rodrigues há 4 anos
ascendente
cometimento
6ed2d0d6c7
1 ficheiros alterados com 14 adições e 0 eliminações
  1. +14
    -0
      README.md

+ 14
- 0
README.md Ver ficheiro

@@ -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
```

Carregando…
Cancelar
Guardar