linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-users] Compiling linphone 3.7 on BBB


From: Chirag Ajmera
Subject: Re: [Linphone-users] Compiling linphone 3.7 on BBB
Date: Thu, 19 Jun 2014 19:27:33 +0530
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Thank You very much BIENKOWSKI Guillaume

will update you on the same.
Btw, things work out of the box with raspberry pi except a few modifications in the bellesip_sal sources under core api.

One last thing,
while testing on rPi I tuned the linphone upload and download bandwidth to 4096, but I dont c any increment in the video framerate/FPS (Video seems too delayed). Kindly can you pls advise on the same

Best,
Chirag A.

On 19-06-2014 Thu 07:13 PM, BIENKOWSKI Guillaume wrote:
Hey Chirag,

Here it is, in Markdown markup:



BeagleBone Black & Linphone

1. Install what's needed to **compile**:

    ```
    sudo apt-get install automake autoconf gnu-standards gettext build-essential pkg-config git libtool antlr3 libantlr3c-dev intltool
    git clone git://git.linphone.org/polarssl
    git clone git://git.linphone.org/belle-sip
    git clone git://git.linphone.org/linphone --recursive
    ```

2. Compile polarssl

        ./autogen.sh
        ./configure
        make -j2 && sudo make install
    
3. Install Java from Oracle (**important**, otherwise ANTLR won't compile correctly the SIP grammar)

    * Unpack in your HOME and setup the PATH and JAVA_HOME:
    
          # put this in your ~/.bashrc ideally
          export PATH="/home/user/jdk-x.y.z/bin:$PATH"
          export JAVA_HOME="/home/user/jdk-x.y.z"
    * Check that `java -version` outputs something like this (with the 'TM'):
   
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13) 

4. Install belle-sip and linphone dependencies

sudo aptitude install libswscale-dev libavcodec-dev libv4l-dev libglew1.6-dev libxml2-dev libgsm1-dev libsqlite3-dev libupnp-dev libsdl1.2-dev

5. Get libvpx from Google and compile it yourself, so that you get the NEON and other optimizations

cd libvpx
CC=cc AR=ar AS=as LD=gcc CXX=g++ ./configure --enable-vp8 --target=armv7-linux-gcc --disable-examples --disable-docs --enable-error-concealment --enable-realtime-only --enable-spatial-resampling --enable-multithread --disable-vp9 --enable-pic 
make -j2
sudo make install

6. Get speex from linphone and compile it with NEON optimizations

git clone git://git.linphone.org/speex
cd speex && ./autogen.sh
./configure --enable-armv7neon-asm --with-pic --enable-fixed-point --disable-oggtest CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 -O3" --disable-ogg
make -j2 && sudo make install


7. Compile and install `belle-sip`

        ./autogen.sh
        ./configure
        make && sudo make install
        # optional: perform belle-sip tests
        cd tester && ./belle_sip_tester
        
8. Compile and install `linphone`

./autogen.sh
        ./configure --disable-x11 --enable-gtk_ui=no --disable-xv --enable-sdl
        # Note: Wno-error is here because otherwise mediastreamer complains about not used functions
        make V=1 CFLAGS="-Wno-error" && sudo make install

9. Test that linphone passes the tests

cd tester && ./liblinphone_tester

10. <s>To enable video: install omapfb driver

sudo apt-get install xserver-xorg-video-omap3
sudo reboot
cat /var/log/Xorg.0.log | grep omapfb
xvinfo -display :0.0 # should show "OMAP XV adaptor"
</s>
Not supported by BBB....
11. Setup video output in linphonerc

    This will force the video display to use the SDL output

#launch linphone once to create it
linphonec
# type quit
#edit the linphonerc file
nano ~/.linphonerc
# find the [video] section and put or replace:
displaytype=MSVideouOut




On Thu, Jun 19, 2014 at 2:52 PM, Chirag Ajmera <address@hidden> wrote:
belle-sip is from git, whereas linphone is the latest source 3.7 tar file

Yes, i would greatly appreciate that !


Thank You
Br,
Chirag A.

On 19-06-2014 Thu 06:14 PM, BIENKOWSKI Guillaume wrote:
Hello Chirag,

Are you using the very last belle-sip and linphone versions?
To me it looks like a mismatch between the two of them.
Note that I have a very detailed readme for compilation on BBB, would you be interested?

Regards,



On Thu, Jun 19, 2014 at 11:04 AM, Chirag Ajmera <address@hidden> wrote:
Kindly guide with the compilation error on ARM-Beagleboneblack.

  CC     xml.lo
  CC     xml2lpc.lo
  CC     lpc2xml.lo
  CC     remote_provisioning.lo
remote_provisioning.c: In function 'linphone_remote_provisioning_download_and_apply':
remote_provisioning.c:86:3: warning: initialization from incompatible pointer type [enabled by default]
remote_provisioning.c:86:3: warning: (near initialization for 'belle_request_listener.process_response') [enabled b                                                                                                                          y default]
remote_provisioning.c:87:3: warning: initialization from incompatible pointer type [enabled by default]
remote_provisioning.c:87:3: warning: (near initialization for 'belle_request_listener.process_io_error') [enabled b                                                                                                                          y default]
remote_provisioning.c:89:2: warning: initialization from incompatible pointer type [enabled by default]
remote_provisioning.c:89:2: warning: (near initialization for 'belle_request_listener.process_timeout') [enabled by                                                                                                                           default]
  CC     upnp.lo
  CC     bellesip_sal/sal_address_impl.lo
  CC     bellesip_sal/sal_impl.lo
bellesip_sal/sal_impl.c: In function 'sal_process_authentication':
bellesip_sal/sal_impl.c:135:2: warning: passing argument 4 of 'belle_sip_provider_add_authorization' from incompatible pointer type [enabled by default]
/usr/local/include/belle-sip/provider.h:69:21: note: expected 'struct belle_sip_uri_t *' but argument is of type 'struct belle_sip_list_t **'
bellesip_sal/sal_impl.c:135:2: error: too few arguments to function 'belle_sip_provider_add_authorization'
/usr/local/include/belle-sip/provider.h:69:21: note: declared here
make[4]: *** [bellesip_sal/sal_impl.lo] Error 1
make[4]: Leaving directory `/home/debian/linphone-3.7.0/coreapi'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/debian/linphone-3.7.0/coreapi'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/debian/linphone-3.7.0/coreapi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/debian/linphone-3.7.0'
make: *** [all] Error 2

--
Thank You
Br,
Chirag A.


_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]