1. 主页 > vs安装问题 > VS2013安装问题 >

vs2013+linphone3.7.0编译(win7系统)

编译前准备

1.intall CMake >= 3.0 add C:\Program Files\CMake\bin in the PATH
下载地址:(http://download.csdn.net/detail/sunxianliang1/9665581)或者(https://cmake.org/download/)

2.install Git 
下载地址:(http://download.csdn.net/detail/sunxianliang1/9665611)或者(https://git-scm.com/download/win)

3.install 7-zip to generate SDK packages 
下载地址:(http://download.csdn.net/detail/sunxianliang1/9665573)或者(http://www.7-zip.org/)

4.install Visual Studio 2013(必须安装更新包,更新到5)

5.install Python 2.7.12, with 'pip' command. On windows, add c:\Python27\Scripts in the PATH.
下载地址:(http://download.csdn.net/detail/sunxianliang1/9665630)或者(https://www.python.org/downloads/)

6.install Java add JAVA_HOME=C:\Program Files\Java\jdk1.7.0_55;%JAVA_HOME%\bin; in the PATH
下载地址:(http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html)

7.install awk sed patch yasm pkg-config intltoolize(automatically installed when building on Windows)
这个在编译linphone时会自行安装

8.install doxygen add C:\Program Files\doxygen\bin in the PATH
下载地址:(http://download.csdn.net/detail/sunxianliang1/9665593)或者(http://www.stack.nl/~dimitri/doxygen/download.html)

9.install dot (graphviz) add C:\Program Files (x86)\Graphviz2.38;C:\Program Files (x86)\Graphviz2.38\bin; in the PATH
下载地址:(http://download.csdn.net/detail/sunxianliang1/9665620)或者(http://graphviz.org/Download.php)

10.install pystache(pystache-0.5.4.tar.gz) 在命令行执行pip install E:\pystache-0.5.4.tar.gz
下载地址:(http://download.csdn.net/detail/sunxianliang1/9665624)或者(https://pypi.python.org/simple/pystache/)

11.install wheel(wheel-0.29.0.tar.gz) 在命令行执行pip install E:\wheel-0.29.0.tar.gz
下载地址:(http://download.csdn.net/detail/sunxianliang1/9665653)或者(https://pypi.python.org/simple/wheel/)

12.install MinGw add C:\MinGW\bin in the PATH
下载地址:(http://download.csdn.net/detail/sunxianliang1/9665622)或者(http://mingw.org/wiki/Getting_Started)

13.install GetGnuWin32-0.6.3.exe add C:\Program Files (x86)\GetGnuWin32\bin in the PATH
下载地址:(http://download.csdn.net/detail/sunxianliang1/9665599)或者(http://getgnuwin32.sourceforge.net/)or(https://sourceforge.net/projects/getgnuwin32/)

注意:所有的环境变量请添加到系统环境变量之前,更详细的说明请查看linphone-desktop\submodules\cmake-builder下的README.md和README.desktop.md,这两个文件解压linphone-desktop压缩包才能看到


下载modifyfile.rar(包含了linphone依赖安装包和修改的脚本,编译时使用)

http://download.csdn.net/detail/sunxianliang1/9665568


编译

1.解压modifyfile.rar文件,把modifyfile下WORK目录拷贝到submodules同级目录下
2.把CheckBuildTools.cmake拷贝到linphone-desktop\submodules\cmake-builder\cmake下,覆盖原有的
3.把config-desktop.cmake拷贝到linphone-desktop\submodules\cmake-builder\configs下,覆盖原有的
4.在cmd.exe里切换目录到prepare.py所在的linphone-desktop目录下,然后执行python prepare.py desktop -f命令,最后生成的Project.sln在linphone-desktop\WORK\desktop\cmake目录下,用vs2013打开编译即可

注意事项:linphone-desktop\submodules\belle-sip\src\clock_gettime.h 在#ifndef HAVE_CLOCK_GETTIME之前添加
#ifndef HAVE_CLOCK_GETTIME
#define HAVE_CLOCK_GETTIME
#endif 

如果有没有object生成的错误,是编码格式的问题,用vs打开文件保存一下即可


运行

双击linphone-desktop\OUTPUT\desktop\bin\linphone.exe


总结

linphone-desktop版本为3.7.0,别的版本没有试验过,vs也必须是2013,本人在win7系统和win7虚拟机都试验过,没有问题,都能编译过并且跑起来,网络电话和视频电话都没问题。

本文由VS软件圈(vssoft.net)发布,不代表VS软件圈立场,转载联系作者并注明出处:https://vssoft.net/vsazwt/VS2013anzhuangwenti/2020/0727/5905.html

联系我们

在线咨询:点击这里给我发消息

微信号:PREEE8

工作日:9:30-18:30,节假日休息