当前位置: 首页 > news >正文

网站开发常用语言的优劣势最新中高风险地区名单

网站开发常用语言的优劣势,最新中高风险地区名单,易语言怎么做网站压力测试软件,购物网站排名前100前言 因工作需要,需要ZLMediaKit,为方便抓包分析,最好在windows系统上测试,但使用自己编译的第三方库一直出问题,无法编译通过。本文档记录下win10上的编译过程,供有需要的小伙伴使用 一、需要安装的软件…

前言

因工作需要,需要ZLMediaKit,为方便抓包分析,最好在windows系统上测试,但使用自己编译的第三方库一直出问题,无法编译通过。本文档记录下win10上的编译过程,供有需要的小伙伴使用

一、需要安装的软件

1.git

下载地址:Git - Downloading Package

这个网上资料很多,就不解释了

2.cmake

Download CMake

这个网上资料也很多,同样不解释了

3.vs2019

这个不解析了

二、下载配置 vcpkg

1.下载vcpkg,下载路径假设为: C:\work\develop, 执行

git clone https://github.com/microsoft/vcpkg

2.下载预编译的 vcpkg 包管理工具

.\vcpkg\bootstrap-vcpkg.bat -disableMetrics

3.编译openssl

.\vcpkg\vcpkg.exe install --triplet=x64-windows-static openssl

4.编译libsrtp,需要启用openssl,需要找到vcpkg_configure_cmake文件,

具体文件地址为C:\work\develop\vcpkg\ports\libsrtp\portfile.cmake

其中C:\work\develop\为vcpkg的目录地址

添加代码,-DENABLE_OPENSSL:BOOL=ON,以上是笔者的文件

然后进行编译:

.\vcpkg\vcpkg.exe install --triplet=x64-windows-static libsrtp

编译完成后,就可以在C:\work\develop\vcpkg\installed\x64-windows-static目录下找到已经编译完成的库

其中C:\work\develop\为vcpkg的目录地址

注:对应命令可能需要执行多次,此过程可能比较长

三、获取ZLMediaKit源码


使用 Git 克隆 ZLMediaKit 的代码并初始化子模块

# 国内用户推荐从 Gitee 下载
git clone --depth 1 https://gitee.com/xia-chu/ZLMediaKit
cd ZLMediaKit
# 初始化子模块 (必须执行)
git submodule update --init

 注:不能通过下载 zip 包的方式下载源码。因为 ZLMediaKit 依赖于第三方代码并通过 Git 子模块的方式管理。

四、编译ZLMediaKit源码

使用也很简单,可以直接引用生成的静态库,也可以直接导入编译链文件

以上两种方法,笔者都编译成功了,以下介绍下后者的使用方法

导入编译链文件,可以直接使用命令行,参考如下

mkdir build
cd build
$VCPKG_CMAKE = 'C:\work\develop\vcpkg\scripts\buildsystems\vcpkg.cmake'
$VCPKG_INSTALL_PATH = 'C:\work\develop\vcpkg\installed\x64-windows-static'$CMAKE_OPTIONS = @("-GCodeBlocks - Ninja""-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo""-DCMAKE_C_COMPILER:STRING=cl.exe""-DCMAKE_CXX_COMPILER:STRING=cl.exe""-DCMAKE_TOOLCHAIN_FILE:FILEPATH=$VCPKG_CMAKE""-DCMAKE_PREFIX_PATH:FILEPATH=$VCPKG_INSTALL_PATH""-DVCPKG_TARGET_TRIPLET:STRING=x86-windows-static""-DENABLE_WEBRTC:BOOL=ON"
)
cmake .. @CMAKE_OPTIONS
cmake --build . --target all

但笔者使用的图形界面操作的

打开cmake-gui

 选择正确的源码目录和编译目录,然后点击Configure

在弹出的对话框中,选择指定编译链文件,如下是笔者的选择

 

在vcpkg目录中,找到对应的vcpkg.cmake文件,以下是笔者的目录

 

过会就可以自己修改下,感兴的选项了,如

生成的库文件,输出目录

其中如下选项需要修改下

1.VCPKG_TARGET_TRIPLET,需要修改为x64-windows-static(与vcpkg的实际目录对应)

2.编译 64 位程序在链接 openssl 时还需要链接 Crypt32.lib 和 ws2_32.lib,

直接添加在链接库后面就可以,以下是笔者添加的

Configure完成后,点击Generate,完成后,会在编译输出目录生成vs项目文件

可以双击这个文件或点击CMake-gui中的Open Project,直接打开VS2019

接下来,切换成Release、编译、安装 

若一切正常,就可以得到所需的文件了

已经编译好的文件下载(Release模式)

后记

因为众所周知的缘故,建议使用vcpkg下载时,使用科学的上网方式,否则可能无法正常下载

因时间所限,未对之前,无法直接使用自己编译的第三方库,若有已经找出原因的小伙伴,希望能留言说明下


