Install PJSIP on Raspberry Pi Zero
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
You will find in this article how to compile PJSIP libraries for your Raspberry Pi Zero and w . This allows you to connect to a SIP server to take and make calls in an application.
Prerequisites before compiling:
Install subversion for donwload last version
1 |
sudo apt-get install subversion |
Install tools and library for compiled
1 |
sudo apt-get install build-essential automake autoconf libtool libasound2-dev libpulse-dev libssl-dev libsamplerate0-dev libcommoncpp2-dev libccrtp-dev libzrtpcpp-dev libdbus-1-dev libdbus-c++-dev libyaml-dev libpcre3-dev libgsm1-dev libspeex-dev libspeexdsp-dev libcelt-dev |
Prepare the directory and files:
Create directory and import files
1 2 3 4 |
mkdir pjsip cd pjsip svn checkout http://svn.pjsip.org/repos/pjproject/trunk cd trunck |
Configure the compiler with the specificity of Raspberry Pi Zero
1 2 |
cp ./user.mak.sample ./user.mak namo ./user.mak |
replace this line
1 |
export CFLAGS += -Wno-unused-label -Werror |
by
1 |
export CFLAGS += -mcpu=arm1176jzf-s -mfpu=neon-vfpv4 -mfloat-abi=hard |
make a correction on script aconfigure
1 |
namo ./aconfigure |
go to line 8520
1 2 3 |
*win32* | *w32* | *darwin* | *linux*) ac_webrtc_instset=sse2 *) |
replace by this
1 2 3 4 5 6 7 8 9 10 11 |
*win32* | *w32* | *darwin* | *linux*) case $target in *arm*) ac_webrtc_instset=neon ;; *) ac_webrtc_instset=sse2 ;; esac ;; *) |
compile file:
1 2 |
./configure && make dep && make clean && make sudo make install |
Now you can used your library in your project. You find library information here