Compile mediastreamer2/FFMPEG/Linphone (x86 Platform)

Source: Internet
Author: User
Tags linphone

------------------------ Compile mediastreamer2 in x86 environment --------------------------------------
1) Compile Ogg library audio codec http://www.xiph.org/downloads/
./Configure -- prefix =/usr -- disable-static
2) Compile the speex Audio Codec
./Configure -- prefix =/usr -- disable-static -- enable-fixed-point -- disable-float-API -- With-Ogg =/usr
3) Compile ortp library http://download.savannah.gnu.org/releases/linphone/ortp/sources/
./Configure -- prefix =/usr -- disable-static
-------------------- You can compile a video without support for mediastream -------------------------
Compile mediastream:
./Configure -- prefix =/usr -- disable-static -- enable-macsnd = No -- enable-Video = No -- enable-tests -- disable-GSM pkg_config_path =/usr/lib/pkgconfig

4) Compile SDL Simple DirectMedia Layer multimedia development kit: http://www.libsdl.org/
./Configure -- prefix =/usr -- enable-shared

5) Compile lame MP3 Encoder: http://lame.sourceforge.net/download.php
./Configure -- prefix =/usr -- enable-shared

6) Compile Xvid MPEG-4 video codec: http://www.xvid.org/
CD xvidcore/build/generic
./Configure -- prefix =/usr -- enable-shared
Make & make install

7) Compile yasm NASM compiler er x264 need to use the assembly compiler: http://yasm.tortall.net/http://download.chinaunix.net/download/0013000/12166.shtml
./Configure -- prefix =/usr -- enable-shared
Make & make install

8) Compile x264 http://download.videolan.org/pub/videolan/x264/snapshots/
./Configure -- prefix =/usr -- enable-shared
Make & make install

(9) Compile APR Apache Portable Runtime Library to provide an underlying support interface library HTTP required http://apr.apache.org/download.cgi for upper-layer applications that can be used across multiple operating system platforms
./Configure -- prefix =/usr -- enable-shared
Make & make install

10) Compile apr_util http://apr.apache.org/download.cgi
./Configure -- prefix =/usr -- With-Apr =/usr -- enable-shared
Make & Install

11) Compile PCRE is a Perl library, solve the problem of using regular expressions in C Language ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
./Configure -- prefix =/usr -- With-Apr =/usr -- enable-shared
Make & Install

12) Compile Apache HTTP web server-side software http://www.apache.org http://mirror.bjtu.edu.cn/apache/httpd/
./Configure -- With-Apr =/usr -- With-Apr-util =/usr -- With-PCRE =/usr -- enable-shared -- prefix =/usr
Make & Install

Run./HTTP-K start in the browser and enter the http://192.168.1.XXX to test whether the installation is successful. If yes, it works!
Disable./HTTP-K stop after testing.

13) Compile FFMPEG http://ffmpeg.org/download.html
. /Configure -- prefix =/usr -- enable-shared -- enable-libmp3lame -- enable-shared -- enable-libxvid -- enable-GPL -- enable-pthreads -- enable-ffserver -- enable-ffplay -- enable-libx264 -- enable-pthreads

------------------------------ FFMPEG compilation has been completed ----------------------------------------------------------------------

14) Compile the mediastream http://mirror.yongbok.net/nongnu/linphone/mediastreamer/
./Configure -- prefix =/usr -- disable-static -- enable-Video = yes -- enable-tests -- disable-GSM -- enable-FFMPEG -- enable-SDL

------------------------ To compile a Linphone, follow these steps -------------------------

15) Compile Osip libosip2-3.2.0.tar.gz (http://ftp.gnu.org/gnu/osip)
16) Compile libeXosip2-3.3.0.tar.gz (http://ftp.twaren.net/Unix/NonGNU/exosip)

17) Compile Linphone (http://www.linphone.org/index.php/eng/download)
No video
./Configure -- prefix =/home/UB/myinstallprogram -- disable-video -- With-Osip =/home/UB/mylib
Video available
Root @ Ubuntu:/usr/src/linphone-3.5.2 #. /configure -- prefix =/home/Ubuntu/myinstallprogram/-- enable-video -- enable-ALSA -- With-Osip =/usr -- With-Readline =/usr -- With-FFMPEG =/ USR -- With-SDL =/usr

----------------------- Possible problems ------------------------------------
 
1. Compile the database
CD./db-4.5.20/build_unix
../Dist/configure -- prefix =/usr/local/db-4.5.20
Make & make install

2,
Error: Package requirements (GTK +-2.0> = 2.18.0 gthread-2.0) were not met:
:
Sudo apt-Get install libperl-Dev
Sudo apt-Get install libgtk2.0-Dev

3. No G ++ installed, sudo apt-Get install g ++
Error
Configure: Error: C ++ compiler cannot create executables
Configure: Error: GNU gettext tools not found; required for intltool
Sudo apt-Get install g ++

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.