Skip to content

Instantly share code, notes, and snippets.

@NSBum
Created March 3, 2018 21:15
Show Gist options
  • Save NSBum/56d0ae08b8550c4184506450506b28b9 to your computer and use it in GitHub Desktop.
Save NSBum/56d0ae08b8550c4184506450506b28b9 to your computer and use it in GitHub Desktop.
Version-agnostic installation of Raspberry Pi BCM2835 library for C
sudo apt-get install html-xml-utils
mkdir -p bcm2835 && (wget -qO - `curl -sL http://www.airspayce.com/mikem/bcm2835 | hxnormalize -x -e | hxselect -s '\n' -c "div.textblock>p:nth-child(4)>a:nth-child(1)"` | tar xz --strip-components=1 -C bcm2835 )
cd bcm2835
./configure
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment