Browse Source

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

pull/169/head
Lucino772 2 years ago
parent
commit
b4cb4b6d2d
1 changed files with 12 additions and 4 deletions
  1. +12
    -4
      README.md

+ 12
- 4
README.md View File

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


```shell ```shell
mdkir dist
cd dist
mdkir dist && cd dist
cmake .. cmake ..
cmake --build . 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: Debian package:
```shell ```shell
cpack -config CPackConfig.cmake cpack -config CPackConfig.cmake
@@ -33,6 +30,17 @@ Build Archive:
cpack -config CPackSourceConfig.cmake 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 Install
------- -------




Loading…
Cancel
Save