1、下载BC / public / linphone-sdk · GitLab 源码
git clone https://gitlab.linphone.org/BC/public/linphone-sdk.git --recursive
编译参考readme
成功后在build 目录linphone-sdk
以下是readme配置
Windows
SDK compilation is supported on Visual Studio 15 2017. Setting the build environment on Windows is a bit tricky. In addition to the common components listed above, these components must be installed:
- MinGW (select all installer options except Ada and Fortran)
- Yasm:
- download yasm-1.3.0-win32.exe
- copy it to a
bin
directory of your user directory, - rename yasm-1.3.0-win32.exe as yasm.exe
Visual Studio must also be properly configured with addons. Under "Tools"->"Obtain tools and features", make sure that the following components are installed:
- Tasks: Select Windows Universal Platform development, Desktop C++ Development, .NET Development
- Under "Installation details". Go to "Desktop C++ Development" and add "SDK Windows 8.1 and SDK UCRT"
- Individual component: Windows 8.1 SDK
Finally add your user bin
directory and C:\Mingw\bin
to the PATH environement variable from windows advanced settings.
2.创建c# winform导入包装类 和dll
创建Core开始
Core core = Factory.Instance.CreateCore(new CoreListener() { }, "linphonerc", "linphonerc-factory");
更多代码参加为win32的写法linphone win32 SDK在桌面运用(Qt5、C#等)使用教程_linphone qt-优快云博客
你要觉得麻烦或难解决错误可到https://item.taobao.com/item.htm?id=592349919838获取源码。源码功能性更好、更完善。交流群:261074724)