Skip to content

Instantly share code, notes, and snippets.

@annem
Forked from petrockblog/gist:3051568
Created July 26, 2012 18:01
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • 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
@malakaisbest
Copy link

latest version (2016-01-16)
bcm2835-1.49.tar.gz

wget http://www.open.com.au/mikem/bcm2835/bcm2835-1.49.tar.gz
tar xvfz bcm2835-1.49.tar.gz; 
cd bcm2835-1.49;

Copy link

ghost commented Aug 15, 2016

// Thanks @annem, I think the url and version formatting have changed again in the meantime. This worked for me:
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar.gz;
tar xvfz bcm2835-1.50.tar.gz;
cd bcm2835-1.50;
./configure;
make;
sudo make install

@markbernard
Copy link

@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