From 9f910749db56e1c9b4ce1fbf7624bc72be4c0391 Mon Sep 17 00:00:00 2001 From: Lucino772 Date: Fri, 9 Sep 2022 14:35:30 +0200 Subject: [PATCH] chore(readme): added build & install instructions --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 900c5ac..4174823 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,36 @@ to support newer hardware (primarily for use by the ports) and fix bugs. * The default `master` branch contains code that has been written since that final source release to provide support for newer hardware. +Build +----- + +```shell +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 +``` + +Build Archive: +```shell +cpack -config CPackSourceConfig.cmake +``` + +Install +------- + +To install the wiringPi library, simply download the `.deb` package available in the [`latest release`](https://github.com/WiringPi/WiringPi/releases/latest) or build it from source and install it using `dpkg`: +```shell +sudo dpkg -i wiringpi-2.61-1-armhf.deb +``` + Ports -----