大佬教程收集整理的这篇文章主要介绍了SSL 不会被 libwebsockets 初始化:没有 LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用运行 ue4 专用服务器的 linux cent os 8.3 在所有平台上都成功运行。
我的专用服务器使用新的驱动程序 libwebsockets 运行,因为该解决方案适用于任何平台(也包括网络)。
运行服务器后,我发现消息:
[2021/03/13 14:37:05:2941] NOTICE: SSL will not be initialized by libwebsockets: no LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
[2021/03/13 14:37:05:2942] NOTICE: CreaTing Vhost 'default' port 8889,1 protocols,IPv6 off
[2021/03/13 14:37:05:2942] NOTICE: Using non-SSL mode
我还发现最初 ssl 被禁用,这是正常的,但我现在需要使用它。
这对我来说并不简单,因为(我的主机是 windows10,我使用跨 linux 平台工具 - ue4)
我需要使用脚本
帮助文本:
sumMary
the build script will build:
- zlib
- OpenSSL
- libcurl
- libwebsockets
- webRTC
- windows:
o Visual studio (2013 & 2015)
o CMake
o Git for windows (can be install with minimal "Use Git Bash only")
----------------------------------------------------------------------
TO RUN THE BUILD
----------------------------------------------------------------------
- NOTE: OpenSSL will NOT build if the path contains a space in the path
- that saID,this script builds "stand-alone"
- in other words,you can do something like this
(windows devs,remember to use git bash):
mkdir -p /isolated
cp BUILD.EPIC.sh copY.EPIC.sh /isolated/.
cd /isolated
./BUILD.EPIC.sh
我目前的 Visual studio 2019 我还安装了 Visual studio 2015
在我尝试之后我得到了:
$ ./BUILD.EPIC.sh
+ ZliB_VERSION=v1.2.8
+ SSL_VERSION=OpenSSL_1_1_1c
+ CURL_VERSION=curl-7_65_3
+ WEBRTC_HASH=f2eae333a2e42d20e92e7606bfca087fddcaaaa0
+ BUILD_WEBRTC=true
+ true
+ USE_VS_2013=false
+ UE4_BUILD_WIN32=false
+ configure_platform
++ uname
+ SYstem=MINGW64_NT-10.0-19042
++ uname -m
+ MACHINE=x86_64
+ case $SYstem in
+ false
+ WINTARGET=64
+ false
+ PLATFORM=Win64/VS2015
+ build_environment
+ CMAKE_GEN='Unix Makefiles'
+ CMAKE=cmake
+ case $SYstem in
+ false
+ VC=14
+ VS=2015
+ VSCT='C:\Program files (x86)\Microsoft Visual studio 14.0\Common7\Tools\'
+ X64=amd64
+ false
+ MACHINE=amd64
+ CMAKE_GEN='Visual studio 14 2015 Win64'
+ VCVARSALL='"C:\Program files (x86)\Microsoft Visual studio 14.0\Common7\Tools\..\..\VC\vcvarsall.bat" amd64'
+ CMAKE='C:\Program files (x86)\CMake\bin\cmake.exe'
++ cygpath -w /isolated
+ NINJA_PATH='C:\Program files\Git\isolated'
+ NINJA=ninja.exe
+ get_Google_depot_tools
+ path_Google_depot_tools
+ '[' X == X ']'
+ case $SYstem in
+ false
++ pwd
++ sed -e 's!^\(/.\).*!\1!'
+ Google_SHORTY=/i/googVS2015
+ WEBRTC_HASH_Hack=f2eae333a2e42d20e92e7606bfca087fddcaaaa0
+ NINJA_JOBS=
+ Google_DEPOT_TOolS=/i/googVS2015/depot_tools
++ cygpath -w /i/googVS2015/depot_tools
+ DOS_Google_DEPOT_TOolS='I:\googVS2015\depot_tools'
+ case $SYstem in
+ '[' '!' -d '/c/Program files (x86)/windows Kits/10/source/10.0.10586.0' ']'
+ cat
!!! MANUAL SETUP required !!!
!!! MANUAL SETUP required !!!
install Visualstudio 2015 update2
follow step #2 at:
https://chromium.Googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md
(no need to do step 1 - this build script will do that)
exiTing script...
!!! MANUAL SETUP required !!!
!!! MANUAL SETUP required !!!
+ exit
是否可以只构建 libwebscokets 而没有 openSSl 和 cuurl ?
Visual studio 安装程序不再支持 less ver vsvars32.bat 没有帮助。
我只需要用我已经存在的域 ssl 来激活 ssl 让加密....
我在 ue4 源中找不到 DLWS_WITH_SSL
./ThirdParty/
即使我成功构建,我仍然有相同的配置。
有什么建议吗?
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的SSL 不会被 libwebsockets 初始化:没有 LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT全部内容,希望文章能够帮你解决SSL 不会被 libwebsockets 初始化:没有 LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。