• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeRaspberry PiInstall C Libraries for Raspberry Pi
Previous Next

Install C Libraries for Raspberry Pi

Posted by: admin , April 3, 2014

[vc_row][vc_column][vc_column_text]We need to call API of C libraries to access hardware on Raspberry Pi. In this tutorial, we will explain the steps to install two libraries, WiringPi and bcm2835 libraries for Raspberry Pi.[/vc_column_text][vc_tour][vc_tab title=”WiringPi” tab_id=”1396542741-1-97″][vc_column_text]The WiringPi library can be downloaded from https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/.

After download, we enter into the directory WiringPi, and run the following commands:

$chmod 777 build
$./build

After the installation, type:

$gpio -v

to check if the installation is successful or not.[/vc_column_text][/vc_tab][vc_tab title=”Bcm2835″ tab_id=”1396542741-2-37″][vc_column_text]BCM library can be downloaded from: www.airspayce.com/mikem/bcm2835/, 

After download, we put it under a directory named bcm2835-1.25. Enter into the directory, and run:

$./configure
$make
$sudo make check
$sudo make install

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: Raspberry Pi

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors