XP下编译linphone.doc_第1页
XP下编译linphone.doc_第2页
XP下编译linphone.doc_第3页
XP下编译linphone.doc_第4页
XP下编译linphone.doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Software to install 该文档2011年3月3日星期四 实际编译可行*该文档与源码linphone-3.4.1.tar.gz文件夹内的README.mingw相对应,当进行各项设置后如果出错,请先重启msys然后再调试错误。1、Download lastest mingw-get-inst.exe from 我从官网(/projects/mingw/files/ )上下载到的是mingw-get-inst-20110211.exe 以默认路径安装 C:MinGWRun mingw-get-inst.exe. Choose download lastest catalogues.In the feature list, select:* C compiler* C+ compiler* Mingw developer toolkitLet the installer fetch and install everything.2、In mingw shell, run(安装完成后,打开 C:MinGWmsys1.0msys.bat 依次执行一下命令)mingw-get install msys-zipmingw-get install msys-unzipmingw-get install msys-wgetmkdir -p /opt/perl/bincp /bin/perl /opt/perl/bin/.3、cd #Download intltoolwget http:/ftp.acc.umu.se/pub/GNOME/binaries/win32/intltool/0.40/intltool_0.40.4-1_win32.zip (intltool_0.40.4-1_win32.zip下载后存储位置 C:MinGWmsys1.0homehxcx )Download lastest linphone-deps-win32 zip from /releases-noredirect/linphone/miscusing your browser. ( linphone-deps-win32-110207.zip 须下载最新版本,这是20110303时候下载的最新版本)Download lastest gtk+ win32 bundle from ,进入 - Download页面,页面底部选择对应的操作系统,点击进入,进入页面文件较多,但我们可以下载一个集成包,这儿有两个集成包,我下载的是2.22版本的;Install all these three package in /:cd / (安装上文下载的3个文件,最终结果是要把3个文件释放到C:MinGWmsys1.0目录下)unzip /intltool_0.40.4-1_win32.zipunzip unzip 4、#Install GTK+ Outcrop theme, the one used by linphone for distribution.cd /share/themeswget /download/themes/gtk2/1122/GTK2-Outcrop.tar.gztar -xvzf GTK2-Outcrop.tar.gz5、#Remove the special stdint.h and inttypes.h included in linphone-deps: it is for MSVC only.#Mingw will use the one in /mingw/includerm /include/stdint.h /include/inttypes.h#Remove libgcc specific libraries, only needed for MSVC:rm /lib/libgcc.a /lib/libmingw32.a /lib/libmingwex.a#Remove libintl from gtk, we dont need it and it conflicts with the one supplied by mingw.rm /lib/libintl.dll.arm /include/libintl.h (此处与文档README.mingw原文intl.h ,实际操作后我认为是原文错了) 6、* Download and install Inno Setup Compiler (required only if you run make setup.exe). Add it to your windows Path environment variable.(从网上下载 Inno Setup,较新版本就可以,以默认路径安装,C:Program FilesInno Setup 5;把路径添加到系统变量中;安装完成,打开系统DOS界面,直接执行 Compil32.exe 区分大小写,检查Inno Setup 是否安装正确,正确安装即可打开程序)7、Get Linphone source code*(该步骤作用仅在于自动获取最新linphone源码;我直接从linphone官网下载了linphone-3.4.1.tar.gz 源码,所以该步骤可以不执行 )Install msys-git from (/p/msysgit/)It is recommended that you create a directory somewhere with a path without any spaces or characters, for examplec:sourcesWithin msys-git bash, docd /c/sourcesgit clone git://linphone.git -recursiveBuilding*8、进行编译前,查看perl的版本: perl v 我的版本是5.6.1,其后编译过程中会提示版本过低,我的解决办法是到perl官网 /get.html 下载,下载了ActivePerl-29-MSWin32-x86-294280.msi 默认安装到 C:Perl ;然后把perl文件夹下的所有文件拷贝到 C:MinGWmsys1.0 ,弹出的对话框选择”是”;再次检查版本:WARNING: During the build, windows might slow down suddenly. Using ctl+alt+del to start the windows system monitor, you might see a process LVpSRV.exe or something like this that eats 90% of cpu.Kill it. Dont know what it is, but once killed, windows runs normally.我把源码解压后拷贝到C:MinGWmsys1.0使用,源码可放在任何地方,编译时用CD命令进入;9、#run autogen.sh after a git checkout or update./autogen.sh (如果自己下载源码,未执行第7步骤,则不执行该命令,否则可能出错) ./configure -prefix=/opt/linphone -enable-shared -disable-staticmake#will install to /opt/linphone, required for compilation of plugins.make install ( 执行完 make install之后,在C:MinGWmsys1.0opt下生成linphone文件夹,linphonebin文件夹下的linphonec已可正常运行,如需运行linphone.exe,使用命令 /opt/linphone/bin/linphone.exe ,但显示出来的界面样式比较单调,因为缺少样式文件,在下一步 执行 make zip 时提示错误后修改)#make a binary zip of linphonemake zip( 执行 make zip 提示错误,缺少样式文件gtkrc,到linphone源代码文件中 linphone-installoptlinphonesharethemesMS-Windowsgtk-2.0 文件夹下 拷贝 gtkrc 至 源代码文件的gtk目录下克解决问题。 make zip 执行结束,在当前文件夹下,即源代码文件夹下生成文件 linphone-win32-3.4.1.zip )#additionally you can make binary installer if you have Inno Setup 5 installed in its default pathmake setup.exe#now youre done, you have a fresh linphone windows installer in the current directory.当前文件夹下生成 linphone-3.4.1-setup.exe 编译成功。#build pluginscd mediastreamer2/plugins/msx264./autogen.shPKG_CONFIG_PATH=/opt/linphone/lib/pkgconfig ./configure -prefix=/opt/linphone -enable-shared -disable-static#make a binary zip of this pluginmake zip#or make an installermake setup.exe#the buddylookup plugin enables lookup of buddies in a remote database using xml-rpc over http/https.cd coreapi/plugins/buddylookup./autogen.shPKG_CONFIG_PATH=/opt/linphone/lib/pkgconfig ./configure -prefix=/opt/linphone -enable-shared -disable-static make#make a binary zip of this pluginmake zip* Notes about linphone-deps generation *Linphone-deps is a collection of linphone dependencies, that are for some of them difficultto find as windows binaries.These notes are useful if you want to upgrade part of the software that is included in thelinphone-deps packages.List of software included in linphone-deps:libosip2 (compiled)libeXosip2 (compiled)libavcodec, libavutil, libavformat, libavdevice, libswscale (compiled, all these from ffmpeg)libtheora (from the web)libx264 (compiled from the version distributed from linphones web site)libogg (from the web)libspeex, libspeexdsp (compiled, statically to workaround a dll-related crash)libgnutls (from the web)libgsm (from the web)libxml2 (compiled)libsoup (compiled)Remarks:For every package compiled that goes into linphone-deps, .la files (libtool files) must be removed to avoid libtool errors.When running make install DESTDIR=, somepath must be absolute and should not contain any or space.- building ffmpeg ./configure -enable-shared -disable-static -enable-memalign-hack -extra-cflags=-fno-common -enable-gpl & make make install DESTDIR=/home/ffmpeg-install Copy to /ffmpeg-install/usr/local/* to linphone-deps/. Copy also all *.dll.a files from the build tree to lib/ directort of linphone-deps. These are the implibs necessary to link a program against the dlls.- building libxml2: the binaries found on the internet are generated with MSVC+, and for obscure reason they are not suitable for building libsoup (that requires libxml2). ./configure -enable-shared -disable-static & make & make install DESTDIR=/home/libxml2-install copy /libxml2-install/usr/local/* into linphone-deps/.- building x264: * download yasm normal version windows executable from yasm project page: /projects/yasm/wiki/Download copy it as /usr/local/bin/yasm.exe cd into x264/ dir then run: ./configure -enable-pic make make install DESTDIR=/home/x264-install then copy the content of /x264-install/usr/local/ into linphone-deps/.- libgnutls (required for libsoup https support)- download binary zip from /- add to linphone-deps- building libsoup (only r

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论