linphone c# (基于libnphone sdk ) 开发搭建

1、下载https://gitlab.linphone.org/BC/public/linphone-sdk 源码

git clone https://gitlab.linphone.org/BC/public/linphone-sdk.git --recursive

 

需要在执行cmake时候加上-DENABLE_CSHARP_WRAPPER=ON (c#包装类)

成功后在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的写法https://blog.csdn.net/Java_lilin/article/details/89211064

你要觉得麻烦或难解决错误可到https://item.taobao.com/item.htm?id=592349919838获取源码。源码功能性更好、更完善。交流群:261074724)

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章