Parcourir la source

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

pull/169/head
Lucino772 il y a 2 ans
Parent
révision
b4cb4b6d2d
1 fichiers modifiés avec 12 ajouts et 4 suppressions
  1. +12
    -4
      README.md

+ 12
- 4
README.md Voir le fichier

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



Chargement…
Annuler
Enregistrer