vc2017编译从github网站上下载的源码

以ZLmediakit为例

1.下载软件

cmakehttps://github.com/Kitware/CMake/releases/download/v3.20.5/cmake-3.20.5-windows-x86_64.zip

Microsoft Visual Studio https://my.visualstudio.com/Downloads?q=visual%20studio%202017&wt.mc_id=o~msft~vscom~older-downloads

opensll Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions

libsrtp https://github.com/cisco/libsrtp/archive/refs/tags/v2.4.0.zip

2.下载ZLmediakit源码

国内用户推荐从同步镜像网站gitee下载

git clone --depth 1 https://gitee.com/xia-chu/ZLMediaKit

cd ZLMediaKit

千万不要忘记执行这句命令

git submodule update --init

3.cmake直接解压在bin目录找见cmake-gui.exe直接运行,openll安装后需要把它添加到环境变量里,libsrtp,zlmediankit需要编译,libsrtp编译后需把lib目录添加到环境变量里。

4.编译步骤(先新建build文件夹)

打开release目录,找到 config.ini 配置,双击MediaServer.exe启动。或执行mediaserver -ssl C:\study\zlmediakit\ZLMediaKit\release\windows\Debug\Release\default.pem启动支持https

5.接口文档

http://localhost/swager/?secret= 这里的值在配置文件里找

至此媒体服务器在windows11平台上启动成功。

相关推荐
clint4561 天前
C++进阶(1)——前景提要
c++
夜悊1 天前
C++代码示例:进制数简单生成工具
c++
郝学胜_神的一滴1 天前
CMake 021: IF 条件判据详诠
c++·cmake
_wyt0012 天前
洛谷 B3930 [GESP202312 五级] 烹饪问题 题解
c++·gesp
玖玥拾2 天前
C/C++ 数据结构(七)栈、容器适配器
c语言·数据结构·c++··容器适配器
один but you2 天前
constexpr函数
c++
凡人叶枫2 天前
Effective C++ 条款41:了解隐式接口和编译期多态
java·开发语言·c++·effective c++
凡人叶枫2 天前
Effective C++ 条款42:了解 typename 的双重意义
java·linux·服务器·c++
小胖xiaopangss2 天前
BRpc使用
c++·rpc
-森屿安年-2 天前
63. 不同路径 II
c++·算法·动态规划