Skip to content

Instantly share code, notes, and snippets.

@annem
Forked from petrockblog/gist:3051568
Created July 26, 2012 18:01
Show Gist options
  • Save annem/3183536 to your computer and use it in GitHub Desktop.
Save annem/3183536 to your computer and use it in GitHub Desktop.
Download, compile, and install the Broadcom BCM 2835 library for the Raspberry Pi
cd;
// wget http://www.open.com.au/mikem/bcm2835/bcm2835-1.5.tar.gz; // My Pi can't figure out this URL
wget http://67.192.60.197/mikem/bcm2835/bcm2835-1.5.tar.gz
tar xvfz bcm2835-1.5.tar.gz;
cd bcm2835-1.5;
./configure;
make;
sudo make install
@adavidzh
Copy link

I cooked up this one so I do not have to think about version numbers:

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

@ayyappan-m
Copy link

i have using rasbperry pi 3 cross compiler in linux but how to add my processor library (bcm2837.h)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment