Skip to content

Latest commit

 

History

History
90 lines (59 loc) · 1.69 KB

BUILDING.md

File metadata and controls

90 lines (59 loc) · 1.69 KB

picam build instructions

This file explains how to build picam yourself. The whole process takes under an hour on Raspberry Pi 2 or 3. For Raspberry Pi 1 or Zero users, please do cross compiling instead, because build process takes too long on those hardware.

Steps

Install required packages

$ sudo apt-get install git libasound2-dev libssl-dev libfontconfig1-dev libharfbuzz-dev

(NOTE: $ denotes command prompt. Do not enter $ when entering commands.)

Build and install fdk-aac

Download fdk-aac-2.0.1.tar.gz (or the latest version) and run the following commands.

$ tar zxvf fdk-aac-2.0.1.tar.gz
$ cd fdk-aac-2.0.1
$ ./configure
$ make -j4
(takes 3-4 minutes)
$ sudo make install

Build and install ffmpeg

NOTE: Do not use apt-get for installing ffmpeg.

Download ffmpeg source and configure it:

$ git clone https://git.ffmpeg.org/ffmpeg.git
$ cd ffmpeg
$ ./configure --enable-libfdk-aac
(takes about one minute)

In the output of configure, make sure that:

  • There is alsa in Enabled indevs
  • There is libfdk_aac in Enabled encoders

Run the following commands to build and install ffmpeg.

$ make -j4
(takes 25-40 minutes)
$ sudo make install

Run ldconfig in order to resolve dynamic linker problems.

$ sudo ldconfig

Build libilclient

$ cd /opt/vc/src/hello_pi/libs/ilclient
$ make

Build picam

$ git clone https://github.com/iizukanao/picam.git
$ cd picam
$ make -j4

You can save some disk space by running strip.

$ strip picam

Check if picam runs without errors.

$ ./picam --help