http://blog.csdn.net/wavemcu/article/details/8743737

 

**************************************************************************************************************************
作者:EasyWave                                                                                 时间:2013.03.31

类别:Linux 应用LinPhone                                                              声明:转载,请保留链接

注意:如有错误,欢迎指正。这些是我学习的日志文章......

***************************************************************************************************************************

在《 基于Linux开源VOIP系统LinPhone[五] 》中,详细的介绍了speex库如果不需要libogg库的详细地修改方法,现在说说,linphone如何编译,前面已经说了。如果只编译不带ui和只有audio版本的linphone,只需要speex、readline、osip、eXosip以及ncurses库即可。如下图所示:

如果只编译不带ui和只有audio版本的linphone,是的,只需要以上几个库就可以了。

还是先在linphone3.5.2的目录下建立一个build.sh的文件,同时用命令:./configure -h来看看需要进行那些配置,如下所示:

  1. /work/prj/packages/PRJ/trunk$ ./configure -h 
  2. `configure' configures linphone 3.5.2 to adapt to many kinds of systems. 
  3.  
  4. Usage: ./configure [OPTION]... [VAR=VALUE]... 
  5.  
  6. To assign environment variables (e.g., CC, CFLAGS...), specify them as 
  7. VAR=VALUE.  See below for descriptions of some of the useful variables. 
  8.  
  9. Defaults for the options are specified in brackets. 
  10.  
  11. Configuration: 
  12.   -h, --help              display this help and exit 
  13.       --help=short        display options specific to this package 
  14.       --help=recursive    display the short help of all the included packages 
  15.   -V, --version           display version information and exit 
  16.   -q, --quiet, --silent   do not print `checking ...' messages 
  17.       --cache-file=FILE   cache test results in FILE [disabled] 
  18.   -C, --config-cache      alias for `--cache-file=config.cache' 
  19.   -n, --no-create         do not create output files 
  20.       --srcdir=DIR        find the sources in DIR [configure dir or `..'] 
  21.  
  22. Installation directories: 
  23.   --prefix=PREFIX         install architecture-independent files in PREFIX 
  24.                           [/usr/local] 
  25.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX 
  26.                           [PREFIX] 
  27.  
  28. By default, `make install' will install all the files in 
  29. `/usr/local/bin', `/usr/local/lib' etc.  You can specify 
  30. an installation prefix other than `/usr/local' using `--prefix', 
  31. for instance `--prefix=$HOME'. 
  32.  
  33. For better control, use the options below. 
  34.  
  35. Fine tuning of the installation directories: 
  36.   --bindir=DIR            user executables [EPREFIX/bin] 
  37.   --sbindir=DIR           system admin executables [EPREFIX/sbin] 
  38.   --libexecdir=DIR        program executables [EPREFIX/libexec] 
  39.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] 
  40.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] 
  41.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] 
  42.   --libdir=DIR            object code libraries [EPREFIX/lib] 
  43.   --includedir=DIR        C header files [PREFIX/include] 
  44.   --oldincludedir=DIR     C header files for non-gcc [/usr/include] 
  45.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] 
  46.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] 
  47.   --infodir=DIR           info documentation [DATAROOTDIR/info] 
  48.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] 
  49.   --mandir=DIR            man documentation [DATAROOTDIR/man] 
  50.   --docdir=DIR            documentation root [DATAROOTDIR/doc/linphone] 
  51.   --htmldir=DIR           html documentation [DOCDIR] 
  52.   --dvidir=DIR            dvi documentation [DOCDIR] 
  53.   --pdfdir=DIR            pdf documentation [DOCDIR] 
  54.   --psdir=DIR             ps documentation [DOCDIR] 
  55.  
  56. Program names: 
  57.   --program-prefix=PREFIX            prepend PREFIX to installed program names 
  58.   --program-suffix=SUFFIX            append SUFFIX to installed program names 
  59.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names 
  60.  
  61. System types: 
  62.   --build=BUILD     configure for building on BUILD [guessed] 
  63.   --host=HOST       cross-compile to build programs to run on HOST [BUILD] 
  64.   --target=TARGET   configure for building compilers for TARGET [HOST] 
  65.  
  66. Optional Features: 
  67.   --disable-option-checking  ignore unrecognized --enable/--with options 
  68.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) 
  69.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] 
  70.   --enable-silent-rules          less verbose build output (undo: `make V=1') 
  71.   --disable-silent-rules         verbose build output (undo: `make V=0') 
  72.   --disable-dependency-tracking  speeds up one-time build 
  73.   --enable-dependency-tracking   do not reject slow dependency extractors 
  74.   --disable-nls           do not use Native Language Support 
  75.   --enable-shared[=PKGS]  build shared libraries [default=yes] 
  76.   --enable-static[=PKGS]  build static libraries [default=no] 
  77.   --enable-fast-install[=PKGS] 
  78.                           optimize for fast installation [default=yes] 
  79.   --disable-libtool-lock  avoid locking (might break parallel builds) 
  80.   --disable-rpath         do not hardcode runtime library paths 
  81.   --disable-x11    Disable X11 support 
  82.   --enable-console_ui=yes/no    Turn on or off compilation of console interface default=yes 
  83.   --enable-gtk_ui=yes/no    Turn on or off compilation of gtk interface default=yes 
  84.   --enable-notify=yes/no    Enable libnotify support default=yes 
  85.   --enable-relativeprefix    Build a linphone that finds its resources relatively to the directory where it is installed 
  86.   --enable-date    Use build date in internal version number 
  87.   --enable-ipv6    Turn on ipv6 support 
  88.   --enable-truespeech    Turn on TrueSpeech support (x86 only) 
  89.   --enable-nonstandard-gsm    Enable GSM codec at nonstandard rates (11025hz, 16000hz) 
  90.   --enable-rsvp           enable support for QoS reservations. 
  91.   --enable-ssl    Turn on ssl support compiling. Required for sip tls. default = false 
  92.   --enable-video    Turn on video support compiling 
  93.   --enable-alsa    Turn on alsa native support compiling 
  94.   --enable-zrtp    Turn on zrtp support 
  95.   --enable-portaudio    Turn on portaudio native support compiling 
  96.   --enable-strict         Build with stricter options (gcc only) [yes] 
  97.   --enable-external-mediastreamer 
  98.                           Use external mediastreamer library 
  99.   --enable-tunnel=yes/no    Turn on compilation of tunnel support default=no 
  100.   --enable-external-ortp    Use external oRTP library 
  101.   --disable-tests    Disable compilation of tests 
  102.  
  103. Optional Packages: 
  104.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] 
  105.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) 
  106.   --with-pic              try to use only PIC/non-PIC objects [default=use 
  107.                           both] 
  108.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no] 
  109.   --with-gnu-ld           assume the C compiler uses GNU ld default=no 
  110.   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib 
  111.   --without-libiconv-prefix     don't search for libiconv in includedir and libdir 
  112.   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib 
  113.   --without-libintl-prefix     don't search for libintl in includedir and libdir 
  114.   --with-configdir      Set a APPDATA subdir where linphone is supposed to find its config (windows only) 
  115.   --with-osip      Set prefix where osip can be found (ex:/usr or /usr/local)default=/usr 
  116.   --with-readline      Set prefix where gnu readline headers and libs can be found (ex:/usr, /usr/local, none) default=/usr 
  117.   --with-ffmpeg         Sets the installation prefix of ffmpeg, needed for video support. default=/usr 
  118.  
  119. Some influential environment variables: 
  120.   CC          C compiler command 
  121.   CFLAGS      C compiler flags 
  122.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a 
  123.               nonstandard directory <lib dir> 
  124.   LIBS        libraries to pass to the linker, e.g. -l<library> 
  125.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 
  126.               you have headers in a nonstandard directory <include dir> 
  127.   CXX         C++ compiler command 
  128.   CXXFLAGS    C++ compiler flags 
  129.   CPP         C preprocessor 
  130.   CXXCPP      C++ preprocessor 
  131.   PKG_CONFIG  path to pkg-config utility 
  132.   PKG_CONFIG_PATH 
  133.               directories to add to pkg-config's search path 
  134.   PKG_CONFIG_LIBDIR 
  135.               path overriding pkg-config's built-in search path 
  136.   LIBGTK_CFLAGS 
  137.               C compiler flags for LIBGTK, overriding pkg-config 
  138.   LIBGTK_LIBS linker flags for LIBGTK, overriding pkg-config 
  139.   LIBGTKMAC_CFLAGS 
  140.               C compiler flags for LIBGTKMAC, overriding pkg-config 
  141.   LIBGTKMAC_LIBS 
  142.               linker flags for LIBGTKMAC, overriding pkg-config 
  143.   NOTIFY4_CFLAGS 
  144.               C compiler flags for NOTIFY4, overriding pkg-config 
  145.   NOTIFY4_LIBS 
  146.               linker flags for NOTIFY4, overriding pkg-config 
  147.   NOTIFY1_CFLAGS 
  148.               C compiler flags for NOTIFY1, overriding pkg-config 
  149.   NOTIFY1_LIBS 
  150.               linker flags for NOTIFY1, overriding pkg-config 
  151.   OSIP_CFLAGS C compiler flags for OSIP, overriding pkg-config 
  152.   OSIP_LIBS   linker flags for OSIP, overriding pkg-config 
  153.   OPENSSL_CFLAGS 
  154.               C compiler flags for OPENSSL, overriding pkg-config 
  155.   OPENSSL_LIBS 
  156.               linker flags for OPENSSL, overriding pkg-config 
  157.   SPEEX_CFLAGS 
  158.               C compiler flags for SPEEX, overriding pkg-config 
  159.   SPEEX_LIBS  linker flags for SPEEX, overriding pkg-config 
  160.   LIBSOUP_CFLAGS 
  161.               C compiler flags for LIBSOUP, overriding pkg-config 
  162.   LIBSOUP_LIBS 
  163.               linker flags for LIBSOUP, overriding pkg-config 
  164.   MEDIASTREAMER_CFLAGS 
  165.               C compiler flags for MEDIASTREAMER, overriding pkg-config 
  166.   MEDIASTREAMER_LIBS 
  167.               linker flags for MEDIASTREAMER, overriding pkg-config 
  168.   TUNNEL_CFLAGS 
  169.               C compiler flags for TUNNEL, overriding pkg-config 
  170.   TUNNEL_LIBS linker flags for TUNNEL, overriding pkg-config 
  171.   ORTP_CFLAGS C compiler flags for ORTP, overriding pkg-config 
  172.   ORTP_LIBS   linker flags for ORTP, overriding pkg-config 
  173.  
  174. Use these variables to override the choices made by `configure' or to help 
  175. it to find libraries and programs with nonstandard names/locations. 
  176.  
  177. Report bugs to <linphone-developers@nongnu.org>. 
/work/prj/packages/PRJ/trunk$ ./configure -h
`configure' configures linphone 3.5.2 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/linphone]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --disable-nls           do not use Native Language Support
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=no]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-rpath         do not hardcode runtime library paths
  --disable-x11    Disable X11 support
  --enable-console_ui=yes/no    Turn on or off compilation of console interface default=yes
  --enable-gtk_ui=yes/no    Turn on or off compilation of gtk interface default=yes
  --enable-notify=yes/no    Enable libnotify support default=yes
  --enable-relativeprefix    Build a linphone that finds its resources relatively to the directory where it is installed
  --enable-date    Use build date in internal version number
  --enable-ipv6    Turn on ipv6 support
  --enable-truespeech    Turn on TrueSpeech support (x86 only)
  --enable-nonstandard-gsm    Enable GSM codec at nonstandard rates (11025hz, 16000hz)
  --enable-rsvp           enable support for QoS reservations.
  --enable-ssl    Turn on ssl support compiling. Required for sip tls. default = false
  --enable-video    Turn on video support compiling
  --enable-alsa    Turn on alsa native support compiling
  --enable-zrtp    Turn on zrtp support
  --enable-portaudio    Turn on portaudio native support compiling
  --enable-strict         Build with stricter options (gcc only) [yes]
  --enable-external-mediastreamer
                          Use external mediastreamer library
  --enable-tunnel=yes/no    Turn on compilation of tunnel support default=no
  --enable-external-ortp    Use external oRTP library
  --disable-tests    Disable compilation of tests

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
  --without-libintl-prefix     don't search for libintl in includedir and libdir
  --with-configdir      Set a APPDATA subdir where linphone is supposed to find its config (windows only)
  --with-osip      Set prefix where osip can be found (ex:/usr or /usr/local)default=/usr
  --with-readline      Set prefix where gnu readline headers and libs can be found (ex:/usr, /usr/local, none) default=/usr
  --with-ffmpeg         Sets the installation prefix of ffmpeg, needed for video support. default=/usr

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor
  CXXCPP      C++ preprocessor
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  LIBGTK_CFLAGS
              C compiler flags for LIBGTK, overriding pkg-config
  LIBGTK_LIBS linker flags for LIBGTK, overriding pkg-config
  LIBGTKMAC_CFLAGS
              C compiler flags for LIBGTKMAC, overriding pkg-config
  LIBGTKMAC_LIBS
              linker flags for LIBGTKMAC, overriding pkg-config
  NOTIFY4_CFLAGS
              C compiler flags for NOTIFY4, overriding pkg-config
  NOTIFY4_LIBS
              linker flags for NOTIFY4, overriding pkg-config
  NOTIFY1_CFLAGS
              C compiler flags for NOTIFY1, overriding pkg-config
  NOTIFY1_LIBS
              linker flags for NOTIFY1, overriding pkg-config
  OSIP_CFLAGS C compiler flags for OSIP, overriding pkg-config
  OSIP_LIBS   linker flags for OSIP, overriding pkg-config
  OPENSSL_CFLAGS
              C compiler flags for OPENSSL, overriding pkg-config
  OPENSSL_LIBS
              linker flags for OPENSSL, overriding pkg-config
  SPEEX_CFLAGS
              C compiler flags for SPEEX, overriding pkg-config
  SPEEX_LIBS  linker flags for SPEEX, overriding pkg-config
  LIBSOUP_CFLAGS
              C compiler flags for LIBSOUP, overriding pkg-config
  LIBSOUP_LIBS
              linker flags for LIBSOUP, overriding pkg-config
  MEDIASTREAMER_CFLAGS
              C compiler flags for MEDIASTREAMER, overriding pkg-config
  MEDIASTREAMER_LIBS
              linker flags for MEDIASTREAMER, overriding pkg-config
  TUNNEL_CFLAGS
              C compiler flags for TUNNEL, overriding pkg-config
  TUNNEL_LIBS linker flags for TUNNEL, overriding pkg-config
  ORTP_CFLAGS C compiler flags for ORTP, overriding pkg-config
  ORTP_LIBS   linker flags for ORTP, overriding pkg-config

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <linphone-developers@nongnu.org>.


看到了。需要很多的配置选项,不过,对于没有用到,我们可以将其disable掉,所示最终的编译选项如下所示:

  1. #!/bin/bash 
  2.  
  3. INSTALL_PATH=`pwd`/_install 
  4.  
  5. mkdir -p $INSTALL_PATH 
  6.  
  7. #autoreconf -ivf 
  8. if [ -f config.h ]; then 
  9.     make distclean 
  10. fi 
  11.  
  12. make distclean 
  13.  
  14. ./configure --prefix=$INSTALL_PATH \ 
  15.             --host=arm-none-linux-gnueabi \ 
  16.         --build=i486-linux-gnu \ 
  17.         --disable-silent-rules \ 
  18.         --disable-dependency-tracking  \ 
  19.         --enable-nls \ 
  20.         --enable-shared=yes \ 
  21.         --enable-static=no \ 
  22.         --enable-fast-install=yes \ 
  23.         --disable-libtool-lock \ 
  24.         --disable-rpath \ 
  25.         --disable-x11 \ 
  26.         --enable-console_ui \ 
  27.         --enable-gtk_ui=no \ 
  28.         --enable-notify=no \ 
  29.         --disable-relativeprefix \ 
  30.         --enable-date \ 
  31.         --enable-ipv6 \ 
  32.         --disable-truespeech \ 
  33.         --disable-nonstandard-gsm \ 
  34.         --disable-rsvp \ 
  35.         --disable-ssl \ 
  36.         --disable-video \ 
  37.         --disable-alsa \ 
  38.         --disable-zrtp \ 
  39.         --disable-portaudio \ 
  40.         --disable-strict \ 
  41.         --enable-tunnel=no \ 
  42.         --disable-external-ortp \ 
  43.         --enable-tests \ 
  44.             --enable-oss \ 
  45.         --disable-artsc \ 
  46.         --disable-macsnd \ 
  47.         --disable-macaqsnd \ 
  48.         --disable-pulseaudio \ 
  49.         --enable-speex \ 
  50.         --disable-gsm \ 
  51.         --disable-spandsp \ 
  52.         --disable-ffmpeg \ 
  53.         --disable-sdl \ 
  54.         --disable-x11 \ 
  55.         --disable-xv \ 
  56.         --disable-theora \ 
  57.         --disable-vp8 \ 
  58.         --disable-libv4l1 \ 
  59.         --disable-libv4l2 \ 
  60.             --with-gnu-ld \ 
  61.             --with-readline=$INSTALL_PATH \ 
  62.             OSIP_LIBS="-L$INSTALL_PATH/lib" \ 
  63.             SPEEXDSP_CFLAGS="-I$INSTALL_PATH/include" \ 
  64.             SPEEXDSP_LIBS="-L$INSTALL_PATH/lib" \ 
  65.             SPEEX_CFLAGS="-I$INSTALL_PATH/include" \ 
  66.             SPEEX_LIBS="-L$INSTALL_PATH/lib" \ 
  67.             OSIP_CFLAGS="-I$INSTALL_PATH/include" \ 
  68.             ORTP_LIBS="-L$INSTALL_PATH/lib" \ 
  69.             ORTP_CFLAGS="-I$INSTALL_PATH/include" 
  70.              
  71. if [ $? -eq 0 ]; then 
  72.         make 
  73.         if [ $? -eq 0 ]; then 
  74.                 make install 
  75.                 exit 0 
  76.         fi 
  77. fi 
  78. exit 1 
#!/bin/bash

INSTALL_PATH=`pwd`/_install

mkdir -p $INSTALL_PATH

#autoreconf -ivf
if [ -f config.h ]; then
	make distclean
fi

make distclean

./configure --prefix=$INSTALL_PATH \
            --host=arm-none-linux-gnueabi \
	    --build=i486-linux-gnu \
	    --disable-silent-rules \
	    --disable-dependency-tracking  \
	    --enable-nls \
	    --enable-shared=yes \
	    --enable-static=no \
	    --enable-fast-install=yes \
	    --disable-libtool-lock \
	    --disable-rpath \
	    --disable-x11 \
	    --enable-console_ui \
	    --enable-gtk_ui=no \
	    --enable-notify=no \
	    --disable-relativeprefix \
	    --enable-date \
	    --enable-ipv6 \
	    --disable-truespeech \
	    --disable-nonstandard-gsm \
	    --disable-rsvp \
	    --disable-ssl \
	    --disable-video \
	    --disable-alsa \
	    --disable-zrtp \
	    --disable-portaudio \
	    --disable-strict \
	    --enable-tunnel=no \
	    --disable-external-ortp \
	    --enable-tests \
            --enable-oss \
	    --disable-artsc \
	    --disable-macsnd \
	    --disable-macaqsnd \
	    --disable-pulseaudio \
	    --enable-speex \
	    --disable-gsm \
	    --disable-spandsp \
	    --disable-ffmpeg \
	    --disable-sdl \
	    --disable-x11 \
	    --disable-xv \
	    --disable-theora \
	    --disable-vp8 \
	    --disable-libv4l1 \
	    --disable-libv4l2 \
            --with-gnu-ld \
            --with-readline=$INSTALL_PATH \
            OSIP_LIBS="-L$INSTALL_PATH/lib" \
            SPEEXDSP_CFLAGS="-I$INSTALL_PATH/include" \
            SPEEXDSP_LIBS="-L$INSTALL_PATH/lib" \
            SPEEX_CFLAGS="-I$INSTALL_PATH/include" \
            SPEEX_LIBS="-L$INSTALL_PATH/lib" \
            OSIP_CFLAGS="-I$INSTALL_PATH/include" \
            ORTP_LIBS="-L$INSTALL_PATH/lib" \
            ORTP_CFLAGS="-I$INSTALL_PATH/include"
			
if [ $? -eq 0 ]; then
        make
        if [ $? -eq 0 ]; then
                make install
                exit 0
        fi
fi
exit 1


需要注意的是,需要先将speex、readline、osip、eXosip以及ncurses编译之后的库,拷贝到linphone3.5.2文件夹中的_install文件夹中。最后执行./build.sh即可。

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