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 libosip2-dev
       (3)
failed to with "configure: error: "Could not find libreadline headers or library"
                     apt-get install libreadline5-dev
        (4) fail with "checking for SPEEX... configure: error: Package requirements (speex >= 1.1.6) were not met:"
                     apt-get install libspeex-dev
        (5)  fail with "configure: error: Could not find eXosip2 headers !"
                     apt-get install libeXosip2-dev

        (6)    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

        (7)    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

        (8)    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

        (9) 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等

        就運行以下命令

         /sbin/ldconfig -v

            

ldconfig命令的用途,主要是在默認搜尋目錄(/lib和/usr/lib)以及動態庫配置文件/etc/ld.so.conf內所列的目錄 下,搜索出可共享的動態鏈接庫(格式如前介紹,lib*.so*),進而創建出動態裝入程序(ld.so)所需的連接和緩存文件.緩存文件默認爲/etc /ld.so.cache,此文件保存已排好序的動態鏈接庫名字列表.

ldconfig通常在系統啓動時運行,而當用戶安裝了一個新的動態鏈接庫時,就需要手工運行這個命令
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章