Selaa lähdekoodia

chore(readme): improved build instructions for cross-compiling

pull/169/head
Lucino772 2 vuotta sitten
vanhempi
commit
b4cb4b6d2d
1 muutettua tiedostoa jossa 12 lisäystä ja 4 poistoa
  1. +12
    -4
      README.md

+ 12
- 4
README.md Näytä tiedosto

@@ -15,14 +15,11 @@ Build
-----

```shell
mdkir dist
cd dist
mdkir dist && cd dist
cmake ..
cmake --build .
```

*Note: You can also cross-compile using the `toolchain-rpi.cmake` file available in the `cmake/` directory. Run cmake with -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-rpi.cmake*

Debian package:
```shell
cpack -config CPackConfig.cmake
@@ -33,6 +30,17 @@ Build Archive:
cpack -config CPackSourceConfig.cmake
```

**Cross-Compiling:**

Make sure to install the [`arm toolchain`](https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads) for the raspberry pi.

Then set the environment variable `TOOLCHAIN_PATH` to the `bin/` directory in your toolchain and run:
```shell
mkdir dist && cd dist
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-rpi.cmake
cmake --build .
```

Install
-------



Ladataan…
Peruuta
Tallenna