Check out the CPPToPigpio usage guide for more details on how you can make use of this library!

Acknowledgements

This code was developed by:

install.sh

Committer:
Charith Dassanayake
Date:
2017-12-13
Revision:
11:a207231e549a
Parent:
10:b4abae132d44

File content as of revision 11:a207231e549a:

set -e
cd CPPToPigpioInstallDir
g++ -std=c++11 -Wall -Wextra -Werror -pthread -o CPPToPigpio.o -c dummyInstall.cc -lpigpio -lrt
ar rcs libCPPToPigpio.a CPPToPigpio.o
sudo mv libCPPToPigpio.a /usr/local/lib/
#don't forget I2C
sudo cp CPPToPigpio.h DigitalOut.h DigitalIn.h BusOut.h BusIn.h PwmOut.h I2C.h /usr/local/include/
cd -
echo "Install successful! #include <CPPToPigpio.h> and run the following to compile:" 
echo "g++ -std=c++11 -Wall -Wextra -Werror -pthread -o <output_filename> <your_main_cc> -lpigpio -lrt -lCPPToPigpio"