zoukankan      html  css  js  c++  java
  • Windows下编译linphone

    本博文介绍了再MSYS&MINGW环境中编译linphone(貌似当前版本是3.5.2),可参照解压后README.mingw文件的说明进行编译,下面把主要注意事项进行说明

    1 下载最新版mingw

    从官网http://www.mingw.org/下载最新版mingw-get-inst.exe,例如本人从官网(http://sourceforge.net/projects/mingw/files/MinGW/)下载到的是mingw-get-inst-20120426.exe,如图:

    以默认路径安装:C:\MinGW,安装时正如README.mingw说描述,3个安装选项必须选择:

    Download lastest mingw-get-inst.exe from http://www.mingw.org

    Run mingw-get-inst.exe. Choose "download lastest catalogues".

    In the feature list, select:

    * C compiler

    * C++ compiler

    * Mingw developer toolkit

    Let the installer fetch and install everything.

    在mingw shell命令行执行如下安装和操作:

    mingw-get install msys-zip

    mingw-get install msys-unzip

    mingw-get install msys-wget

    mkdir -p /opt/perl/bin

    cp /bin/perl /opt/perl/bin/.

    2 下载并安装必要工具

    在mingw命令行返回主目录:

    cd ~

    下载intltool(在mingw命令行):

    wget http://ftp.acc.umu.se/pub/GNOME/binaries/win32/intltool/0.40/intltool_0.40.4-1_win32.zip

    下载linphone-deps(利用浏览器):

    http://download.savannah.gnu.org/releases-noredirect/linphone/misc

    下载最新版gtk+ win32 bundle from http://www.gtk.org

    cd /

    unzip ~/ intltool_0.40.4-1_win32.zip

    unzip <path to gtk bundle zip>

    unzip <path to linphone-deps>

    解压后mingw会自动把压缩包中的文件释放到C:\MinGW\msys\1.0相关目录下

    #Install GTK+ Outcrop theme, the one used by linphone for distribution.

    cd /share/themes

    wget http://art.gnome.org/download/themes/gtk2/1122/GTK2-Outcrop.tar.gz

    tar -xvzf GTK2-Outcrop.tar.gz

    #To get the translations working, remove from C:/MinGW/lib :

    libintl.a libintl.la libintl.dll.a

    (貌似和intltool相关库冲突,需删除以上三个库文件,否则console.exe编译不过)

    3 下载并编译最新版的linphone

    It is recommended that you create a directory somewhere with a path without any spaces or ~ characters, for example

    c:\sources\

    Within msys-git bash, do

    cd /c/sources

    git clone git://git.linphone.org/linphone.git --recursive

    之后进行编译,不过以下内容没有搞清楚,

    #Compile and install tunnel

    cd tunnel && ./autogen.sh && ./configure --prefix=/opt/linphone && make && make install

    我是按照下面内容进行编译的

    ./autogen.sh

    ./configure --prefix=/opt/linphone --enable-shared --disable-static

    make

    #will install to /opt/linphone, required for compilation of plugins.

    make install

    #make a binary zip of linphone

    make zip

    #additionally you can make binary installer if you have Inno Setup 5 installed in its default path

    make setup.exe

    #now you're done, you have a fresh linphone windows installer in the current directory.

    我编译成功后在windows下C:\MinGW\msys\1.0\opt\linphone\bin运行linphone.exe时,发现仍会提示少默写库文件,剩下的拷贝工具可能是需要自己做,我就没有再进一步完善了!

    以上是在mingw环境下的编译,在VC环境下直接进行编译比较困难,网上http://code.google.com/p/linphone-vs2008/有一个整理好的3.4.x版本的能直接再VC2008下进行编译,新的3.5.x貌似还需要大牛进行整理!

  • 相关阅读:
    Weblogic_Server与EJB
    EXTJS中的表格控件(一)
    Javascript trim()函数实现
    Ajax技术的基础
    一个Ajax简单实例分析
    jQuery学习之四document ready文档就绪函数
    jQuery学习之八jQuery解析xml文件(摘录)
    jQuery学习之七jQuery效果
    jQuery学习之二css操作
    jQuery学习之六重命名jQuery库
  • 原文地址:https://www.cnblogs.com/zhaoweiwei/p/2960766.html
Copyright © 2011-2022 走看看