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.
$ sudo apt-get install git libasound2-dev libssl-dev libfontconfig1-dev libharfbuzz-dev
(NOTE: $
denotes command prompt. Do not enter $
when entering commands.)
Download fdk-aac-0.1.6.tar.gz (or the latest version) and run the following commands.
$ tar zxvf fdk-aac-0.1.6.tar.gz
$ cd fdk-aac-0.1.6
$ ./configure
$ make -j4
(takes 3-4 minutes)
$ sudo make install
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
inEnabled indevs
- There is
libfdk_aac
inEnabled 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
$ cd /opt/vc/src/hello_pi/libs/ilclient
$ make
$ 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