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平台上启动成功。

相关推荐
Yu_Lijing14 分钟前
基于C++的《Head First设计模式》笔记——状态模式
c++·笔记·设计模式
顶点多余28 分钟前
静态链接 vs 动态链接,静态库 vs 动态库
linux·c++·算法
AI视觉网奇33 分钟前
ue5 开发 web socket server 实战2026
c++·学习·ue5
王老师青少年编程1 小时前
2024年3月GESP真题及题解(C++八级): 接竹竿
c++·题解·真题·gesp·csp·八级·接竹竿
偷星星的贼111 小时前
C++中的访问者模式实战
开发语言·c++·算法
雾岛听蓝1 小时前
红黑树深度解析:设计原理与实现逻辑
c++
gjxDaniel1 小时前
A+B问题天堂版
c++·算法·字符串·字符数组
M__332 小时前
动态规划进阶:简单多状态模型
c++·算法·动态规划
米优2 小时前
使用Qt实现消息队列中间件动态库封装
c++·中间件·rabbitmq
N.D.A.K2 小时前
CF2138C-Maple and Tree Beauty
c++·算法