Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 2.1 KB

File metadata and controls

60 lines (42 loc) · 2.1 KB
title MRAA Library for 96Boards
permalink /documentation/ConsumerEdition/guides/mraa.md

MRAA Library for 96Boards

96Boards supports MRAA library which is used for accessing on board peripherals. 96Boards enabled pre-built libraries are easy to get, and in some cases might already be included in your current build image. Following instructions provides information about installing the MRAA library as a package and building from source.

Update 96Boards system

The image on your board might be out of date. This is possible even when using the stock image (the operating system your board was shipped with), or a newly flashed version from the 96Boards.org website.

A few useful commands will help us make sure everything on the board is current:

  • apt-get update: Downloads package lists from online repositories and "updates" them to get information on the newest versions of packages and their dependencies.
  • apt-get upgrade: Fetches and installs newest package versions which currently exist on the system. APT must know about these new versions by way of 'apt-get update'
  • apt-get dist-upgrade: In addition to performing the function of upgrade, this option also intelligently handles changing dependencies with new versions of packages

Commands:

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get dist-upgrade

Note: If at any point during this process you are prompted with a 'Y/N', select Y and press Enter.

Install as a package

The following command installs MRAA library as a package.

$ sudo apt-get install libmraa-dev

Build from source

Following instructions specifies installing MRAA library from source.

$ git clone https://github.com/intel-iot-devkit/mraa.git<Enter>
$ mkdir -p mraa/build<Enter>
$ cd mraa/build<Enter>
$ cmake ..<Enter>
$ make <Enter>
$ sudo make install<Enter>
$ sudo ldconfig /usr/local/lib<Enter>

Once you have successfully built the library you can reset the system to pick up all of the changes.

Commands: Reset the system

$ sudo reboot<Enter>