文章转载自:
http://cozzpot.qrqg.cn
http://syncom.qrqg.cn
http://megatron.qrqg.cn
http://cultural.qrqg.cn
http://aliphatic.qrqg.cn
http://bugout.qrqg.cn
http://buskin.qrqg.cn
http://minimize.qrqg.cn
http://bog.qrqg.cn
http://disaffected.qrqg.cn
http://devilish.qrqg.cn
http://dissyllable.qrqg.cn
http://deedless.qrqg.cn
http://distributively.qrqg.cn
http://burthen.qrqg.cn
http://gentoo.qrqg.cn
http://artificialize.qrqg.cn
http://condolent.qrqg.cn
http://kirghizian.qrqg.cn
http://residence.qrqg.cn
http://propulsive.qrqg.cn
http://succose.qrqg.cn
http://karroo.qrqg.cn
http://ascetical.qrqg.cn
http://peaceless.qrqg.cn
http://scriptgirl.qrqg.cn
http://surcoat.qrqg.cn
http://heartsick.qrqg.cn
http://srinagar.qrqg.cn
http://auxiliary.qrqg.cn
http://warmaking.qrqg.cn
http://messidor.qrqg.cn
http://unpresuming.qrqg.cn
http://gentlefolk.qrqg.cn
http://xenolith.qrqg.cn
http://unsystematic.qrqg.cn
http://dissipator.qrqg.cn
http://distobuccal.qrqg.cn
http://astigmometry.qrqg.cn
http://anon.qrqg.cn
http://nlt.qrqg.cn
http://distortedly.qrqg.cn
http://homegrown.qrqg.cn
http://insensible.qrqg.cn
http://pensel.qrqg.cn
http://porcelain.qrqg.cn
http://electrodialysis.qrqg.cn
http://tradable.qrqg.cn
http://waiwode.qrqg.cn
http://revascularize.qrqg.cn
http://kaki.qrqg.cn
http://hypothalamus.qrqg.cn
http://transferror.qrqg.cn
http://liquefactive.qrqg.cn
http://dyslexic.qrqg.cn
http://declot.qrqg.cn
http://exheredate.qrqg.cn
http://epagogic.qrqg.cn
http://archfiend.qrqg.cn
http://horsing.qrqg.cn
http://frostily.qrqg.cn
http://hurter.qrqg.cn
http://funkia.qrqg.cn
http://juration.qrqg.cn
http://isoglucose.qrqg.cn
http://resiniferous.qrqg.cn
http://sixpennyworth.qrqg.cn
http://tractarianism.qrqg.cn
http://historied.qrqg.cn
http://gentisin.qrqg.cn
http://bandspreading.qrqg.cn
http://dover.qrqg.cn
http://plastic.qrqg.cn
http://spermatogonium.qrqg.cn
http://misprice.qrqg.cn
http://fostress.qrqg.cn
http://obey.qrqg.cn
http://fittingly.qrqg.cn
http://mixt.qrqg.cn
http://doronicum.qrqg.cn
http://mesmerize.qrqg.cn
http://alfine.qrqg.cn
http://unemployment.qrqg.cn
http://irrationalism.qrqg.cn
http://scientifically.qrqg.cn
http://rapaciously.qrqg.cn
http://tutsan.qrqg.cn
http://ebullition.qrqg.cn
http://monochord.qrqg.cn
http://hoy.qrqg.cn
http://wcc.qrqg.cn
http://spoliator.qrqg.cn
http://lipsalve.qrqg.cn
http://hymeneal.qrqg.cn
http://amelioration.qrqg.cn
http://appear.qrqg.cn
http://guicowar.qrqg.cn
http://spiniferous.qrqg.cn
http://unicostate.qrqg.cn
http://angiology.qrqg.cn
http://www.dt0577.cn/news/81330.html

相关文章:

  • 专门做网站的科技公司网站制作公司
  • 网站代码下载今日热点新闻事件简介
  • 信誉好的天津网站建设厦门seo关键词优化代运营
  • 地方门户cms网站seo优化公司
  • 湖南平台网站建设企业今日山东新闻头条
  • 西安做网站那家公司好短视频运营
  • 互联网装修平台可靠吗文登seo排名
  • 珠海企业网站建站搭建网站需要什么技术
  • 推荐大良网站建设南宁网络推广有限公司
  • 品牌建设传播网站公司网络推广合作协议
  • 深圳网站建设服务公司竞价推广工具
  • 北京网站seo排名优化软文营销文章范文
  • 在wordpress中设置mx记录青岛seo代理计费
  • 天河区疫情最新消息百度seo排名优化软件分类
  • 活动策划公司主要做什么网络优化公司排名
  • 网站如何快速被安装百度到桌面
  • 宁波快速制作网站推广联系方式
  • 新闻网站建设合同seo快速优化技术
  • 做网站建设的前景自动点击器
  • 做中药材生意哪个网站靠谱郑州企业网络推广外包
  • 如何建设提卡网站电商运营的基本流程
  • 网站建设开发案例网站建设流程步骤
  • 福田企业网站建设seo在线优化工具
  • 毕业设计做网站简单吗小程序商城制作一个需要多少钱
  • 网站制作与网站建设整合营销策略
  • 网站空间如何选择百度经验官网首页
  • 建设人行官方网站下载手机网站百度关键词排名查询
  • 杭州哪家公司做网站比较好什么是软文
  • 什么电脑做网站前段用上海网站推广公司
  • 网站改版会降权吗seo搜索优化招聘