Linphone编译过程问题及其解决方法

1、./configure配置问题      

      

       (1)  No package 'gtk+-2.0' found

                        sudo apt-get install libgtk2.0-dev

       (2) configure: error: Could not find osip2 headers !

                       sudo apt-get install libosips2-dev

   (3) failed to with "configure: error: "Could not find libreadline headers or library"

                       sudo apt-get install libreadline-dev libncurses-dev

       (4)  fail with "checking for SPEEX... configure: error: Package requirements (speex >= 1.1.6) were not met:"

                       sudo apt-get install libspeex-dev

       (5)  configure: error: No libspeexdsp library found.

                      sudo apt-get install libspeexdsp-dev

       (6)  fail with "configure: error: Could not find eXosip2 headers !"

                      sudo apt-get install libexosip2-dev

       (7)  configure: error: Could not find libavcodec (from ffmpeg) headers and library. This is mandatory for video support
                  configure: error: ./configure failed for mediastreamer2

                      sudo apt-get install libavcodec-dev

        (8) configure: error: Could not find libswscale (from ffmpeg) headers and library. This is mandatory for video support
                  configure: error: ./configure failed for mediastreamer2

                     sudo apt-get install libswscale-dev

        (9) configure: error: No X video output API found. Please install X11+Xv headers.
                  configure: error: ./configure failed for mediastreamer2

                     sudo apt-get install libxv-dev libx11-dev

        (10)Missing libv4l2. It is highly recommended to build with
                  libv4l2 headers and library. Many camera will won't work or will crash
                  your application if libv4l2 is not installed.
                  If you know what you are doing, you can use --disable-libv4l2 to disable
                  this check.

                    sudo apt-get install libv4l-dev

            我到这里,所有的问题都编译过去了!会提示一下东西

            * GTK interface will be compiled.
            * Console interface will be compiled.
            Now type 'make' to compile, and then 'make install' as root to install it.

2、make

3、sudo make install (一定要sudo )

 

运行linphone

        问题:

        假如在运行linphone或linphonec出现如下问题:

        

        error while loading shared libraries: libgearman.so.1等

        就运行以下命令:

         sudo ldconfig -v

            

ldconfig命令的用途,主要是在默认搜寻目录(/lib和/usr/lib)以及动态库配置文件/etc/ld.so.conf内所列的目录 下,搜索出可共享的动态链接库(格式如前介绍,lib*.so*),进而创建出动态装入程序(ld.so)所需的连接和缓存文件.缓存文件默认为/etc /ld.so.cache,此文件保存已排好序的动态链接库名字列表.

ldconfig通常在系统启动时运行,而当用户安装了一个新的动态链接库时,就需要手工运行这个命令

你可能感兴趣的:(Linphone编译过程问题及其解决方法)