"E;。。include/openssl/ossl_typ.h:错误:重新定义';用户界面';“作为不同种类的符号”;关于UE4

"E;。。include/openssl/ossl_typ.h:错误:重新定义';用户界面';“作为不同种类的符号”;关于UE4,openssl,unreal-engine4,Openssl,Unreal Engine4,我正在为我的游戏制作使用openssl库的示例。我确实为Unrealengine添加了staticlibrary (具体而言 myproject>生成设置>搜索路径>始终搜索用户路径:是 myproject>构建设置>搜索路径>库搜索路径:/usr/local/ceral/openssl/1.0.2e_1/lib已添加 myproject>生成设置>搜索路径>用户标题搜索路径:/usr/local/ceral/openssl/1.0.2e_1/include已添加 将libcrypto.a、li

我正在为我的游戏制作使用openssl库的示例。我确实为Unrealengine添加了staticlibrary

(具体而言

myproject>生成设置>搜索路径>始终搜索用户路径:是

myproject>构建设置>搜索路径>库搜索路径:/usr/local/ceral/openssl/1.0.2e_1/lib已添加

myproject>生成设置>搜索路径>用户标题搜索路径:/usr/local/ceral/openssl/1.0.2e_1/include已添加

将libcrypto.a、libssl.a添加到框架中

我在上添加了如下代码

MyProject.Build.cs. PublicIncludePaths.Add("/usr/local/Cellar/openssl/1.0.2e_1/include"); 
PublicAdditionalLibraries.Add("/usr/local/Cellar/openssl/1.0.2e_1/lib/libcrypto.a"); 
PublicAdditionalLibraries.Add("/usr/local/Cellar/openssl/1.0.2e_1/lib/libssl.a");
但myproject未能生成。错误消息为:

“/usr/local/ceral/openssl/1.0.2e_1/include/openssl/ossl_typ.h:172:22:错误:将“UI”重新定义为不同类型的符号”

也许“用户界面”有冲突

当我发出1~3步时,由于同样的错误,它失败了

还有其他人知道如何解决这个问题吗

操作系统版本:OS X El capitan(版本10.11.2)

UE版本:4.9 Xcode:版本7.2(7C68)

openssl库版本:1.0.2e_1


我没有在mac上使用默认openssl(/usr/local/bin)

显示重新定义行。typedef struct ui_st ui;/Development/MenuTest/ThirdParty/include/openssl/ossl_typ.h:170:22:错误:将“ui”重新定义为不同类型的符号编译器错误结果:정보 typedef结构ui\u st ui;编译器结果:정보 ^ /Users/Shared/UnrealEngine/4.9/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectBase.h:705:11:注意:前面的定义在这里CompilerResultsLog:정보 命名空间UI编译器结果日志:정보 ^ CompilerResultsLog:정보 生成1个错误。CompilerResultsLog:정보 -------- 结束详细操作统计------------------我解决了这个问题。我将openssl库和头文件复制到项目的子目录中,然后修改了ossl_typ.h。